Hi, I'm trying to use the function in the subject to get some info about an
address book record. However, after I set up and call the function like
this:

MemSet(&params, sizeof(AddrLookupParamsType), 0);
  params.field1 = addrLookupName;
  params.field2 = addrLookupFirstName;
  params.pasteButtonText = "OK";
  params.field2Optional = true;
  params.userShouldInteract = true;
  params.formatStringP = "^first - ^home";
  PhoneNumberLookupCustom(GetExtraObjectPtr(frmP, AppLookupLookupField),
&params, false);
     if (params.resultStringH)
          result = MemHandleLock(params.resultStringH);

I get the following error:

SysFatalAlert error with the
>message "MemoryMgr.c, Line: 4384, Free Handle."

But it says in the API that:

      "resultStringH If there is a format string, a result string is
allocated on the dynamic heap and its handle is returned here."


I'm selecting a record in the lookup list and the uniqueID that is also
returned in the params structure is filled.  Does anyone know why this might
be happening? Thanks a lot.



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

Reply via email to