Here's good question for the gurus around here.
So we got a wofstream output.
In it I send using a recursive function time by time a CString data. Using off course the GetBuffer member to get a pointer to the content.
The problem is that it works really good till the 1207-calll.
Then suddenly the wostream becomes unusuable, invlaid and refuses to print anything else to it. The quuestion is why ?
I print with the tellp() the current size of the file and the result si something like this:
......
524336
524766
525226
525664
526154
526572
527140
527571
-1
-1
-1
-1
.......
The data sent t it is around 500 char long but shouldn't be a issue. Any ideas ? How to identify the problem ? The 1207th String is the same as the prior 1206 strings. Mainly composed of chars plus these simbols : [ ] and of course some spaces.