LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Debug Windows System error

Hello ,

In my application , it uses TSQ to access data , and transmit it by TCP .Data acquired from a special RTU ,and written into TSQ , another thread read it from TSQ .The problem is that when running the application after around 1 hour , there will popup a windows system error prompt :"0x00000008 memory referenced by 0x68511e7b instruction ,the memory can not be written " ,once this error appeared, my application hanged immediately . Can trace it into my source code ? Your advise is highly appreciated . My OS is Windows 2000, and the programming tool is cvi 6.

David
0 Kudos
Message 1 of 2
(2,530 Views)
Hello

You might try putting tracing messages into your code and logging which function gets called at what time. This will help you keep track of the function calls and which was the last function that caused the problem. Make sure you make a debug version of the exe. Also try adding small delays in your code

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(2,530 Views)