[mono-vb] A .net vb program is crashing without vb

Andy Hume andyhume32 at yahoo.co.uk
Sun Jun 22 15:12:57 EDT 2008




jfreak53 wrote:
> 
> I am running ubuntu 8.04 hardy edition on an amd 64 laptop.  I'm trying to
> run a program that was made for the school that I work at to enter grades,
> this program is run from the server.  I can find the file alright and it
> starts running but these are the errors that I get, then it exits and does
> nothing.
> 
> This is running the program with wine:
> 
> preloader: Warning: failed to reserve range 00000000-60000000
> preloader: Warning: failed to reserve range 00000000-60000000
> err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space,
> please report
> preloader: Warning: failed to reserve range 00000000-60000000
> err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space,
> please report
> preloader: Warning: failed to reserve range 00000000-60000000
> err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space,
> please report
> err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space,
> please report
> preloader: Warning: failed to reserve range 00000000-60000000
> err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space,
> please report
> preloader: Warning: failed to reserve range 00000000-60000000
> err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space,
> please report
> fixme:win:EnumDisplayDevicesW ((null),0,0x7f32e310,0x00000000), stub!
> fixme:win:SetLayeredWindowAttributes ((nil),0x00000000,255,2): stub!
> fixme:win:GetLayeredWindowAttributes
> ((nil),0x7f32f930,0x7f32f913,0x7f32f914): stub!
> fixme:win:SetLayeredWindowAttributes (0x1002e,0x00000000,0,2): stub!
> 
> ** (MSSchool.exe:24): WARNING **: string marshalling conversion 34 not
> implemented
> 
> Unhandled Exception: System.NotImplementedException: string marshalling
> conversion 34 not implemented
> at MSSchool.frmLogin.frmLogin_Load (object,System.EventArgs) <0x00175>
> at System.Windows.Forms.Form.OnLoad (System.EventArgs) <0x00059>
> [...]
> 

This is a problem with a P/Invoke call, the app is using a form of P/Invoke
marshalling that Mono apparently does not support -- don't think there's
been a change since
http://lists.ximian.com/pipermail/mono-devel-list/2008-April/027391.html  If
you have access to the sources and recompile then its likely easily fixed...

(I presume that the earlier error messages are from wine).



jfreak53 wrote:
> 
> and this is the error I get when I run it straight with mono:
> 
> ** (msschool.exe:6431): WARNING **: The following assembly referenced from
> /mnt/msschool.exe could not be loaded:
>      Assembly:   Microsoft.VisualBasic    (assemblyref_index=1)
>      Version:    8.0.0.0
>      Public Key: b03f5f7f11d50a3a
> The assembly was not found in the Global Assembly Cache, a path listed in
> the MONO_PATH environment variable, or in the location of the executing
> assembly (/mnt/).
> 
> 
> ** (msschool.exe:6431): WARNING **: Could not load file or assembly
> 'Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
> The entry point method could not be loaded
> 

So, that means you don't have a mono-basic package installed.  I don't know
about package support for ubuntu.  The other thread just now is searching
for debian support too...

However if the application is P/Invoke-ing to native Windows API calls then
its perhaps not likely to work on Mono on Linux anyway.  Download the Moma
tool and see what it reports, http://www.mono-project.com/Moma

Andy
-- 
View this message in context: http://www.nabble.com/A-.net-vb-program-is-crashing-without-vb-tp18045589p18057961.html
Sent from the Mono - VB mailing list archive at Nabble.com.



More information about the Mono-vb mailing list