|
Rank: Newbie Groups: Member
Joined: 1/29/2016 Posts: 4
|
Hi,
We have been using EO.Webbrowser as an Active-X component in a Visual Dataflex application since version 16. We have tried to upgrade the component to newest version, but it does not work as we expect from version 19. We have tried version 18.3.46 with success but from version 19.0.56 our application throws an unhandled exception with code 0xc000041d when the application is closing. Your component is working fine in our application until our application is closed.
Your component is wrapped as a user control in C# (COM interop) and then imported as a Active-X in Dataflex (32-bit).
Did you change something about object disposing from version 18 to 19?
Thanks.
Daniel
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
Numerous things have been changed between these versions. What exception/error do you get?
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 1/29/2016 Posts: 4
|
Hi,
Our application with the Webbrowser component (latest build) runs fine, but when our application is shutting down, a unhandled exception occurs with code 0xc000041d. Windows Event Log says error in KERNELBASE.dll with version: 10.0.17763.802.
We have tried the last build of Webbrowser version 18 and no errors during application close occurs.
Thanks,
Daniel
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
This appears to be caused by Windows.Forms.Application.ThreadExit event is not properly raised in your environment. You can try add a clean up method in your ActiveX control that does the following:
1. Destroy the WebControl; 2. Explicitly calls System.Windows.Forms.Application.ExitThread() method;
Please let us know if this works for you.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 1/29/2016 Posts: 4
|
Hi,
It worked!
Thank you :)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Great!
|
|