Page 1 of 1

Posted: Fri Aug 02, 2002 8:58 pm
by BackupUser
Restored from previous forum. Originally posted by halo.

My DLL writing to a log file, and I get wierd random results...strings placed in the file repeatedly, not in order, just randomly. I know the code is fine. Is there anything like this known?

Example:

What I write:
nx=3
intersection at 1,3,5
intersection at 1,8,5
intersection at 1,4,5

and the file might read something like this:
nx=3
rsection at 1,3,5
intersection at 1,8,5
nx=3
nx=3
intersection at 1,4,5

Posted: Fri Aug 02, 2002 9:14 pm
by BackupUser
Restored from previous forum. Originally posted by PB.

> I know the code is fine.

Obviously there is something wrong. As far as I know, there are no bugs with
the WriteStringN command. It could be that you are using it with another command
that is bugged... for example, let's assume that "Str" is bugged; then if you used
WriteStringN(Str(number)) then it would appear that WriteStringN is at fault,
when in reality it's not.

Or, a variable that you're writing with WriteStringN may be getting changed
somewhere in your code and you simply haven't realised.

Any chance you could post some code showing how to produce the problem?


PB - Registered PureBasic Coder

Posted: Fri Aug 02, 2002 9:37 pm
by BackupUser
Restored from previous forum. Originally posted by Paul.

Are you using OpenFile or CreateFile ??
Can't really help much more without seeing some code :)

Posted: Fri Aug 02, 2002 10:53 pm
by BackupUser
Restored from previous forum. Originally posted by halo.

OpenFile. That must be it.