CW7 Startup code doesn't accept attached (post linked) resources to the
application , CW6 does.
Steps to reproduce this error:
a) Take a valid (working) CW7 compiled application
b) Attach additional resource entries after linking
(e.g. ResType: "HEAD", ID:0) with an external program,
please notice that we don't use standard (well defined t*) ResTypes.
c) Try to start (debug) it..., PilotMain() never reached...
Emulator reports:
UIAppShell reports Startup code line 56, Y
Call Stack:
..<unknown>..
__Startup__
__Startup__
0x10C126C8(<unknown>)
Source in CW7:
10C126C8: 48780001 pea 0x00000001
10C126CC: 486EFFE8 pea -24(a6)
10C126D0: 4E4F trap #15
10C126D2: A11D sysTrapEvtGetEvent
10C126D4: 4A6EFFE8 tst.w -24(a6)
10C126D8: 504F addq.w #8,a7
10C126DA: 66EC bne.s ; 0x10c126c8
10C126DC: 0278FFFE0270 andi.w #0xfffe,0x00000270
10C126E2: 261F move.l (a7)+,d3
10C126E4: 4E5E unlk a6
10C126E6: 4E75 rts
10C126E8: 2C20 move.l -(a0),d6
10C126EA: 4C69 dc.w 0x4c69 ; Invalid opcode
10C126EC: 6E65 bgt.s *+103 ; 0x10c12753
10C126EE: 3A00 move.w d0,d5
10C126F0: 2C20 move.l -(a0),d6
10C126F2: 00000A00 ori.b #0x0,d0
10C126F6: 4E560000 link a6,#0
The "modified" application also crashes the device (Visor, PalmIIIxe,...) ...
Demo file on request.
Any workarounds, hints ?
Enviroment:
CW7, Emulator 3.0a8, W2K
--
Ralf Dietrich
http://pinstall.envicon.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/