replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Experimenting with .NET and FTN95
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Experimenting with .NET and FTN95

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
jalih



Joined: 30 Jul 2012
Posts: 196

PostPosted: Thu Nov 08, 2012 8:34 pm    Post subject: Experimenting with .NET and FTN95 Reply with quote

Hi all,

I have been experimenting with FTN95 and .NET inter-operability recently. I use Component Pascal to write my .NET code and it works quite nicely.

I converted this mandelbrot example into Component Pascal.

Available here, if someone is interested.
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2927
Location: South Pole, Antarctica

PostPosted: Fri Nov 09, 2012 12:57 am    Post subject: Reply with quote

Great documentation, BTW!

Got "Unhandled exception" executing your EXE file, guessing why. Can somebody download and run it too?
Back to top
View user's profile Send private message
jalih



Joined: 30 Jul 2012
Posts: 196

PostPosted: Fri Nov 09, 2012 9:06 am    Post subject: Re: Reply with quote

DanRRight wrote:

Got "Unhandled exception" executing your EXE file, guessing why. Can somebody download and run it too?

Strange, it runs fine on my computer. Can you give any more info about the exception?
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2927
Location: South Pole, Antarctica

PostPosted: Wed Nov 14, 2012 5:36 am    Post subject: Reply with quote

Copying the text from error report:

"See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.TypeInitializationException: The type initializer for 'MandelbrotBackend' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Salford.Fortran.RTLibrary' threw an exception. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at Salford.Fortran.RTLibrary.__com_plus_initialise(Int32 hin)
at Salford.Fortran.RTLibrary.InitLibrary()
--- End of inner exception stack trace ---
at Salford.Fortran.RTLibrary.InitLibrary()
at MandelbrotBackend..cctor()
--- End of inner exception stack trace ---
at MandelbrotBackend.SetupMandelbrot(Bitmap , PictureBox )
at Mandelbrot.Mandelbrot.SetupMandelbrot()
at Mandelbrot.Form1.ActionOnLoad(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
Mandelbrot
Assembly Version: 0.0.0.0
Win32 Version:
CodeBase: file:///C:/_Work/2012/Silverfrost/Jalih/mandelbrot/bin/Mandelbrot.exe
----------------------------------------
RTS
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///C:/_Work/2012/Silverfrost/Jalih/mandelbrot/bin/RTS.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5460 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5462 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
MandelbrotBackend
Assembly Version: 1.0.0.0
Win32 Version:
CodeBase: file:///C:/_Work/2012/Silverfrost/Jalih/mandelbrot/bin/MandelbrotBackend.DLL
----------------------------------------
ftn95lib
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Windows/assembly/GAC/ftn95lib/1.1.0.0__626494245e82c014/ftn95lib.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exc
Back to top
View user's profile Send private message
jalih



Joined: 30 Jul 2012
Posts: 196

PostPosted: Wed Nov 14, 2012 7:15 am    Post subject: Re: Reply with quote

I think it's 64-bit vs. 32-bit .NET issue. Try setting the program binary to 32-bit mode using the corflags utility:
Code:
corflags.exe /32BIT+ Mandelbrot.exe
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group