----- Original Message ----- From: "Neil Whitworth" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Tuesday, May 25, 2004 10:42 AM Subject: Re: NetLib crash
> 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. My opinion may be stupid, but I met a similar case on NetLib with SSL on my Treo 600. When I closed the the SSL, my app crashed after some times of open/close. And the problem was one of my dynamically-allocated variables was illegally accessed somewhere before that close. In fact, on C, anything that is illegally accessed may not cause weird problems right at that time, but may be after that. Vu > > 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/ > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
