Permalink
Browse files

Solve a bug when running with Mono 2.0.1 for AMD64

Temporary solution to solve a bug when running with Mono JIT compiler
version 2.0.1 for AMD64 architecture. When a clause that do not return any
value is called first, the method throws a NullReferenceException.
  • Loading branch information...
1 parent 3ff1124 commit 3991b3e5fd26d6b7dc578d0937dfcf83ec8c20ec @rodrigofarias77 rodrigofarias77 committed with Sep 22, 2009
Showing with 6 additions and 0 deletions.
  1. +6 −0 versaplexd/vxcli.cs
View
@@ -174,6 +174,12 @@ public static int Main(string[] args)
LineEditor le = new LineEditor("VxCli");
string inp;
+ // Temporary solution to solve a bug when running with Mono JIT
+ // compiler version 2.0.1 for AMD64 architecture. When a clause that
+ // do not return any value is called first, the method throws a
+ // NullReferenceException
+ dbi.select("select 1").Dispose();
+
while (true)
{
Console.WriteLine();

0 comments on commit 3991b3e

Please sign in to comment.