日期:2014-05-17  浏览次数:20398 次

delphi写的dll有的电脑好使有的电脑不好使
如题,delphi写的一个dll组件,在大部分电脑上被.net程序调用都毫无问题,但是少数电脑会报错提示:外部组件异常
System.Runtime.InteropServices.SEHException (0x80004005): 外部组件发生异常。
   在 WindowsFormsApplication1.Form1.test(Char[] str1, Char[] str2, Char[] str3)
   在 WindowsFormsApplication1.Form1.button1_Click(Object sender, EventArgs e) 位置 E:\开发项目\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs:行号 37
   在 System.Windows.Forms.Control.OnClick(EventArgs e)
   在 System.Windows.Forms.Button.OnClick(EventArgs e)
   在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
   在 System.Windows.Forms.Button.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
应该不是dll的问题,是不是电脑本身什么设置的问题导致的异常?

有前辈高手能指点下嘛。。。
人穷分少,各位大大不要嫌弃。。。。
dll Delphi .NET 异常

------解决方案--------------------
是否跟32位,64位系统有关系