The code matches the prototype. When I run my app compiled with SDK 4 it runs fine. The same code after installing SDK 5.0 and recompiling does not. I was running it on the emualtor using a palmOS 4.0 debug ROM. I also get the same results (before OK and after crashes) when I run on the 5.0 simulator. If there's something else going on here, I don't know what it is.
Kevin "Ben Combee" <[EMAIL PROTECTED]> wrote in message news:102113@palm-dev-forum... > > At 17:24 2002-11-21 -0500, you wrote: > >I recently installed SDK 5.0 and recompiled my application. I now find that > >the FileTell function returns an erroneous result for file position. Has > >anyone run into this problem? > > FileStream.h in the OS 5 SDK gives the prototype as > > extern Int32 FileTell(FileHand stream, Int32 *fileSizeP, Err *errP); > > In the OS 4 SDK, this is declared as > > extern Int32 FileTell(FileHand stream, Int32 *fileSizeP, Err *errP); > > In other words, exactly the same. > > Since the SDK version you use doesn't change the code that's actually on > the device, there seems to be something else at play here. Is your code > matching the prototype here type-for-type? > > -- > Ben Combee <[EMAIL PROTECTED]> > CodeWarrior for Palm OS technical lead > Palm OS programming help @ www.palmoswerks.com > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
