Re: Writing Binary Files with TFileStream



Robert,

What happens if you change the name of your variable "e" to something else
like "EndValue"?

Just a hunch that may be completely invalid, but you are putting this in a
try..except block, and the exception handling mechanism can use a temporary
variable named "e" for an exception instance. Is it possible there is a
conflict there?

-Rick Francken

"Robert Kilroy" <kilroy@xxxxxxxxx> wrote in message
news:1132689084.579697.18380@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Ya... I've looked at the output in a hex editor and it seems to be a
> jumbled mess. Even if I open the file, perform no edits on it and
> resave it exactly as opened, the resulting file is a disaster.
>
> There aren't any empty entries either, they are cleaned before the
> save. I preview the file before saving it just to be sure. I know I
> need to do a bit more error checking, I'll see what I can do about
> that. But I doubt that's the issue, well atleast I'm not 100% sure. :)
>


.