Hello everybody!

I am writing to find an answer for my problem which occurred while migrating my
application to CodeWarrior 9.

I have an application, which consists of couple of CodeWarrior projects. I used
to compile it under CodeWarrior version 6.
Recently, I have migrated it to CodeWarrior 9. I was able to successfully
migrate all the sub-projects accept the one which creates the PRC called with
SysAppLaunch, which is responsible for printing.

I am able to compile this printing application but when I launch it from inside
my main program it crashes after some time. I tried to debug it using popup
messages and I noticed that it transforms the strings which are in the header
files. So if I have the popup form with hardcoded string, which is called from a
header file it displays some random characters. It displays proper value while
called from the .cpp file.
Unfortunately my application uses lots of macros and in-line functions which are
defined in the header files. I came to the conclusion that the printing
application crashes because it tries to open databases of a random name (macro
in a header file with a database name).
Rewriting the application, in a way that, it does not have any const char* in
headers, would be very time consuming and risky.

I also noticed that the same code compiled under CodeWarrior 6 works perfectly
fine. Even the main application compiled under CodeWarrior 9 and the printing
program under CodeWarrior 6 works. I compared the project settings of both
versions of CodeWarrior and made sure that they are the same (except the new
tabs introduced in CodeWarrior 9. I left them with default values).
I suspect that the issue is in the compiler. There must be some setting, which I
am not aware of, which causes the application to behave so strangely.

If it makes a difference here is the line which launches the sub-application:
Err err=SysAppLaunch( 0, dbID, 0, 32768, pArgs, &result) ;

Does anyone know what could be the solution to it or just give me a clue where
to look for?
I would be very grateful for any help.
--
Regards,
Luke Iwanicki


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

Reply via email to