问题同这个一样 http://topic.csdn.net/t/20051019/13/4336484.html
但此楼猪 没有说明如何解决的。
======================================
在程序中我动态调用DLL中的函数,DLL文件中包含一个form,引出的函数将建立一个form,执行都很正常,但在freelibrary时出错,提示如下:
Project e:\delphi\test.exe raised too many consecutive exceptions:'access violation at 0x00000000:read of address 0x00000000',Process stopped. ……
======================================
有人说是 sharemem的问题,但我都加了怎么还是这样啊~~早上还好好的~真是郁闷啊
但此楼猪 没有说明如何解决的。
======================================
在程序中我动态调用DLL中的函数,DLL文件中包含一个form,引出的函数将建立一个form,执行都很正常,但在freelibrary时出错,提示如下:
Project e:\delphi\test.exe raised too many consecutive exceptions:'access violation at 0x00000000:read of address 0x00000000',Process stopped. ……
======================================
有人说是 sharemem的问题,但我都加了怎么还是这样啊~~早上还好好的~真是郁闷啊
ShareMem,......;{$R *.res}var
DllApplication: TApplication;
DllScreen: TScreen;
DllHintWindowClass: THintWindowClass; //前面两个要,这个你看着办......procedure DllUnloadProc(Reason: Integer); register;
begin
if Reason = DLL_PROCESS_DETACH then
begin
Application := DllApplication;
Screen := DllScreen;
HintWindowClass := DllHintWindowClass;
end;
end;exports
......;begin
DllApplication := Application;
DllScreen := Screen;
DllHintWindowClass := HintWindowClass;
DllProc := @DllUnloadProc;
end.------------------------------
另外调用该DLL的Project的dpr中也要在第一个uses ShareMem
你是给我演示??我不明白 为什么“//前面两个要,这个你看着办” [估计是你复制别程序里的吧]
,你说的 “另外调用该DLL的Project的dpr中也要在第一个uses ShareMem” 这个我知道啊~也发了~~,我其他的dll 都可以正常释放的,就一个不可以。hongqi162:
你这个建议有点不现实吧。。难道dll里就不可以用string了???==============================
caike(ck) 鄙视!!!鄙视!!!鄙视!!!鄙视!!!鄙视!!!鄙视!!!鄙视!!!你~
我胸了?我对他们没什么恶意啊~~只是对 网上 那个 caike(ck) 表示不满~
你业太大惊小怪了;
不过~~对以上的人表示谢意~~可能我对 ShareMem 太抱 幻想了~~以为它是万能的~~
你说的补丁是什么?
==========
这个我本来就是这样的是不是 有其他的原因也出现
raised too many consecutive exceptions:'access violation
这个错误啊~~