Two things to try. First, in the problem line, try dblAlbumin =
FlpAToF(pszAlbumin);
Second, try using FlpBufferAToF instead of FlpAToF. I had weird problems
with the plain version as well, buffer version works nicely.
/js

In your message regarding Weird Problem with FlpAToF dated Thu,  4 May 2006
19:02:07 -0000, [EMAIL PROTECTED] said that ...

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

Reply via email to