Hello,
How can I pass and update a field's contents from another application?  Here
is what I have tried:

1)  I have two applications.

2) The first launches the second with a SysAppLaunch(...) using a custom
launch code and passing a pointer to a field on it's main form.

3) The second application updates the field using a FldInsert(...) and
returns.

4) After the SysAppLaunch() call returns, I can see the updated text in the
field from within the debugger, but the first application fails a few steps
later with either an "accessing an unallocated chunk" error, or strangely
enough, "object id not on form" error.

Can anyone tell me if:
1) The pointer to the field on the first form is still valid during and
after the call to SysAppLaunch()?
2) Is it appropriate to use FldInsert() on the passed field pointer from
within the second application?
3) Does the Palm close the first form or invalidate controls on the first
app. during a SysAppLaunch() call?
3) Is there a better way to do this?

Thanks,

mark

Reply via email to