Hi,
I'm getting an error in StringMgr function... and i don't know why it is
showing up...
"StringMgr.c, Line 113, NULL string passed".

Code:
//Retrieving the ROM Serial Number:

 FtrGet(sysFtrCreator, sysFtrNumROMVersion, &romVersion);

    if(romVersion > 0x02900000)
    {
     retval = SysGetROMToken(0, sysROMTokenSnum, (UInt8**) &buffer,
&bufLen);

      StrNCopy(pilotid, buffer, 12);
     pilotid[12]=0;

//Setup Global Variable

     StrCopy(PilotID, pilotid);
    }
    else
    {
    //   SysRandom( TimGetSeconds() );
    //get the name of palmpilot's user name 4/22/99


       nameH=MemHandleNew(dlkMaxUserNameLength);
       nameP=MemHandleLock(nameH);

       DlkGetSyncInfo(NULL, NULL, NULL, nameP, NULL, NULL);
       MemPtrUnlock(nameP);
       textLen = StrLen(nameP);
       StrCopy(PilotID, nameP);
     }

Does anybody have any idea as to how i can solve this error...

Thanks
Praveen

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

Reply via email to