"Marcel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> When I close my application (on Palm OS 5), I sometimes get a "Fatal
> Exception" Message. I noticed that the application can complete the
> AppStop()-function properly, the exception is happening after the
> AppStop()-function.
>
> Since the exception only occurs if I have called another specific function
> of my application before, I guess that the reason for the exception might
be
> a memory leak in this other function. Question: Can memory leaks or a bad
> memory management be the cause for a "Fatal Exception" message ?

Thanks, Matthew for your statement.
I still couldn't resolve the reason for my fatal exception.
Debugging my application, I see that the fatal exception occurs after the
PilotMain() has returned. The debugger only shows assembler code after the
PilotMain() has returned. The assembler code looks like this (see below).
The fatal exception occurs on the line at the very bottom (with the address
00DC52D2). Any idea what kind of exception this could be ?
Thanks for eventual statements.

00DC5294: 4EBA72C6        jsr      PilotMain (0xdcc55c)(   ; 0x00dcc55c
00DC5298: 2A00            move.l   d0,d5
00DC529A: 4A03            tst.b    d3
00DC529C: 504F            addq.w   #8,a7
00DC529E: 6704            beq.s    __Startup__+0x11fc (0xdc52a4));
0x00dc52a4
00DC52A0: 4EBAFE40        jsr      __destroy_global_chain+0x103a
(0xdc50e2)_; 0x00dc50e2
00DC52A4: 4A03            tst.b    d3
00DC52A6: 6710            beq.s    __Startup__+0x1210 (0xdc52b8) ;
0x00dc52b8
00DC52A8: 206EFFFC        movea.l  -4(a6),a0
00DC52AC: 2F28000C        move.l   12(a0),-(a7)
00DC52B0: 4227            clr.b    -(a7)
00DC52B2: 4EBA0166        jsr      MTWK::__LoadAndRelocate__(unsigned
char,_opaque*)+0x1372 (0xdc541a); 0x00dc541a
00DC52B6: 5C4F            addq.w   #6,a7
00DC52B8: 2F2EFFB6        move.l   -74(a6),-(a7)
00DC52BC: 2F2EFFB2        move.l   -78(a6),-(a7)
00DC52C0: 2F2EFFFC        move.l   -4(a6),-(a7)
00DC52C4: 4E4F            trap     #15
00DC52C6: A090            sysTrapSysAppExit
00DC52C8: 2005            move.l   d5,d0
00DC52CA: 4FEF000C        lea      12(a7),a7
00DC52CE: 4CDF0038        movem.l  (a7)+,d3-d5
00DC52D2: 4E5E            unlk     a6                /* fatal exception
occurs here */



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to