LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

"general protection" fault at "return 0" of Main() Function

I'm using Labwindows/CVI 6.0.0 under W2k.
A simple demo: see attachment.
executed the line "rerurn 0", popup the error message:

Non-Fatal Runtime Error
unknown source position thread id 0x000004AC
The program has caused a first chane 'general protection' fault at 001B:6000F001

But,execute test1.exe and test_dbg.exe is Ok in win2k.
By the way, originally my CVI environment is OK,the error message has been exist after install VISA33,even I un-install and install CVI.

Does anybody know how to prevent this?


Best regards

Y.Q
0 Kudos
Message 1 of 9
(4,269 Views)
I don't know how paste 3 attachments once.
0 Kudos
Message 2 of 9
(4,263 Views)
The last attachment.
0 Kudos
Message 3 of 9
(4,262 Views)

Hello Y.Q.,

The last comment about this error only occuring after updating VISA suggests that you might want to try updating your version of the CVI runtime engine. The CVI runtime engine is backwards compatible so you will still be able to develop in CVI 6.0. The most recent runtime engine can be found here.

Let me know if you still see the problem.

Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 9
(4,228 Views)
Hi,Wendy,

Thanks for your answer.Ihave updated the Run-time Engine to LabWindows/CVI Version 7.1[NILW_CVI_71_RTE.exe (3.1MB)], but the error message is exist yet.

Y.Q
0 Kudos
Message 5 of 9
(4,218 Views)
Wendy,

I have Un-installed the VISA33 and CVI6.0 ,then Re-install the Measurement Studio Version6.0 and updated the runtime engine as your . the error message is present as of old.

Y.Q
0 Kudos
Message 6 of 9
(4,216 Views)
modify my problem description as below:
After executed the line "rerurn 0" of main{} function, continue run the program ,then popup the error message.
0 Kudos
Message 7 of 9
(4,215 Views)
Hello Y.Q.,

I tested your application on a Windows 2000 machine with CVI 6. Then I installed the most recent runtime engine (which installs VISA 3.3). I did not see the same behavior you saw. I actually didn't have any problems running your code.

So you mentioned that this problem started when you installed VISA 3.3. Do you remember changing anything else during this time since VISA 3.3. doesn't seems have a negative effect on my machine?

Thanks
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 8 of 9
(4,181 Views)
Hi,wendy,

I tested my application on another PC,It's Ok.

I remember changing MAX-->Tools-->NI-VISA-->Passport Editor-->select the NiVisaTulip.dll after instal the VISA33, then the error message occur.

Sheet anchor, I plan to format and re-install.

Thanks for you reply

Y.Q
0 Kudos
Message 9 of 9
(4,173 Views)