C
chenziyi
Unregistered / Unconfirmed
GUEST, unregistred user!
我写了一个程序和IE建立连接,运行的时候没有问题,但是在关闭程序的时候
总是出现一个错误:
“Access violation at address 7FF38AE3 in moudule "OLE32.DLL".
不知道哪位碰到过这个问题。
部分代码:
procedure Tmainform.FormCreate(Sender: TObject);
var
X: Integer;
begin
ShellWin := CoShellWindows.Create;
try
ShellWinEvents.Connect(ShellWin);
for x := 0 to ShellWin.Count - 1 do
InterfaceConnect(ShellWin.Item(x) as IWebbrowser2, DwebbrowserEvents2, WBevents, Connection);
except
end;
end;
总是出现一个错误:
“Access violation at address 7FF38AE3 in moudule "OLE32.DLL".
不知道哪位碰到过这个问题。
部分代码:
procedure Tmainform.FormCreate(Sender: TObject);
var
X: Integer;
begin
ShellWin := CoShellWindows.Create;
try
ShellWinEvents.Connect(ShellWin);
for x := 0 to ShellWin.Count - 1 do
InterfaceConnect(ShellWin.Item(x) as IWebbrowser2, DwebbrowserEvents2, WBevents, Connection);
except
end;
end;