Page 1 of 1

PostPosted: Tue Dec 12, 2000 4:03 am
by jstadolnik
Passing a pointer of a string to a native library function does not work. The MemHandle of the string ends up pointing to garbage.

Here is a native library function which shows the problem:

void junk(PocketCLibGlobalsPtr gP) {
Value address, *ptr;
ptr = gP->deref(address.iVal);
Char *text = (Char*) MemHandleLock(ptr->sVal);

Joe Stadolnik

Edited by - jstadolnik on 12/13/2000 20:17:43