The examples in Palm Programming use MemHandleResize only in Packing functions.
Are you suggesting using both DmResizeRecord and MemHandleResize when Packing to
a database?
-Elizabeth
|--------+----------------------->
| | hartman@oneto|
| | uch.com |
| | |
| | 10/04/00 |
| | 01:42 PM |
| | Please |
| | respond to |
| | palm-dev-foru|
| | m |
| | |
|--------+----------------------->
>-----------------------------------------------------------|
| |
| To: [EMAIL PROTECTED] |
| cc: |
| Subject: Re: Problem Writing Updates To Database|
>-----------------------------------------------------------|
That's got to be it! Her pack routine is calling MemHandleResize()
and it needs to be working through Dm API, not the Mem API!
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
Hal Mueller wrote in message <26210@palm-dev-forum>...
>
>At 11:49 AM -0700 10/3/00, [EMAIL PROTECTED] wrote:
>>problem is in the update data. If the sizes of old and new data are the
same,
>>no problem. If old data size is bigger, it erases data from the following
>>field.
>
>You should be calling DmResizeRecord in that case (remember to check
>for the success/failure of the resize). Maybe the pack/unpack
>routines are doing that already, but it doesn't appear to be
>happening in the code fragment you posted. I have found it helpful
>to use a second function to compute the size of a record--especially
>when I have some fields that might or might not be used.
>
>----
>Hal Mueller [EMAIL PROTECTED]
>Mobile Geographics LLC http://www.mobilegeographics.com/
>Seattle, Washington (206) 297-9575
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/