Error when closing application

  • Thread starter Thread starter Michael C
  • Start date Start date
M

Michael C

Hi all,

Receiving an error when closing an application that contains the
AxWebBrowser component, whenever I close the app:

".NET-BroadcastEventWindow.1.0.5000.0.4: myApplication.exe - Application
Error
The exception unknown software exception (0xc0020001) occurred in the
application at location 0x77e6d756.
Click on OK to terminate the program"

From what I've found it looks like it's occurring because the COM Interop
for the AxWebBrowser hasn't completed loading when I exit the program.
Anyone know how to get around this error?

Thanks,
Michael C., MCDBA
 
hi
Mostly It could be an installation / machine configuration problem( did you
install SP2 before installing vs.net ?) . try to run your program on
another machine ( my be you will not get the same error ) . if so , try
uninstall and reinstall the .net framework
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
I've run it on 7 machines so far with varying configurations, with the exact
same results. That leads me to believe it's not a configuration problem.
It looks to me like the unmanaged component is trying to send messages to
the managed code immediately after the managed code has been unloaded.
I.e., the managed code is unloading faster than the unmanaged code, and this
is the root of the problem. I'm going to try to Marshal.ReleaseComObject()
and see if that will release the COM component a little more quickly.

Thanks,
Michael C., MCDBA
 
Back
Top