Hello,
I have a problem using some global variables which are an array[4] of a
structure and an array[4] and some other structures.
Those variables are set to some values then program call a function
(void foo(void)).
When I step into the function, all fields of all variable are reset
Here is some debug information.
389: foo();
00404EBB call uplarstr_Average (00401000)
-> Here is the reset of the variables
292: void foo ( void )
293: {
00401000 push ebp
00401001 mov ebp,esp
00401003 sub esp,78h
00401006 push ebx
00401007 push esi
00401008 push edi
00401009 lea edi,[ebp-78h]
0040100C mov ecx,1Eh
00401011 mov eax,0CCCCCCCCh
00401016 rep stos dword ptr [edi]
00401018 push offset _atc_data1 (0041b030)
0040101D call _atc_link (00408a10)
00401022 add esp,4
00401025 mov byte ptr [_atc_proc1+2 (0041be3e)],1
0040102C mov byte ptr [_atc_bloc1+26h (0041bd36)],1
Thank you,
Romain
--
Ceci est une signature automatique de MesNews.
Site : http://mesnews.no-ip.com