Does the debugger tell you that theCompFloat.fd is correct? If not, does it
get unpacked correctly in UnpackInfo?

//Fredde

On Mon, Apr 17, 2000 at 11:12:46AM -0300, Tim Astle wrote:
> Okay, I had this function displaying float numbers in Exponential format.
> However, now for some reason it displays nothing at first... then if I click
> between the forms enough, it seems to display random bits and pieces of
> memory.  (symbols, etc.)
> 
> Does anyone have an idea?  This just started happening after I modified my
> structures and added a new variable to them.  (Byte)  None of my other
> records have had problems in displaying, just these darned floats!  :-)
> 
> CharPtr foo()
> {
>      tblInfo theInfo;
>      FlpCompDouble theCompFloat;
>      CharPtr c;
> 
>      VoidHand record = DmQueryRecord(gInfoDB, 0);  // hardcoded to first
> record
>      tblPackedInfoPtr p = MemHandleLock(record);
>      UnpackInfo(&theInfo, p);
>      theCompFloat.d = theInfo.number;
>      c = MemPtrNew(50);
>      FlpFToA(theCompFloat.fd, c);
>      MemHandleUnlock(record);
> 
>      return(c);
> }
> 
> --
> 
> Tim Astle
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palm.com/devzone/mailinglists.html

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to