I created a program in VB Express, tested it and added the application to our daily ANT build using Mono. I then made some modifications and re-compiled with mono. The compile process went well and the program was able to start properly. But when it reached a certain part of the code, I got the error: "System.InvalidProgramException: Invalid IL code".
I searched all over the web about this problem but was unable to find the root cause of the problem. I then decided to try out re-compiling in VS Express and was presented with lots of compile errors. That's when I realized that mono's compiler (specifically vbnc) is not as good as it's supposed to be (yet). And that you should still try to compile with VS every now and then just to make sure everything's working.
Lesson of the story: If you get this error, try compiling with VS to see if there are other problems.
0 comments:
Post a Comment