I wrote a little programm which extracts some data from an .rtf file.
It works in debug mode and it also works in release mode when excecuted from within VS.net.
It crashes, however, if I let it run outside of VS.net.
You can download the project as a zip file here:
. All the source files are in there.
The error I get is something with strchr but I think I corrupted the heap somewhere.
An example file to process is also included.
I would need some advise on how to prevent things like this from happening in the future.
Please have a look,