DataSource1,SimpleDataSet已经连接了一个xml和dbgrid显示数据,为何关闭主程序时候出错,谢谢.

解决方案 »

  1.   

    错误是:Project CallDLL.exe raised exception class EAccessViolation with message 'Access violation at address 0051EBC2 in module 'xml.dll'.Read of address 010F22D0'.Process stopped. Use Step or Run to continue.Rutime error 216 at 0047342A
      

  2.   

    但没连上xml的或SimpleDataSet1.active :=False的时候没问题的.
      

  3.   

    把DLL里面的定义的create(application)的application定义成为dll的窗体.释放的时候不是主程序帮你释放而是dll自己释放.