LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

'General Protection' fault at ...It stops at if(( panelHandle = LoadPanel...etc

I get this fatal error RUN-TIME ERROR
"backproplabwin.c", line 100, col 24, thread id 0x00000E40
The program has caused a 'General Protection' fault at 001B: 68601022
The execution of the program always stops at the line where; if ((panelHandle = LoadPanel (0, "backproplabwin.uir", PANEL)) < 0)
I would appreciate any help to solve this problem. Thanks.
0 Kudos
Message 1 of 5
(3,302 Views)
Hi !
 
Difficult problem I'm afraid...
 
- How is variable panelHandle declared ?
- Try to change something in the uir and then save it again (check backproplabwin.h has been made again)
 
 
0 Kudos
Message 2 of 5
(3,285 Views)
Hi Pacho,
    can you post the .c file, just to see initialization procedures?  If you can't, just leave the lines in which you load panel/s, and then we'll see....

    Bye !

graziano
0 Kudos
Message 3 of 5
(3,276 Views)

Hi pacho,

  Normally the compiler would check to see if panelHandle is of the correct datatype and that it exists, so I would see if the problem is related to the UIR.  Can you attempt to load another UIR file--one that you know works--maybe from another program.  Or, just create a new one and see if you can load it before 'backprob....'.  I would also suggest that if you have multiple panels in your project that you give each their own resource ID (you chose PANEL for this certain panel in 'backprob...').  CVI may allow you to use 'PANEL' as a resource ID for multiple panels as long as they are in separate UIR files (I don't know this), but it would add clarity for your own sake to not do this--even if you can.  Could this be one of the problems?  Just some ideas...

Orlan

0 Kudos
Message 4 of 5
(3,260 Views)

I had this problem when I upgraded from CVI 6.0 to CVI 7.1.

I ended up having to rebuild the entire UIR in CVI 7.1 to eliminate the error.

Does this appply to your situation?

0 Kudos
Message 5 of 5
(3,236 Views)