How To Dispose Of Bartender Exe Activex 追蹤

Legacy Poster

I have a VB6 application that uses the ActiveX to print labels. Recently I discovered that when the application closes bartender.exe remains active in the processes. I have close and "= nothing" statements in the menu option to close and in the Form Unload event but the exe remains active. Any suggestions? Thanks.

1 意見

Gene Henson
評論操作 永久連結

You mention that you are using the close command. This command will close the BarTender label format, but it will not close the BarTender process. You should be calling the .Quit method to end the BarTender process.

You may also need to add this line of code after you call the BarTender .Quit command:

[code]System.Runtime.InteropServices.Marshal.ReleaseComObject (btApp)[/code]

Let me know if that helps.