[Mono-list] Re quire help with moving code to Mono (have problems)

davidlt cybaslt at hotmail.com
Wed Dec 24 07:20:08 EST 2008

I am working on small application capable working with Progress application
server and got stuck. The problem is that code works on Visual Studio while
on Mono it doesn't. I would like to find out which makes the problem. Is it
Mono or Progress assemblies.

This is how does the error look in program:
Macbook:kurasnet marius$ mono Program.exe 
Connecting to AppServer via .NET using PROGRESS OpenAPI.
User ID:
Error text: 

Unhandled Exception: Progress.Open4GL.Exceptions.Open4GLException: Object
reference not set to an instance of an object

And here is small part of code with problem:
            ParamArray tParams = new ParamArray(2);
            DataTable tTable = null;
            TempTableMetaData tMetaData = new TempTableMetaData("ttMano",
null, 1, false, 0, null, null, null);
            tMetaData.SetFieldMetaData(1, "num", 0, Parameter.PRO_INTEGER,
0, 0);

            tParams.AddInteger(0, 123456, ParamArrayMode.INPUT);
            tParams.AddTable(1, tTable, ParamArrayMode.OUTPUT, tMetaData);

            allReceipts.RunProc("antras.p", tParams);

            tTable = (DataTable)tParams.GetOutputParameter(1);

tTable being null generates this error (but it should be null) and if I
create DataTable Object and give I get another error, which is reasonable.

Macbook:kurasnet marius$ gmcs Program.cs -r:System.Data.dll
-r:Progress.o4glrt.dll -r:Progress.Messages.dll -r:Progress.ssl.dll

Everything else looks to works, the only problem is with DataTable. I think
there might be three problems: a) System.Data.dll b) Mono itself c) Progress
assemblies is not compatible, which somehow I doubt. Any ideas?
View this message in context: http://www.nabble.com/Require-help-with-moving-code-to-Mono-%28have-problems%29-tp21156830p21156830.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list