This is a question in general, 

Say I have a function foo()

void foo(Char **c)
{ MemHandle cH;
  cH = MemHandleNew(13);
  *c = MemHandleLock(cH);
  StrNCopy(*c, "PalmOS Rules\0", 13);
}

void PilotMain()
{ Char *C, *B;
  MemHandle CH;

  foo(&C);
  CH = MemPtrRecoverHandle(C);
  MemHandleUnlock(CH);
  B = MemHandleLock(CH);
  WinDrawChars(B, 12, 0,0);
  MemHandleFree(CH);
}


Would "PalmOS Rules" be guaranteed to appear on the topLeft corner on
the screen? Or would exiting from foo() deallocate any memory assigned
to (MemHandle)cH?


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to