Re: [AD] DirectDraw - create_sub_bitmap() or save_bitmap() faulty ?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> I'm using WIN98 SE, French version (Allegro says version 4.10).
> Both your example and Johnny's ones crash on the call to save_pcx().
Ok. Then I need your help to track down the problem: could you build the
statically linked debug version of the library (make lib DEBUGMODE=1
STATICLINK=1), compile the testcase in statically linked debugmode
(ALLEGRO_STATICLINK must be defined during compilation) and link it to the
library? I'd like to have the backtrace for the crash.

Sorry, but it doesn't crash in DEBUGMODE !
I tried to recompile everything, it crashes with alleg_s.lib and not with alld_s.lib.

With alleg_s.lib in DirectX Windowed mode, Windows says:

--------------------------------------------------------------------------------
OMAR_BUG a causé une défaillance de page dans
 le module OMAR_BUG.EXE à 019f:00434735.
Registres :
EAX=00000000 CS=019f EIP=00434735 EFLGS=00210246
EBX=00000000 SS=01a7 ESP=0069f4ba EBP=0069f4c4
ECX=00000000 DS=01a7 ESI=008c71d4 FS=5c9f
EDX=00000000 ES=01a7 EDI=00000000 GS=0000
Octets à CS : EIP :
8b 44 82 40 c3 89 f6 f7 42 2c 00 00 00 02 74 13
État de la pile :
0043fc17 000001a7 6a100000 59f7008c 6a100040 0000008c 00000000 80710000
0ca00044 806c009d 14d10044 30447801 00000a00 00080000 00010000 f95e0000
--------------------------------------------------------------------------------

I manually printed out some symbols address in the program:
        main = 00401000
        create_sub_bitmap = 004020C0
        save_bitmap = 00404E10
        save_pcx = 004056D0
--------------------------------------------------------------------------------

Doesn't help much however, it seems that only the first element in the
stack (0043fc17) is a function address. Can I use a tool to list symbols
out of a Windows executable ? My nm.exe doesn't support PE.

(Do you prefer the discussion to continue on the list or off it ?)





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/