Silverfrost Forums

Welcome to our forums

Error creating .NET support. ClrCreateManagedInstance ...

22 Nov 2007 7:05 #2456

Hello! A customer is having a problem with .NET objects. He sent me the following:

G:\TC\TC_6\Projekte\XML_SC~1\Entw\werk>ftn95 ..\fortran\damaus.f90 /include P:\apps\TR_DEV\TR_Entw\Waerm\wtprog\common;P:\apps\TR_DEV\TR_Entw\Hilfsm\Allg\common;P:\apps\TR_DEV\TR_Entw\Stoffums\VERDIA\common;P:\apps\TR_DEV\TR_Entw\allg\tdvgr f\common;..\fortran\english /mod_path ..\werk *** Error creating .NET support. ClrCreateManagedInstance returned 0x800040050165) LIBRARY 'System.dll' *** Unable to communicate with FTN95LIB 1 ERROR [..\fortran\damaus.f90 FTN95 5.10.0] - Compilation failed.

COMPILER OPTION /CLR is turned on.

--------%<-------------- ! Initialisierung LIBRARY 'System.dll' ! LIBRARY 'ClassApplication.dll' ! OBJECT('ClassApplication.CApplikation') APPL ! APPL=NEW@('ClassApplication.CApplikation',5) ! -------->%-------------

Any idea what is wrong? Do you need more infomation? Please help. Thank you.

Best regards,

Jörg Kuthe QT software GmbH

23 Nov 2007 9:50 #2457

The issue here is basically with the LIBRARY option in the code. For .NET you should specify libraries on the command line for FTN95 and DBK_LINK (or DBK_LINK2). The libraries should be specified using the /R command line switch (R for REFERENCE).

Please login to reply.