LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

FileSelectPopup -180 error

I'm using the fl8808 VISA driver in a CVI project.  Works great.  But I just discovered that it seems to be interfering with the CVI dialog function FileSelectPopup.  I get the -180 error code and the dialog doesn't pop at all.

 

I found this and that forum discussions.  They discuss forcing the thread type to COINIT_APARTMENTTHREADED, but that isn't working for me.

 

What I've found is that if I merely skip all the fl8808 functions, then the FileSelectPopup pops as expected.  My application isn't set up for multi-threaded at all (I'm assuming the fl8808 does).  

 

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

Any CVI engineers I can talk to about this?  It's kind of a show stopper for my client application.

0 Kudos
Message 2 of 3
(1,317 Views)

As a practical matter, you could try:

 

do
  status = FileSelectPopup(dir,"*.csv","*.csv","Data File",
                            VAL_OK_BUTTON,0,1,1,0,datafile);
while (status==-180);

 

I worked around the described problem with this trick.

Message 3 of 3
(93 Views)