At 5:57 PM -0800 2001/11/23, Marcio Pacheco wrote:
>I can't dial using modem. Always I try to dial, the palmtop reset. The palm model is 
>Palm IIIc with OS 3.5. What's wrong with this code below? Please, help me!
>
>MdmInfoPtr ModemInfo=(MdmInfoPtr)MemPtrNew(sizeof(MdmInfoPtr));

You're only allocating 4 bytes for ModemInfo (the size of a pointer to a ModemInfo 
structure). You need to allocate enough memory for the entire structure, like this:

  MdmInfoPtr ModemInfo=(MdmInfoPtr)MemPtrNew(sizeof(MdmInfoType));

Regards,

Jim Schram
Palm Incorporated
Partner Engineering


-- 
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