[Mono-list] mod-mono bad crashing, here is the squirrel !

Lorenzo Viola info at eulogika.net
Wed Sep 26 10:53:06 EDT 2007

> It would be really nice, if you would try to find out why the line
> 	idbCommBuild.ConflictOption = ConflictOption.OverwriteChanges;
> is crashing MySqlClient, respectively Mono.

Hello, I've prepared a little test case...

mysql.crash.cs : 

using System;
using System.Data;
using MySql.Data.MySqlClient;

namespace TestingMysqlClient
   public class WhyIsMysqlClientCrashing
      public static void Main(string[] args)
    string sSQL = "SELECT 'Why is MysqlClient Crashing........' ";

    MySqlConnection idbConn = new MySqlConnection(
ID=yyy;Password=zzz;Pooling=false;Allow Zero Datetime=true");
    MySqlDataAdapter idbAdapter = new MySqlDataAdapter(sSQL, 

    MySqlCommandBuilder idbCommBuild = new 
    idbCommBuild.ConflictOption = ConflictOption.OverwriteChanges;

    DataSet ds = new DataSet();

    Console.WriteLine("Hello World, rows : " + 


I compile with mcs :

mcs mysql.crash.cs -r:MySql.Data.dll -r:System.Data
mysql.crash.cs(19,39): error CS0103: The name `ConflictOption' does not 
exist in the current context
mysql.crash.cs(19,9): error CS0117: 
`MySql.Data.MySqlClient.MySqlCommandBuilder' does not contain a 
definition for `ConflictOption'
/root/MySql.Data.dll (Location of the symbol related to previous error)
Compilation failed: 2 error(s), 0 warnings

Looks to me that the problem is that I copy my library (global 
functions, database, etc.) from my windows
environment, where  ConflictOption is working ...

Then , when mod-mono tries to set this option, it gets 
stranded...........and crashes =P

best regards

More information about the Mono-list mailing list