Welcome Guest Search | Active Topics | Sign In | Register

Problem with EO.Webbrowser as Active-X in version 19 Options
Jesper
Posted: Friday, November 1, 2019 3:29:18 AM
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
eo_support
Posted: Friday, November 1, 2019 11:14:26 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Hi,

Numerous things have been changed between these versions. What exception/error do you get?

Thanks!
Jesper
Posted: Sunday, November 3, 2019 11:43:46 AM
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
eo_support
Posted: Monday, November 4, 2019 4:25:51 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
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!
Jesper
Posted: Tuesday, November 5, 2019 5:11:52 AM
Rank: Newbie
Groups: Member

Joined: 1/29/2016
Posts: 4
Hi,

It worked!

Thank you :)
eo_support
Posted: Tuesday, November 5, 2019 8:32:47 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Great!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.