What are you passing in as the scheme? Are you using shortcut-dot-t? What
ROM are you using?

> MemHandle         theRecord = DmQueryRecord(gCatDB, recordNumber);
> skelSRWorkDBType* x = (CatDBType*) MemHandleLock(theRecord);

You should text if DmQueryRecord returns NULL before trying to lock the
record.

> err = ExgPut(&s);
> if (err == errNone)
>    err = BeamBytes(&s, x, MemHandleSize(theRecord));
> MemHandleUnlock(theRecord);
> err = ExgDisconnect(&s, err);

The call to ExgDisconnect should be conditional on the first (or only in
your case) call to ExgPut succeeding. If ExgPut returns an error, you
shouldn't call ExgDisconnect. But if ExgSend returns an error (via
BeamBytes), you should still call ExgDisconnect.

I don't see anything else wrong, but I don't have time to check it out
thoroughly right now. I don't think any of the problems I mentioned above
are what's causing the memo to be empty.
-
Danny

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

Reply via email to