LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a problem with the MS Toolbar and Image List Controls and the LabView Active X Container?

I have developed a small application that uses the MS Toolbar and MS Image List Active X controls from MSVC 6.0, my problem is that my application will not close properly when made into an executable on a NT/2000 machine. I am using the MS Toolbar and Image List controls found in mscomctl.ocx and mscomct2.ocx. I have narrowed the problem down to running the toolbar while in a executable. The executable will die in Windows 2000, because it becomes non responsive, but Windows NT will simply leave it on the taskbar, and list it as non responsive. I have attached an example of the exe, with source code and OCX files for your examination. You can email me for specific
questions, or post them and I will respond.

Chris Davis
chris.davis@arnold.af.mil
0 Kudos
Message 1 of 3
(2,841 Views)
after you execute your executable file (Toolbar Example.exe in your example), an .ini file is created. open the .ini file and put the following lines in it:
[Toolbar Example]
hiderootwindow=true

save the file and close it. now run the executable. the title bar should disappear from the taskbar immediately. however, it will take sometime to unload the ocx from memory.

this method works on 98 machine, I think it should work on 2k too.

-joe

p.s. your executable does not exit automatically.
0 Kudos
Message 2 of 3
(2,841 Views)
I was able to resolve the problem by setting all the VIs to run in the User Interface thread. The problem was fixed on my Windows 2000 machine so I am assuming it will have similar results on NT.

Matt Kisler
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 3 of 3
(2,841 Views)