We make extensive use of expanded mode in c++ apps. It solved many of our problems..

Have you rememberd to call _CW_SetupExpandedMode before using any virtual functions? we put this in the pilotMain function..

also you need to wrap any callbacks in thunks (as the OS makes no guaranties about the a4 reg being restored in callack functions.)


Michal Seliga wrote:
one more thing, i just noticed after playing a bit more with debugger and
experimenting with code that what actually hapens is that when virtual function
(from compiled code, not from library!) is called it just jumps to some strange
position instead of place where it should go. it looks like if virtual table for
class was in wrong memory or overwritten with garbage.

i am sure there is no stack corruption caused by my code, i double-checked it
(and also it works in standart a4 mode without problems)

does someone use expanded mode with a5 jumptables in codewarrior 9.3 with c++
program? are there any special rules for programming when i use it?



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

Reply via email to