LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stop labview application from MS VC got internal error: image.cpp line 11450

Hi:
I need to control a labview application (It's been compiled as exe file)from my MS VC program. I tried using PostMessage(hWnd, WM_CLOSE) from whithin my program as MSDN suggested method to stop an application
cleanly. However, when i put my program in debugging mode and run it step by step, the LV program generate an internal error "image.cpp linexxxx" after it reached that PostMessage() call. in run mode , the Labview app simply ignore the WM_CLOSE message sent from my program.
So is there any other ways to stop labview application from VC program?
Thank you!
ls
0 Kudos
Message 1 of 3
(2,494 Views)
> So is there any other ways to stop labview application from VC
> program?

You can use ActiveX. Turn the server on for your built app, open a
connection from VC, and use the app or VI properties to get LV to exit.

Greg McKaskle
0 Kudos
Message 2 of 3
(2,494 Views)
The activeX server method Quit() takes no affect if the application is not launched through activeX.
0 Kudos
Message 3 of 3
(2,494 Views)