I have managed to get POSE to crash now.
I was using the 'Redirect netlib to host PC' setting, but have now managed to make POSE use the GPRS on my mobile phone.


The error I get is 'SysFatalAlert with the message: "NetStack1.c, Line:5495, error shutting down socket".'

The call statck is:
NetPrvTaskMain
PrvProcessNextMsg
PrvSocketShutdown
PrvSocketShutdown
ErrDisplayFileLineMsg

Neil Whitworth wrote:

The alarm functions are in a shared library. The library 'Opens' itself to lock the code resource into memory while it needs to be connected to the network.

All memory allocation within my library also asigns the memory to the system (With MemPtrSetOwner(Ptr,0)) so the conection can 'run in the background'

In POSE I am using a debig ROM (v3.5, and v4.0), but this does not report any errors. The simulators crash withou reporting any errors (PalmSim.exe just crashes and quits)

I have steped through the code on a Treo 600, and it will always crash either on the netlibOpen, or netlibClose calls.

Peter Easton wrote:

Hi Neil,

Nothing in your email is a likely cause of the crash. There must be some other
information that you haven't disclosed that is responsible. Procedural alarms
are only dangerous if you don't clear them when your app exits, and you haven't
locked your code resource. Opening and closing the network library will also
not cause the crash.


Are you using a debug ROM on the Simulator?

Regards,

Peter

http://www.whizoo.com
Contractor for hire (PalmSource Certified Developer)
Source code available for all apps
Bluetooth Developer Kit for Palm OS
BtSerial Pro - Serial Port Client for Palm OS
BtSerial - Bluetooth Serial Port Client for Palm OS
BtServer - Bluetooth Serial Port Server for Palm OS
Net Sync - Programmatically manipulate network settings
RegCode - Add registration code support to your app





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

Reply via email to