Thanks for the help,
I got the bug. Actually the creator ID in the program(appFileCreator) was different from the project settings->PalmRes PostLinker->Output File creator.
I changed that with my program creator ID now its working fine.

Sumesh NR

Michal Seliga wrote:
i am not aware of any other alternative method. if it works in sample application it must work in yours too. if it doesn't you have bug somewhere

hints:
- check if you access correct variables
- check if you don't accidentaly have same name of local and global variable
- check if you register phone events to correct creator ID


Sumesh wrote:
Now also the same error..
i created a new application with these functions, Its registering the phone and reporting the event correctly . But the same not working in my application.. Is there any alternative method for getting the phone events?. give me some code samples also please.

Sumesh N R

Michal Seliga wrote:
Don't do this
always open generic phone library and don't differ between CDMA and GSM version.

Sumesh wrote:
Hi Bismi,

Yes I opened the library before calling the register function

err = HsGetPhoneLibrary (&PhoneLibRefNum);
   if(err)
       return err;
     HsAttrGet (hsAttrPhoneType, 0, &phnType);
   if (phnType == hsAttrPhoneTypeCDMA)
   {
           phoneLibraryName = phnLibCDMAName;
           phoneLibraryDbCreator = phnLibCDMADbCreator;
   }
   else // default is GSM
   {
           phoneLibraryName = phnLibGSMName;
           phoneLibraryDbCreator = phnLibGSMDbCreator;
   }
     err = PhnLibOpen (PhoneLibRefNum);

..........
.........
........
err = PhnLibRegister(PhoneLibRefNum, appFileCreator,  phnServiceAll);
.....
.....
.....
err = PhnLibClose(PhoneLibRefNum); //call this api to avoid soft reset.
   err = SysLibRemove(PhoneLibRefNum);
                     if(err == 0)
       PhoneLibRefNum = 0;
   return err;

Sumesh NR

Bismi wrote:
have you open the phone library
PhnLibOpen (UInt16 refNum)

You are getting the eror as the library is not initialized in your application
Regards







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

Reply via email to