Uruchamiam formularz z parametrami ktory jest w dll
var
DLL : THandle;
Wydruk : procedure(id_p:integer;id_k:byte;data,datapon:TDate;inne:ShortString);
d1,d2 : TDate;
begin
DLL:=0;
DLL:=LoadLibrary('lib\print.dll');
try
if DLL<>0 then begin
d1:=dataLE.Date;
d2:=Waznosc;
@Wydruk:=GetProcAddress(DLL,'Wydruk');
if @Wydruk<> nil then Wydruk(1,8,d1,d2,'01/02/01/01.01');
end else
ShowMessage(LoadMessage(83));
finally
FreeLibrary(DLL);
end;
end;
I uruchamia sie ok.
Ale gdy koncze juz caly program to dostaje blad:
Exception EAccessViolation in module prog.exe ...
o co biega?