03-21-2009 10:20 PM
My program is set to read data using a Ballard ARINC board and write the data to a log file.
It runs well if no data is received, but when the first time valid data arrives, the program encounters "Genral Protection Fault....." and pauses at the entrance of the function below:
void MakeLogMsg(char * msg, LogFilePtr lfp)
The "msg" string and "lfp" pointer were valid at the time.
Ps: The program had ran well before I added the loging funtion.
Solved! Go to Solution.
03-22-2009 05:41 PM
03-23-2009 06:42 AM
Problem solved!
The string is nul-terminated. Just my program will enter a dead loop if valid data arrives.
Anyway, thanks for your consideration, Roberto.