[MonoDevelop] Gtk-Sharp V2.10 / V2.12 & mono-basic source code

Rolf Bjarne Kvinge rolflists at ya.com
Mon Apr 14 07:54:47 EDT 2008


Hi Brett,

 

Regarding this issue I have no idea what might be going on, though to me it looks like your mono is having problems (it’s not a mono-basic problem, code page 1252 should be supported, and the exception is thrown inside corlib).

 

A simple C# program which does “e = System.Text.Encoding.GetEncoding (1252);” should also exhibit this problem, so that might help in order to narrow down the cause.

 

Rolf

 

From: Brett Senior [mailto:brett_senior at yahoo.com.au] 
Sent: domingo, 13 de abril de 2008 7:12
To: Rolf Bjarne Kvinge
Subject: Re: [MonoDevelop] Gtk-Sharp V2.10 / V2.12 & mono-basic source code

 

Rolf,

   Thanks for your help re monobasic.  I downloaded the latest and then tried to make it.  I still get an error as you can see from the below text - re code page 1252.  Is this a configuration issue on my machine ?  Any assistance in this matter would be appreciated.


MONO_PATH="../../class/lib/bootstrap:$MONO_PATH" mono  --debug  ../../class/lib/bootstrap/vbnc.exe    -debug -r:System.Xml.dll -noconfig -define:_MYTYPE=\"Empty\" -target:exe -out:extract-source.exe   @extract-source.exe.sources
Visual Basic.Net Compiler version 0.0.0.5876
Copyright (C) 2004-2007 Rolf Bjarne Kvinge. All rights reserved.


/home/brett/Desktop/Downloads/MonoProject/SupportFiles/mono-basic-98949/tools/extract-source/extract-source.vb (1,1) : Error VBNC99999: Unexpected error: CodePage 1252 not supported
  at System.Text.Encoding.GetEncoding (Int32 codePage) [0x00158] in /home/meebey/data/projects/debian/pkg-mono/mono/build-area/mono-1.9+dfsg/mcs/class/corlib/System.Text/Encoding.cs:513 
  at Microsoft.VisualBasic.Strings.Asc (Char c) [0x00000] 
  at vbnc.TypeConverter.GetResultType (TypeCode op1, TypeCode op2, System.String array) [0x00000] 
  at vbnc.TypeConverter.GetConcatOperandType (TypeCode op1, TypeCode op2) [0x00000] 
  at vbnc.TypeConverter.GetBinaryOperandType (KS op, TypeCode op1, TypeCode op2) [0x00000] 
  at vbnc.TypeConverter.GetBinaryOperandType (vbnc.Compiler Compiler, KS op, System.Type op1, System.Type op2) [0x00000] 
  at vbnc.BinaryExpression.get_OperandTypeCode () [0x00000] 
  at vbnc.BinaryExpression.ResolveExpressionInternal (vbnc.ResolveInfo Info) [0x00000] 
  at vbnc.Expression.ResolveExpression (vbnc.ResolveInfo ResolveInfo) [0x00000] 
  at vbnc.Argument.ResolveCode (vbnc.ResolveInfo Info) [0x00000] 
  at vbnc.Helper.ResolveCodeCollection (IEnumerable Collection, vbnc.ResolveInfo Info) [0x00000] 
  at vbnc.ArgumentList.ResolveCode (vbnc.ResolveInfo Info) [0x00000] 
  at vbnc.InvocationOrIndexExpression.ResolveExpressionInternal (vbnc.ResolveInfo Info) [0x00000] 
  at vbnc.Expression.ResolveExpression (vbnc.ResolveInfo ResolveInfo) [0x00000] 
  at vbnc.CallStatement.ResolveStatement (vbnc.ResolveInfo Info) [0x00000] 
  at vbnc.CodeBlock.ResolveCode (vbnc.ResolveInfo Info) [0x00000] 
  at vbnc.MethodBaseDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] 
  at vbnc.MethodDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] 
  at vbnc.SubDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] 
  at vbnc.Helper.ResolveCodeCollection (IEnumerable Collection, vbnc.ResolveInfo Info) [0x00000] 
  at vbnc.BaseObjects`1[vbnc.IMember].ResolveCode (vbnc.ResolveInfo Info) [0x00000] 
  at vbnc.TypeDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] 
  at vbnc.AssemblyDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] 
  at vbnc.Compiler.Compile_Resolve () [0x00000] 
  at vbnc.Compiler.Compile () [0x00000] 
Compilation took 00:00:01.2715560
make[3]: *** [extract-source.exe] Error 255
make[3]: Leaving directory `/home/brett/Desktop/Downloads/MonoProject/SupportFiles/mono-basic-98949/tools/extract-source'
make[2]: *** [do-all] Error 2
make[2]: Leaving directory `/home/brett/Desktop/Downloads/MonoProject/SupportFiles/mono-basic-98949/tools/extract-source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/brett/Desktop/Downloads/MonoProject/SupportFiles/mono-basic-98949/tools'
make: *** [all-recursive] Error 1

 

Brett Senior

 

----- Original Message ----
From: Rolf Bjarne Kvinge <rolflists at ya.com>
To: Brett Senior <brett_senior at yahoo.com.au>; Mono Project <monodevelop-list at lists.ximian.com>
Sent: Saturday, 12 April, 2008 10:39:56 PM
Subject: RE: [MonoDevelop] Gtk-Sharp V2.10 / V2.12 & mono-basic source code



From: monodevelop-list-bounces at lists.ximian.com [mailto:monodevelop-list-bounces at lists.ximian.com] On Behalf Of Brett Senior
Sent: sábado, 12 de abril de 2008 11:59
To: Mono Project
Subject: [MonoDevelop] Gtk-Sharp V2.10 / V2.12 & mono-basic source code

(...)

>Secondly I have tried to install the mono-basic module (as I have existing Windows/VB programs - and need to run them so I can then convert to C# on Linux) and it compiled OK - but when I tried to >install it a message indicating that the assembly is not strong named and could not be added - so then I cannot run the existing programs.  Again, any advice on this matter would be appreciated.

Which version of mono-basic did you try to get? This problem has been fixed not long ago, you can download the latest version here: http://mono.ximian.com/monobuild/snapshot/download-trunk/ 

Btw, why do you want to convert them to C# if you can make them run as they are?

Rolf
________________________________________
Get the name you always wanted with the new y7mail email address. 

 

 

  _____  

Get the name you always wanted with the new y7mail email address <http://au.rd.yahoo.com/mail/taglines/au/y7mail/yahoo.com.au/*http:/au.yahoo.com/y7mail/?p1=ni&p2=general&p3=tagline&p4=yahoo> .

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20080414/67dd7d0b/attachment-0001.html 


More information about the Monodevelop-list mailing list