[mono-vb] Mono-Ported VB Program

Yitzi Lipschitz yitzi at trilogic.co.za
Fri Nov 21 00:03:04 EST 2008


Hi

I am new to Mono and I am attempting to port a program that I have written
in Visual Basic.Net on Windows to Suse Linux 11.0. 

I am using Mono Develop and have checked it is the latest stable release.
When I compile I get the following as listed below?


Building Project: TCPTriTrackLinux (Debug)
Performing main compilation...
vbnc
-out:"/home/linux/TCPTriTrackLinux/TCPTriTrackLinux/bin/Debug/TCPTriTrackLinux.exe"
-nologo -utf8output -main:Application -target:winexe 
-r:/usr/lib/mono/2.0/System.dll
"/home/linux/TCPTriTrackLinux/TCPTriTrackLinux/Application.vb"
"/home/linux/TCPTriTrackLinux/TCPTriTrackLinux/StateObject.vb"
"/home/linux/TCPTriTrackLinux/TCPTriTrackLinux/AsynchronousSocketListener.vb"
/home/linux/TCPTriTrackLinux/TCPTriTrackLinux/<MyGenerator> (1,1) : Error
VBNC99999: Unexpected error: Object reference not set to an instance of an
object

  at vbnc.MemberAccessExpression.ResolveExpressionInternal (vbnc.ResolveInfo
Info) [0x004ed] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Expressions/MemberAccessExpression.vb:343 
  at vbnc.Expression.ResolveExpression (vbnc.ResolveInfo ResolveInfo)
[0x00008] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Expressions/Expression.vb:223 
  at vbnc.BinaryExpression.ResolveExpressions (vbnc.ResolveInfo Info)
[0x00002] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Expressions/BinaryExpressions/BinaryExpression.vb:122 
  at vbnc.ConcatExpression.ResolveExpressions (vbnc.ResolveInfo Info)
[0x00002] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Expressions/BinaryExpressions/ConcatExpression.vb:26 
  at vbnc.BinaryExpression.ResolveExpressionInternal (vbnc.ResolveInfo Info)
[0x00002] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Expressions/BinaryExpressions/BinaryExpression.vb:143 
  at vbnc.Expression.ResolveExpression (vbnc.ResolveInfo ResolveInfo)
[0x00008] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Expressions/Expression.vb:223 
  at vbnc.Argument.ResolveCode (vbnc.ResolveInfo Info) [0x00013] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Expressions/Argument.vb:92 
  at vbnc.Helper.ResolveCodeCollection (IEnumerable Collection,
vbnc.ResolveInfo Info) [0x00044] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/General/Helper.vb:2339 
  at vbnc.ArgumentList.ResolveCode (vbnc.ResolveInfo Info) [0x00002] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Expressions/ArgumentList.vb:319 
  at vbnc.VariableDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00037]
in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Members/VariableDeclaration.vb:274 
  at vbnc.CodeBlock.ResolveCode (vbnc.ResolveInfo Info) [0x00046] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Code/CodeBlock.vb:594 
  at vbnc.IfStatement.ResolveStatement (vbnc.ResolveInfo Info) [0x00021] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Statements/IfStatement.vb:119 
  at vbnc.CodeBlock.ResolveCode (vbnc.ResolveInfo Info) [0x000b0] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Code/CodeBlock.vb:603 
  at vbnc.TryStatement.ResolveStatement (vbnc.ResolveInfo Info) [0x00056] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Statements/TryStatement.vb:85 
  at vbnc.CodeBlock.ResolveCode (vbnc.ResolveInfo Info) [0x000b0] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Code/CodeBlock.vb:603 
  at vbnc.MethodBaseDeclaration.ResolveCode (vbnc.ResolveInfo Info)
[0x00065] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/General/MethodBaseDeclaration.vb:226 
  at vbnc.MethodDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00002] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Members/MethodDeclaration.vb:87 
  at vbnc.SubDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00037] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/Members/SubDeclaration.vb:122 
  at vbnc.Helper.ResolveCodeCollection (IEnumerable Collection,
vbnc.ResolveInfo Info) [0x00044] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/General/Helper.vb:2339 
  at vbnc.BaseObjects`1[vbnc.IMember].ResolveCode (vbnc.ResolveInfo Info)
[0x00000] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/General/BaseObjects`1.vb:65 
  at vbnc.TypeDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x0001c] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/TypeDeclarations/TypeDeclaration.vb:487 
  at vbnc.ClassDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00002] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/TypeDeclarations/ClassDeclaration.vb:125 
  at vbnc.AssemblyDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x0002a]
in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/TypeDeclarations/AssemblyDeclaration.vb:209 
  at vbnc.Compiler.Compile_Resolve () [0x001a9] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/General/Compiler.vb:428 
  at vbnc.Compiler.Compile () [0x0028a] in
/usr/src/packages/BUILD/mono-basic-2.0/vbnc/vbnc/source/General/Compiler.vb:561 

Compilation took 00:00:01.8360270

Build complete -- 0 errors, 0 warnings

---------------------- Done ----------------------

Build: 1 error, 0 warnings

Within the Error List

It says unexpected Error: Ovject reference not set to an instance of an
object <MyGenerator> Line 1

-- 
View this message in context: http://www.nabble.com/Mono-Ported-VB-Program-tp20615307p20615307.html
Sent from the Mono - VB mailing list archive at Nabble.com.



More information about the Mono-vb mailing list