It looks like both the "fatal exception" problem and the "beaming problem" I
posted have the same source. I have the following lines of code to clear
part of the screen and draw a box to put a status message in:
for (i = 0; i < 9; i++) WinDrawChars(spaces, 150, 5, (i * 10) + 5);
WinDrawLine(5, 5, 5, 85);
WinDrawLine(5, 5, 235, 5);
WinDrawLine(235, 5, 235, 85);
WinDrawLine(5, 85, 235, 85);
It doesn't cause any problems as it is above. It seemed when I had either
instruction starting at the first pixel either horizontally or vertically I
had what might be memory problems - Fatal exception on program termination
or invalid chunk pointer on a different instruction. I changed the code to
be offset 5 pixels from either the left or top and everything works fine.
I'm using high resolution on the Handera 330. It's the only high resolution
PDA I have access to now and I'd be interested in hearing if anyone has run
into similar problems using high resolution on other PDAs.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Dave
Mottorn
Sent: Sunday, August 03, 2003 7:43 PM
To: Palm Developer Forum
Subject: RE: Beaming Problem
Here is my WriteProc:
Err WriteProc(const void *dataP, UInt32 *sizeP, void *userDataP)
{
Err err;
*sizeP = ExgSend((ExgSocketPtr) userDataP, dataP, *sizeP, &err);
return err;
}
I tried putting ExgDisconnect after every ExgPut and got the same results.
All the non-null values are initialized in the routine. f is a character
array with the name of the file, e.g., "SM095036#0012345:.TXT". The file
does get beamed correctly the first time.
I looked at the reference and didn't see anything I'm doing wrong. I think
I may be declaring the description wrong though. The recipe example has
Char *appName = ExgMgrBeamDB.prc". I get a compile error on that. The
files I'm beaming are ASCII text files incidentally.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jeff
Ishaq
Sent: Sunday, August 03, 2003 12:31 PM
To: Palm Developer Forum
Subject: RE: Beaming Problem
> -----Original Message-----
> From: Dave Mottorn
> Sent: Sunday, August 03, 2003 5:19 AM
<SNIP>
> err1 = ExgPut(&exgSocket);
> if (err1 == 0) {
> if (id)
> err2 = ExgDBWrite(
> WriteProc,
> &exgSocket,
> f,
> id,
> cardNumber);
> err3 = ExgDisconnect(&exgSocket,err3);
> }
The documentation for ExgPut states that you must *always* follow it
with an ExgDisconnect(). You are doing this in the case of (err1 == 0),
however if (err1 != 0), you fail to call ExgDisconnect(). This is one
thing you want to fix immediately.
Have you tried using the filename, with extension?
exgSocket.name = "AddressBook.PDB"
There's also the following recipe to grok:
http://www.palmos.com/dev/support/docs/recipes/recipe_exg_mgr_send_db.ht
ml
Gotta run -- if none of this works, let's see what all the non-NULL
values in your exgSocket are.
-Jeff Ishaq
--
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/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/