LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem of using FileSelectPopup()

I have a code phase which call the Windows' API:

 

while (TRUE)

{

   WaitForSingleObject(audioEventHandle, INFINITE);

...

}

 

Today , I find a problem: using the FileSelectPopup() to show a file select dialog, if do a right click mouse by careless, the execuating will jump into  this while loop and block at the  WaitForSingleObject(). I think  there is a mouse right click event captured by the Windows system, I'd like to know is there any way to escape it?

 

 

David

0 Kudos
Message 1 of 2
(4,454 Views)

David_Lee,

 

The information you provided is still rather very little. Please also provide the context in which the two sequences are used. E.g.:

  1. Is the while-loop located in a control-callback or panel-callback? Where is this exactly?
  2. In which context do you use FileSelectPopup()?

A code snippet which reproduces the problem would be very helpful.

Also, have you tried browsing through other forum posts, just in case somebody else asked a similar question? This might prove useful:

http://forums.ni.com/t5/forums/searchpage/tab/message?q=fileselectpopup

 

Regards!

- Johannes

0 Kudos
Message 2 of 2
(4,383 Views)