Jun 15, 2012 at 8:25 PM
Edited Jun 15, 2012 at 8:26 PM
Hi, I came across your project today and have to say that the concept looks pretty awesome.
Unfortunately I seem to be having problems making even the Hello World example work.
I have tried two configurations:
1. Compiled using your csproj file into a library and linked it to a simple test program with the Hello World example code. Everything compiles OK, but the code crashes on line 305 of GenerationServices.cs when calling:
// Finish the type.
Type generatedType = typeBuilder.CreateType();
The exception info is:
Type 'IDataModel_Proxy_' from assembly 'IOG.RuntimeProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is attempting to implement an inaccessible interface.
2. I included all the .cs files into a Mono for Android project. Unfortunately, Mono for Android does not seem to support the Properties.Settings code that is included in IOG. I coded up a quick class to replace the Properties.Settings with property
accessors that return the same default values. After deleting a couple of other files that were causing compilation problems, I was able to get everything to compile.
At runtime, however, the ws.Commit() call failed. Deep down, there is an exception in the MoveNextInternal() method. The enumerator threw an InvalidOperationException. The Current member was not valid.
It may have something to do with the fact that it has no parents (it is the root).
My actual goal is to use IOG in the Mono for Android & Mono Touch (iOS) environments. I only tried the Windows build to see if I had caused any problems in the few changes I made to get it to compile on Mono for Android.
Do you have any idea why the above two crashes are occuring?
I would be happy to work with you testing any changes that might be necessary to make IOG work on Mono for Android and Mono Touch.