g'day,
My environment:
Win98/Cygwin/POSE 3.5/gcc 2.95.3-kgpd/sdk=various (3.5, 40, 50)
Is there a known issue with the SysGetStackInfo() call pre-PalmOS 3.5?
I've got this as a check at the start of my code and it works fine under
3.5, but returns an error indication under 3.1. I spotted this fairly
early in my development cycle but had been leaving it until "later' to
fix. Originally I figure it would prove to be a problem with my code, as
I had lots of globals, a multisegment app and other things which could
have been the source of the grief.
Well, I'm about done and I wanted to track this down, so I started
looking in to it. After spending some time removing most of the globals
and generally cleaning things up, it's still reporting problems pre-3.5.
I bit the bullet, upgraded my tool chain, still nada.
I've now gone to a simple, bare bones "hello, world" test program from
one of the books which opens a single form, no segments, basically no
globals and lo and behold, it still reports an error. I've tired this
both under POSE emulating a Palm V and on a real Palm V to confirm my
testing. I'm running out of ideas here. I do the following:
DWord PilotMain (Word cmd, Ptr cmdPBP, Word launchFlags)
{
MemPtr startP, endP;
Boolean flag = 0;
switch (cmd) {
case sysAppLaunchCmdNormalLaunch: // Application start code
{
flag = SysGetStackInfo(&startP, &endP);
if(!flag) {
FrmCustomAlert(DebugMsg, "Stack corrupted...", "", "");
}
No problem under 3.5, still returns FALSE under 3.1.
I've poked around the KB looking for any documented problems without
success, but I'm still wondering if there's a well-known gotcha here I
don't know about. Does anyone else successfully use SysGetStackInfo()
under 3.1 or below?
AD-thanks-VANCE....
- peterd
--
---------------------------------------------------------------------
Peter Deutsch [EMAIL PROTECTED]
Gydig Software
"And I still can't see the connection," said Arthur, "with welks."
- Hitchhiker's Guide to the Galaxy, Vol.III
---------------------------------------------------------------------
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/