1.我想DLL 可以调用主程序的函数,所以我做了一个借口
unit uMainAppInterface;interface
uses Classes,DB,DBClient;
type
 IMainAppInterface = interface
  ['{3FBFA782-9626-4372-8391-DA8F4C21397E}']    function ExcuteSQL(SQLStr: String; CDS: TClientDataSet): integer;
    function CurrentDBType:Integer;
 end;
implementation
end.
2. 主程序输出
function ManApp: IMainAppInterface;
begin
 result := TMainAppInterface.Create;end;
  exports
    ManApp;
3.DLL 获取  
 TMainAppInterface = function: IMainAppInterface;
var
MainAppHandle: THandle;begin
 
  MainAppHandle := loadlibrary('Pproperty.exe');
  @MainAppInterface := GetProcAddress(MainAppHandle, 'ManApp');
end;4.接口已经实现,现在已经可以正常调用了,但是现在在IDE编译运行的时候,有时会报错 external exception EEFFACE
Event LOG 提示是 
Module Load: profapi.dll. No Debug Info. Base Address: $75BA0000. Process Pproperty.exe (9564)
然后IDE直接死了。不在IDE中打开又不会报错。很奇怪~~~~~~DELPHI 版本 2010   系统是 WIN7求助1.这钟方法是否是正规的做法,
         2.报这个错是什么原因~~~