Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TEmbeddedWB for Delphi 10 raise Error



Permlink Replies: 5 - Last Post: Jan 5, 2017 5:26 AM Last Post By: emanuele Taverna
TinTin TinTin

Posts: 5
Registered: 4/9/06
TEmbeddedWB for Delphi 10 raise Error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 25, 2015 7:20 PM
Drop a TEmbeddedWB component on delphi 10 vcl form,and run it ,close application,it raise error.

procedure TOleControl.DestroyControl;
begin
InterfaceDisconnect(FOleObject, FControlData^.EventIID, FEventsConnection);
InterfaceDisconnect(FOleObject, IPropertyNotifySink, FPropConnection);
FPropBrowsing := nil;
FControlDispatch := nil;
FOleControl := nil; //raise erro here,$C00000005
end;

But TEmbeddedWB run well on xe8.
Brandon Staggs

Posts: 683
Registered: 3/3/01
Re: TEmbeddedWB for Delphi 10 raise Error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 25, 2015 7:41 PM   in response to: TinTin TinTin in response to: TinTin TinTin
"TinTin TinTin" wrote on Fri, 25 Sep 2015 19:20:34 -0700:

FOleControl := nil; //raise erro here,$C00000005

Mine is running fine, but it has a lot of modifications.

My gut says to check if OleCtrlsFix is being used somewhere. I use it
in a few places to fix interface reference leaks but IIRC it took a
while to get it right (it shouldn't be used everywhere).

This could be relevant:

http://marc.durdin.net/2012/07/understanding-and-correcting-interface-reference-leaks-in-delphis-vcl-olectrls-pas/

Just a guess.

--
Brandon Staggs
StudyLamp Software LLC
http://www.studylamp.com
Brandon Staggs

Posts: 683
Registered: 3/3/01
Re: TEmbeddedWB for Delphi 10 raise Error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 26, 2015 5:13 AM   in response to: Brandon Staggs in response to: Brandon Staggs
"Brandon Staggs" wrote on Fri, 25 Sep 2015 19:41:24 -0700:


I just double-checked this. Almost certainly this is the problem you
are having. EmbeddedWB calls an extra _Release in a few places, but
that was to fix a bug in older versions of Delphi. Now that the
reference leak is fixed in OleCtrls, those extra releases are a bug...
Find those and get rid of them, and you'll be fine I think...

--
Brandon Staggs
StudyLamp Software LLC
http://www.studylamp.com
TinTin TinTin

Posts: 5
Registered: 4/9/06
Re: TEmbeddedWB for Delphi 10 raise Error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 26, 2015 6:37 AM   in response to: Brandon Staggs in response to: Brandon Staggs
Now i dont modify OleCtrls.pas,I fix unit of EmbeddedWB,EwbCore,EwbTools . it works.
Thank you for your answer.

I just double-checked this. Almost certainly this is the problem you
are having. EmbeddedWB calls an extra _Release in a few places, but
that was to fix a bug in older versions of Delphi. Now that the
reference leak is fixed in OleCtrls, those extra releases are a bug...
Find those and get rid of them, and you'll be fine I think...

--
Brandon Staggs
StudyLamp Software LLC
http://www.studylamp.com
Flavio Hermes

Posts: 2
Registered: 1/29/13
Re: TEmbeddedWB for Delphi 10 raise Error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 26, 2016 3:17 AM   in response to: TinTin TinTin in response to: TinTin TinTin
Could you share your solution for this bug with us? Share your Units fixed.

TinTin TinTin wrote:
Now i dont modify OleCtrls.pas,I fix unit of EmbeddedWB,EwbCore,EwbTools . it works.
Thank you for your answer.

I just double-checked this. Almost certainly this is the problem you
are having. EmbeddedWB calls an extra _Release in a few places, but
that was to fix a bug in older versions of Delphi. Now that the
reference leak is fixed in OleCtrls, those extra releases are a bug...
Find those and get rid of them, and you'll be fine I think...

--
Brandon Staggs
StudyLamp Software LLC
http://www.studylamp.com
emanuele Taverna

Posts: 1
Registered: 4/1/12
Re: TEmbeddedWB for Delphi 10 raise Error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 5, 2017 5:26 AM   in response to: Flavio Hermes in response to: Flavio Hermes
Yes please i would be interesed in the whole fixed units too, got the same problem here

Flavio Hermes wrote:
Could you share your solution for this bug with us? Share your Units fixed.

TinTin TinTin wrote:
Now i dont modify OleCtrls.pas,I fix unit of EmbeddedWB,EwbCore,EwbTools . it works.
Thank you for your answer.

I just double-checked this. Almost certainly this is the problem you
are having. EmbeddedWB calls an extra _Release in a few places, but
that was to fix a bug in older versions of Delphi. Now that the
reference leak is fixed in OleCtrls, those extra releases are a bug...
Find those and get rid of them, and you'll be fine I think...

--
Brandon Staggs
StudyLamp Software LLC
http://www.studylamp.com
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02