If anybody is interested in a stop-gap solution apart from me, I have come up with a workaround for not being able to use PalmTraceLib on OS X 10.1.4, thanks to Unix of course...

1. Open a terminal window and change to the directory where you have POSE living.

2. Run the following two commands,

echo "Chicken and Egg" > PoseTrace.txt
tail -f PoseTrace.txt

I couldn't find a way to make 'tail' not balk on a non-existent file to being with, not being a 25th dan black belt in *nix.

4. Declare a global in you program,
HostFILE* g_hfTrace;

3. In your PilotMain, AFTER you've checked the launch code means you get globals, do this:

g_hfTrace = HostFOpen("PoseTrace.txt","a");


4. Just before you exit PilotMain:

if ( g_hfTrace ) {
HostFClose( g_hfTrace );
}


It's not pretty and it's not perfect but if you are like me then you'd rather be getting on with the real job in hand instead of thrashing around with the tools, as sometimes happens. If anybody has a reason as to why POSE 3.5 doesn't see PalmTraceLib 1.2 in the same folder then I'd be happy to hear it.

Sean Charles.


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

Reply via email to