LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

GetUserEvent hangs on Windows 7

Hi,

 

All of our applications are written in C++ using Visual Studio with LabWindows providing the UIR and API calls to interact with the GUIs. The apps are multithreaded with each GUI being on a separate thread for increased fidelity. We use GetUserEvent() with the appropriate panel id to retrieve events for each panel within its thread and then process the events returned, again, in the same thread.

 

This has worked very well for us until we tried to run our applications on Windows 7. The first thread (and hence the first panel) works just fine. However when a second panel is displayed the application hangs. I've traced this to the second GetUserEvent() call, in the second thread, not returning and so the first one hangs as well.

 

We are using Visual Studio 2010 and LabWindows 2009. The applications can be built on either an XP or Windows 7 box but will run ONLY on XP. No matter how they're built they always hang on Windows 7. I've also gone backwards to Visual Studio 2005 and LabWindows 8.5 with the same result.

 

Has anyone seen this issue on Windows 7? I'm assuming that it's a Windows 7 issue since XP is fine and it also hangs in XP mode on Windows 7.

 

Thanks,

Matt

0 Kudos
Message 1 of 3
(3,185 Views)

Hi Matt,

 

Could you create a small version of the code that recreates the issue and post it? This way we can try to reproduce the issue and see what could be causing the problem.

 

Thank you!

 

 

 

Chris T.
0 Kudos
Message 2 of 3
(3,127 Views)

I'm not sure what the underlying problem was but going to SP1 fixed the issue. I didn't see anything in the change list for SP1 but it has been resolved.

 

Thanks!

Matt

0 Kudos
Message 3 of 3
(3,095 Views)