LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV application error

Solved!
Go to solution

Hello everybody...

I am using LV 8.5 (Win XP) code that i had upgraded from LV 4.0 and Win 98. Some shared libraries are 16 bit that i can't change. So I made exe file in LV4.0 (runs continously) that communicates with those dlls and return data to LV8.5 through DDEs.. But in some cases labview application error occurs and ntvdm file closes all of sudden..

Any one can tell me possible reasons

timmy
0 Kudos
Message 1 of 5
(2,466 Views)

Hi indo asia,

 

I'm sorry you are having problems!  Is this error reproducible?  If you follow a set number of steps, does it always occur?

 

How are you currently communicating the data back and forth again?  It appears that this error often occurs when two programs are attempting to access the same memory space at the same time. (Check out this article: How to Fix a General Protection Fault)

 

Have a great day,

 

Chris V

Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(2,448 Views)

Thanks Chris V

 

My hardware is working properly. This error occurs frequently but not on same step of commands. Most probably different DDEs are acessing same memory at a time. I have changed timeing constants and also close all DDE servers at the end of every VI.

I am testing now and hope this might work. If not i will contact you again

Thanks once again

timmy
0 Kudos
Message 3 of 5
(2,433 Views)

Hi timmy,

 

Great.  If you are able to solve the issue this way, make sure to post your solution and mark the forum as solved so that others can benefit!

 

Have a great day,

 

Chris V

Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(2,412 Views)
Solution
Accepted by topic author PakAsia

Thanks Chris V

I am using DDEs with delays so that DDE server should wait for response and reads continously. Now I had make timeing intelligent by using case structures and after every case i close the DDE server. Making sure that resources are free.

By doing this now i am faceing problem no more.

timmy
0 Kudos
Message 5 of 5
(2,395 Views)