Search the web
Sign In
New User? Sign Up
palm-dev-forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Debugger/POSE/PalmSim   Message List  
Reply | Forward Message #68864 of 92429 |
I posted the following message on 2/21/2002 (subject: PalmSim / 5.0 ??)

**** START REPOST

This code has been running perfectly fine on Palm OS 3.1 through 4.0 in POSE
3.4.

<snip>
// Open the resource database for read/write
tmpDBH = DmOpenDatabase(cardNo, dbID, dmModeReadWrite);
if (tmpDBH == NULL)
{
err = DmGetLastErr();
AbandonUpdates();
return (err);
}
<snip>

In PalmSim with Palm OS 5.0, I get an error code 534
(dmErrAlreadyOpenForWrites).

OK, so what's unusual about this ??

Well, I'm updating my own .prc. Yes, I need to.

**** END REPOST

After much interaction with a 5.0 developer (name withheld to protect the
innocent), we determined my application actually runs absolutely wonderful
on PalmSim and 5.0. As long as the Debugger isn't involved, that is. Which
took quite a while to figure out, because I was the only way I was testing
my app was while running under PalmSim and 5.0 from the debugger so I could
trap "surprises".

So, my application that runs fine from the Debugger with POSE 3.4 (and any
version of Palm OS up to 4.1) has a problem with the Debugger and
PalmSim/5.0. It appears that the Debugger is opening the .prc with Write
access, and leaving it that way for the duration of the debug session. So,
my application code listed above trips on the "DmOpenDatabase" function.

My very patient 5.0 developer contact suggested I contact MW, and in
particular, Ben Combee, via this newsgroup to report the ... situation ??

Regards,

Terry



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



Sat Feb 23, 2002 3:28 am

tedennis@...
Send Email Send Email

Forward
Message #68864 of 92429 |
Expand Messages Author Sort by Date

I posted the following message on 2/21/2002 (subject: PalmSim / 5.0 ??) **** START REPOST This code has been running perfectly fine on Palm OS 3.1 through 4.0...
Terry Dennis
tedennis@...
Send Email
Feb 23, 2002
3:28 am

... the ... wonderful ... Which ... testing ... could ... any ... Write ... So, ... function. ... ?? I'll forward this on to our debugger engineer, but I don't...
Ben Combee
bcombee@...
Send Email
Feb 23, 2002
11:01 am

re: When we load an app onto a device for debugging, we lock the database so it won't move and affect the mapping of memory addresses to functions. Makes sense...
Terry Dennis
tedennis@...
Send Email
Feb 23, 2002
2:09 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help