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
WriteStringN madness
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
> 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
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm