LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

SetMouseCursor general protection fault

I have a CVI 8.5 multithread application, in the main thread I have added the SetMouseCursor(VAL_HOUR_GLASS_CURSOR) and this sometimes causes a general protection error.

Download All
0 Kudos
Message 1 of 5
(3,415 Views)

You could try using SetWaitCursor instead of SetMouseCursor: the first one is thread-specific, while the last one sets mouse cursor aspect for all threads in an application. I don't know exactly which can be the interaction of the mouse cursor with your application but since the difference between these two instructions lies exactly in the behaviour in multithreaded application it may worth a try.

 

Ciao



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,407 Views)

Hello Paolo,

 

Would it be possible for you to submit your project to our ftp site, so that we could investigate this crash here at NI?

 

Thanks,

Luis

Message Edited by LuisG on 01-20-2009 11:07 AM
0 Kudos
Message 3 of 5
(3,387 Views)

Unfortunately the project is very large. I will try to see if we case extract a part of it still causing the error.

 

Paolo

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

My current hunch would be that around the same time when you're setting the mouse cursor, one of the other threads is discarding or creating a panel, or maybe just modifying a panel in some important way. So if you're trying to experiment with a small version of your project, I would focus on that.

 

By the way, the size of the project is not a problem for us. As long as it doesn't have dependencies on specific hardware or on 3rd party software, and as long as you tell us what to do in the program to make the crash happen, then that works for us.

 

Thanks again.

Luis

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