01-20-2009 03:10 AM
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.
01-20-2009 03:36 AM
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
01-20-2009 11:00 AM - last edited on 07-16-2024 03:14 PM by Content Cleaner
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
01-20-2009 12:26 PM
Unfortunately the project is very large. I will try to see if we case extract a part of it still causing the error.
Paolo
01-21-2009 11:12 AM
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