Hi,
Solved finally, heap corrupted.
Howto prevent:

ASSERT(strlen(buf) < sizeof(buf);

Best regards,
Ranier Vilela
________________________________________
De: Ranier VF <ranier_...@hotmail.com>
Enviado: segunda-feira, 23 de julho de 2018 17:06
Para: IUP discussion list.
Assunto: [Iup-users] IUP crash with release app (msvc 2010)

Hi,
I have dealing with a insidius bug in my app. If somebody can help, I thank you 
so much.
This line:
             IupSetStrAttributeId2(mat, "", nrows, 0, item_code);

run normally with DEBUG version (msvc 2010), but with RELEASE version, crash!

This exception may be expected and handled.
eax=00174325 ebx=016252e8 ecx=6c75462e edx=00000000 esi=01f65220 edi=6c75462e
eip=10001fd0 esp=0012f500 ebp=00174355 iopl=0         nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010206
iup!IupStoreAttributeId2+0x20:
10001fd0 803f49          cmp     byte ptr [edi],49h         ds:0023:6c75462e=??

Why?
iup library is the same (release version 3.25) for both DEBUG and RELEASE app.

How debug a release version with msvc 2010?

I breaking IUP library, somewhere, but I do not know how.

Thanks.
Ranier Vilela

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to