06/08/06 08:43:48
初歩的な質問ですまないが、どうしてVCL.NETをリンクしたプログラムをlinuxなmono上で走らせようとするとエラーになるんだ?
WinなMonoでは実行できるんだが……
Unhandled Exception: System.TypeInitializationException: An exception was thrown
by the type initializer for nettest2.Units.nettest2 ---> System.TypeInitializat
ionException: An exception was thrown by the type initializer for Borland.Vcl.Un
its.SysUtils ---> System.EntryPointNotFoundException: GetVersionEx
in (wrapper managed-to-native) Borland.Vcl.Units.Windows:GetVersionEx (Borland.V
cl._OSVERSIONINFO&)
in <0x00056> Borland.Vcl.Units.SysUtils:InitPlatformId ()
in <0x00043> Borland.Vcl.Units.SysUtils:Borland.Vcl.SysUtils ()
in <0x005d4> Borland.Vcl.Units.SysUtils:.cctor ()--- End of inner exception stac
k trace ---
in <0x00000> <unknown method>
in (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers:Ru
nClassConstructor (intptr)
in <0x00018> System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor
(RuntimeTypeHandle type)
in <0x00024> nettest2.Units.nettest2:.cctor ()--- End of inner exception stack t
race ---