Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - DBsetrec()/Emulator question
Page 1 of 1

PostPosted: Sun Apr 10, 2005 3:36 am
by Mikael
When running my app on the Emulator, I keep getting a 'SysFatalAlert...Record isn't busy' alert every time I access a function which uses DBsetrec(). It allows me to continue, and the function works fine, both on the Emulator, Simulator and hardware, but I just can't work out what it means. Is this an emulator bug or some conflict with PToolbox or is it something I should take seriously?

Thanks in advance,

Mikael

PostPosted: Sun Apr 10, 2005 3:08 pm
by jstadolnik
Are you working with Pilot-DB or HandBase databases?

If

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Sun Apr 10, 2005 4:20 pm
by Mikael
Sorry, I forgot to mention that. I'm working with PilotDB.

I'm working on the theory that it could be an oversight on my part with regard to the indexing of the array I'm using for the setrec function, as I'm using setrec in two related functions which write to two adjacent fields and two functions which read what has been written. At read time one works, while the other one doesn't. I've made a couple of changes to the code, but I've been ill over the weekend and it's turned into spaghetti, as I can't think straight - nothing new there I suppose :mrgreen:. As soon as I become a bit more clear-headed I'll be able to better see where I'm going wrong.

Thanks

Mikael

PostPosted: Sun Apr 10, 2005 6:35 pm
by Mikael
I've just double-checked to make sure, and straightened out the mess with the indexing. As mentioned before it works fine on hardware and the Simulator - at least when the Simulator feels like working - so I think it has to be DBsetrec() that's to blame. The important bits in the two functions using it are follows:

SaveCurrentPositionDC(){
//more things here

DBopen("OtherStuff");
savedPos=Array("s,7");
DBgetrec(gotoRec, savedPos);

savedPos[5]=(string)startPosI;
alert("Here 1");
DBsetrec(gotoRec,savedPos);
alert("Here 2");

Fctl(FREE,9447);
ClearBuf();
comingFromSaved=true;
free(savedPos);
free(singleSavedPos);
DisChars();
break;
}}}

SaveCurrentPositionVC(){
//more things here
DBopen("OtherStuff");
savedPos=Array("s,7");
DBgetrec(gotoRec, savedPos);

savedPos[6]=(string)startPosI;
alert("Here 1");
DBsetrec(gotoRec,savedPos);
alert("Here 2");

Fctl(FREE,9447);
ClearBuf();
comingFromSaved=true;
free(savedPos);
free(singleSavedPos);
ViewChars();
break;
}}}

The Emulator barks when it reaches the point between the two alerts in both cases, before letting me continue.

Mikael

PostPosted: Sun Apr 10, 2005 10:39 pm
by jstadolnik
Email me and I'll send you something to try (jstadolnik@hotmail.com).

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm