PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

general protection fault

I have a lot of "General Protection" faults in my programm (Labwindows 7.0). I don't how to get rid of them. What are all the solutions against "General Protection" faults?
0 Kudos
Message 1 of 2
(3,226 Views)
Hi,

Short for General Protection Fault, a GPF is an error message generated by Microsoft Windows indicating that a program being used attempted to call a portion of memory that is either invalid or already in use.

There are several possibilities and reasons a computer receives a General Protection Fault error, the following is a listing of some of the more common reasons.

The program being used is calling a section of memory that is already being used by another program or TSR.
The program has not been programmed properly or is still in testing and is calling an invalid portion of memory.

For example,in your CVI application, Executing RunUserInterface( ) multiple times is not necessary and not recommended. When you execute that function once in the main
thread, it applies to all panels spawned in the application's process. The RunUserInterface( ) function taxes your application's stack memory heavily which makes it resource intensive. When you execute that function multiple times, your application runs short of stack memory fairly quickly and could cause a General Protection Fault. You can adjust your program's stack memory size by going into the "Options" menu in the project window's menu bar, and selecting Build. The Build window allows you to adjust the amount of stack memory that is allocated for your application.

You will probably find a lot of technical ressources dealing with GPF error on our web site.

Sincerely.

Matthieu Gourssies
National Instruments France
0 Kudos
Message 2 of 2
(3,226 Views)