I am using Delphi 5 to create an active form that runs inside of a webpage. It runs fine 99% of the time.
However, I occasionally get an access violation on the following line in the axctrls.pas unit.
function TActiveFormControl.ObjQueryInterface(const IID: TGUID; out Obj): HResult;
Result := S_OK;
if not Control.GetInterface(IID, Obj) then //<-------------- access violation on this line.
Result := inherited ObjQueryInterface(IID, Obj);
Any ideas what could be causing this?
I have heard that there are activeX related bugs in Delphi5. Can anyone confirm whether this is something that could be fixed with an upgrade to Delphi7?
If anyone has Delphi7, does the implementation of this function look differrent?