21.09.2011, 06:03
A couple of things:
- Are you sure the last entry of an enumeration has a comma (,)?
- I don't see the variable R as defined anywhere, is it define "globally" and is it the correct type?
- Check the actual text file to see what was written if anything and is it correct.
The most annoying and time consuming but 100% way of testing, is to write to a file before the execution of every line of code to a something like a debug.txt file, which identifies the line of code which executes last before your server crashes (or at least identifies what function etc is being called), this will give you an accurate to the line indication, then we just need to find out what you are doing wrong with that line (probably a function call).
- Are you sure the last entry of an enumeration has a comma (,)?
- I don't see the variable R as defined anywhere, is it define "globally" and is it the correct type?
- Check the actual text file to see what was written if anything and is it correct.
The most annoying and time consuming but 100% way of testing, is to write to a file before the execution of every line of code to a something like a debug.txt file, which identifies the line of code which executes last before your server crashes (or at least identifies what function etc is being called), this will give you an accurate to the line indication, then we just need to find out what you are doing wrong with that line (probably a function call).