>From: Max Bian <[EMAIL PROTECTED]> >Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]> >To: "Palm Developer Forum" <[EMAIL PROTECTED]> >Subject: Fwd: Re: Re: To Max : Re : Problem in handling more than one >databases >Date: Fri, 1 Feb 2002 06:03:21 -0800 (PST) > > > > I don't see how you did it exactly... Did you close the database A after >you > > first finished reading it? > > > > Looks like you are opening the database in ReadWrite mode, I am not sure >if > > you > > are opening it twice with that. That might be a problem. > > > > If you look at the OpenDB code, you are returning NULL at several >places. You > > may want to check which return is returning NULL. > > > > Another bad practice is that your OpenDB is modifying the global dbPtr > > directly > > and the calling code has "dbPtr=OpenDB()". You can clean it up by >adding > > "DmOpenRef dbPtr" inside OpenDB function. The local variable will >shadow the > > global, so it won't be modified directly. And better yet, use a >different > > name > > to avoid confusion. Oops I forgot to close the databases. I think that's the problem. Thanks anyway. :) __________________________________________________ >Do You Yahoo! >Great stuff seeking new owners in Yahoo! Auctions! >http://auctions.yahoo.com > >-- >For information on using the Palm Developer Forums, or to unsubscribe, >please see http://www.palmos.com/dev/tech/support/forums/ _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
