LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

General Protection Fault encoutered while reading ARINC429 data

Solved!
Go to solution

 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. 

 

0 Kudos
Message 1 of 3
(3,076 Views)
Just a guess: is "msg" string nul-terminated? You may have problems if treating non nul-terminated strings. If the string is ok, can you add some details more on your code?


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,058 Views)
Solution
Accepted by topic author ziczac

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.

0 Kudos
Message 3 of 3
(3,047 Views)