[mono-vb] compile error, <MyGenerator> file not found

John Lenz jlenz2 at math.uiuc.edu
Sun Sep 26 13:48:12 EDT 2010


On 09/26/2010 11:06 AM, Scott Horowitz wrote:
> Hi,
>
> I get a compile error when building a project that was developed in
> VB.NET <http://VB.NET> under VisualStudio:
>
>      Unexpected error: Object reference not set to an instance of an
> object (VBNC999), File <MyGenerator>
>
> When clicking on the error message, it says that the <MyGenerator> file
> cannot be found. How do I go about debugging the problem? I'm using vbnc
> version 0.0.0.5917.
>

This means the vb compiler crashed and unfortunately did not crash with 
any helpful info.

The best bet is to update to the latest development version of vbnc and 
see if the bug is fixed.  Otherwise, the way I debug it is to try and 
comment out code until the compiler does not crash anymore.  The 
compiler might produce an error because you commented out code, but that 
is a good thing :) because you found the code which causes the compiler 
to crash.

Just a few weeks ago I was getting the same error when using a generic 
constructor, and that bug is now fixed in the latest development version 
so you can try updating.

John


More information about the Mono-vb mailing list