[Mono-list] Porting FreeTrain to Mono

Atsushi Eno atsushi at ximian.com
Tue Feb 26 01:39:32 EST 2008


Hello,

So I've created a patch to make it build with mono (from FreeTrain.sln, 
built with MonoDevelop). Though I
could not get it run fine on mono due to some SDL_Image_Load() 
behavioral difference that returns null.

atsushi at linux-tx2c:/svn/FreeTrainSDL/bin/Debug> MONO_IOMAP=all mono 
--debug FreeTrainSDL.exe
Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
Parameter name: src
  at (wrapper managed-to-native) 
System.Runtime.InteropServices.Marshal:PtrToStructure (intptr,System.Type)
  at SDL.net.Surface..ctor (System.String filename) [0x00052] in 
/svn/FreeTrainSDL/lib/SDLGFX.net/Surface.cs:99
  at FreeTrainSDL.SDLGUI.initGUI (Int32 width, Int32 height, IntPtr pf) 
[0x00067] in /svn/FreeTrainSDL/SDLGUI.cs:61
  at FreeTrainSDL.FreeTrainSDL.Go () [0x0011b] in 
/svn/FreeTrainSDL/Program.cs:120
  at FreeTrainSDL.FreeTrainSDL.Main () [0x00006] in 
/svn/FreeTrainSDL/Program.cs:79

It would be nice if someone who is familiar with Tao/SDL could try it.

Atsushi Eno

> On Sun, Feb 24, 2008 at 8:09 PM, Atsushi Eno <atsushi at ximian.com> wrote:
>   
>> I agree that FreeTrain had been great, actually to me *the only*
>>  valuable .NET application for years.
>>
>>  It is intreseting that FreeTrain was being ported to SDL land. Though it
>>  wouldn't run on non-Windows platform
>>  unless it drops COM dependency such as AxSHDocVw.dll and MSHtmlHost.dll.
>>  I wonder if they can be
>>  rewritten using WebBrowser control (it is still under heavy development
>>  though).
>>
>>  DierctAudio dependency is also porting blocker, though I guess it could
>>  be cut.
>>     
>
> Thanks for the respons Atsushi.
>
> The goal was to remove all Windows dependencies and fully port it but
> unfortunately those who have worked on it lack the .NET skills and
> necessary motivations to accomplish this task, hence why I'm asking
> here.  It would be a great showcase for Mono, and a bit of a steal to
> have FreeTrain to move to Mono from .NET.
>
>  - C
>
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ft-mono-build.patch
Type: text/x-patch
Size: 16885 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20080226/efd4f495/attachment-0001.bin 


More information about the Mono-list mailing list