Subject: Re: Need some help determing what might be crashing this code
From: "druid" <[EMAIL PROTECTED]>
Date: Thu, 11 Aug 2005 02:32:00 -0000
X-Message-Number: 21
Here is the open routine
static Err Open(void)
{
// Open the database or create it if it doesn't exist:
if(dbPtr == NULL)
This is very reminiscent of another posting a few weeks ago with an
identical bug and similar poor coding practices.
Is this a student project?
Anyway
1) Use less global variables
2) Check return codes from functions
3) Step through the program with the debugger and identify the point
of failure.
Or, just check the archives
Roger Stringer
Marietta Systems, Inc. (www.rf-tp.com)
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/