Article

From:
To:
Karl
Subject:
Re: TEAMB Help... twebbrowser just doesnt work
Newsgroup:
borland.public.delphi.internet

Re: TEAMB Help... twebbrowser just doesnt work


Karl wrote in message <7bpkg9$✉forums.borland.com>...
>
>we are developing an internet application, that involves using the the IE
>Webbrowser through delphi.. it just DOESNT work.. still keep getting the access
>violation.. it has to be something in delphi4.
>


The following message was recently posted by Martin Boegel in
....activex.controls.using newsgroup. Maybe it will help. Please let us know
if it does!

- Repost follows:
Hi everyone,
Alexei M Reatov <✉mail.href.com> found a bug in OleCtrls causing terrible memory leaks when working with the TWebBrowser-ActiveX component.
function TOleControl.GetIDispatchProp(Index: Integer): IDispatch; var   Temp: TVarData; begin   GetProperty(Index, Temp); // Result := IDispatch(Temp.VDispatch); ***** Change to:   Pointer(Result) := Temp.VDispatch; ***** This avoids the extra AddRef end;
Same applies to GetIUnknownProp().
By decending the TWebBrowser object from the attached TOleControlFix, the problem is solved in a packet-compatible way.
- End of repost
Martin
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Mon, 25 Oct 2021 10:10:00 UTC
Copyright © 2009-2021
HREF Tools Corp.