[Mono-bugs] Solaris 8 OutOfMemoryException Problems.

Melissa Vandenbrink melissa.vandenbrink at gmail.com
Wed May 31 16:35:42 EDT 2006

I am having problems with Solaris 8 / mono 1.1.15 - every once in a while
I'll get this error:
bash-3.1# mono odbcConnectTest.exe

Unhandled Exception: System.ExecutionEngineException: SIGILL
in <0x00000> <unknown method>
in <0x0000c> System.OutOfMemoryException:.ctor (System.String message)

and everyonce in awhile the program will run just fine.  (I have this same
problem running a "Hello World" application as well as trying to compile an

the program is simple, I'm just testing my odbc connection to sybase...

This is running on a SunFire V120 - with 1G RAM. I have no problems running
the same app on a Sun Fire 280R with 1G RAM

using System;
using System.Data;
using System.Data.Odbc;

namespace ConnectSybaseODBC
        /// <summary>
        /// Summary description for Class1.
        /// </summary>
        class Connect
                /// <summary>
                /// The main entry point for the application.
                /// </summary>
                static void Main(string[] args)
                        // TODO: Add code to start application here
                        string connectionString =
                                "DSN=MYDSN;" +
                                "UID=MYUID;" +
                                "PWD=MYPASS;" +
                        OdbcConnection dbcon;
                        dbcon = new OdbcConnection(connectionString);

                        set_ansinull (ref dbcon, false);

                        IDbCommand dbcmd = dbcon.CreateCommand();
                        string sql =
                                "SELECT name " +
                                "FROM master.dbo.sysobjects";
                        dbcmd.CommandText = sql;
                        IDataReader reader = dbcmd.ExecuteReader();
                        while(reader.Read()) {
                                string objName = reader["name"].ToString();
                                Console.WriteLine("Name: " + objName);
                        // clean up
                        reader = null;
                        dbcmd = null;
                        dbcon = null;

                static public void set_ansinull (ref OdbcConnection db_conn,
bool on) {
                        OdbcCommand cmd = new OdbcCommand (
                                "SET ANSINULL " + (on? "ON": "OFF"),
                        try {
                        OdbcDataReader rd = cmd.ExecuteReader();
                        while (rd.Read());
                        } catch ( OdbcException ){} ;


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-bugs/attachments/20060531/93a13c83/attachment.html

More information about the mono-bugs mailing list