LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

unknown fault at ProcessDrawEvents call

I made some changes today, having to do with panel positions, dimensions, and splitter controls.

 

Now I'm getting curious GPFs that take me to lines where a ProcessDrawEvents call is located.  I have placed these calls in some functions that handle table control updates (cells, rows, columns, etc.) to "speed up" refresh of the GUI.  Perhaps that was bad thinking on my part.

 

Error looks like this:

FATAL RUN-TIME ERROR: "file.c", line 1216, col 4, thread id 22356: The program has caused a 'Unknown' fault at 0x7901FB06.

I'm more concerned about what this actually means.  Why is that call a problem?  My application does have a few threads different threads, but those secondary threads don't run that often.

0 Kudos
Message 1 of 3
(982 Views)

I'm on the hunt for a solution.  Thank goodness for source control, as I was able to checkout an earlier version which does not exhibit this problem!  I'm not at all clear why this would be happening, but I'm going to find out soon enough what combination of changes result in this GPF.

0 Kudos
Message 2 of 3
(941 Views)

This turned out to be a weird interaction between a OperateSplitter call and two controls attached to the splitter.

 

The controls added recently were a progress bar (set to be sized by the splitter) and a command button (set to be moved).

 

If I deleted the button, no Unknown Fault.  If I removed just the progress bar from the splitter, no Unknown Fault.  I was never able to figure out why though. So in the end, I just removed the progress bar from the splitter.

0 Kudos
Message 3 of 3
(900 Views)