Hello, I'm getting an error in the debug sim but not in the release sim.... The function getting the error seems to be working properly but this error still bothers me.
"vfsmgr.c, Line:2348, VFSFileReadData: buffer not in storage heap"
The release version of the Palm OS Simulator doesn't have as many debug checks compiled into it as the debug version. You should always heed the warnings from the Debug build, as it catches errors.
In this case, you used VFSFileReadData instead of VFSFileRead. These calls both do the same thing, but the ReadData version is designed to read into a chunk of memory on the storage heap, like a chunk allocated using FtrPtrNew or a database record. For a global variable or a buffer allocated with MemPtrNew, you should use the VFSFileRead form instead.
-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Fourm Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
