You should use: FlpBufferAToF (&dblAlbumin.fd, pszAlbumin); instead of dblAlbumin.fd= FlpAToF( pszAlbumin );
It works for me... ;-) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, May 05, 2006 2:02 AM To: Palm Developer Forum Subject: Weird Problem with FlpAToF Hi group, I am getting an Access Violation reading address 0x00000000 when trying to convert a string to a FlpDouble type. Here is a snippet of code causing the problem... hTxt= FldGetTextHandle( GetObjectPtr( pForm, fldAlbumin ) ); FldSetTextHandle( GetObjectPtr( pForm, fldAlbumin ), NULL ); pszAlbumin= MemHandleLock( hTxt ); // This next line is where the simulator crashes... dblAlbumin.fd= FlpAToF( pszAlbumin ); // <-- Problem here... pszAlbumin is a Char * dblAlbumin is a FlpCompDouble Thanks for any help... -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
