Re: [Mono-list] SerialPortTest

2009-03-04 Thread sojan

the code is as follows please have a look

using System;
using System.IO.Ports;
 
public class SerialPortTest
{
public static void Main(string[] args)
{
SerialPortTest myTest = new SerialPortTest();
myTest.Test();
}
 
private SerialPort mySerial;
 
// Constructor
public SerialPortTest()
{
}
 
public void Test()
{
if (mySerial != null)
if (mySerial.IsOpen)
mySerial.Close();
 
mySerial = new
SerialPort("/dev/ttyS0",9600,System.IO.Ports.Parity.None,8,System.IO.Ports.StopBits.One);
mySerial.Open();
mySerial.ReadTimeout = 400;
SendData("ATI3\r");
 
// Should output some information about your modem firmware
Console.WriteLine(ReadData());  
}
 
public string ReadData()
{
byte tmpByte;
string rxString = "";

tmpByte = (byte) mySerial.ReadByte();
 
while (tmpByte != 255) {
rxString += ((char) tmpByte);
tmpByte = (byte) mySerial.ReadByte();   
}

return rxString;
}
 
public bool SendData(string Data)
{
mySerial.Write(Data);
return true;
}
}


Orfeo wrote:
> 
> 
> sojan wrote:
>> 
>> I  got a sample code for serial port communication.
>> i compiled the code using gmcs Serialport.cs
>> 
>> when i execute the exe as mono Serialport.exe
>> 
>> getting the following exception
>> 
>> Unhandled Exception: System.IO.IOException: I/O Error
>>   at System.IO.Ports.SerialPortStream..ctor (System.String portName,
>> Int32 baudRate, Int32 dataBits, Parity parity, StopBits stopBits, Boolean
>> dtrEnable, Boolean rtsEnable, Handshake handshake, Int32 readTimeout,
>> Int32 writeTimeout, Int32 readBufferSize, Int32 writeBufferSize)
>> [0x0] 
>>   at (wrapper remoting-invoke-with-check)
>> System.IO.Ports.SerialPortStream:.ctor
>> (string,int,int,System.IO.Ports.Parity,System.IO.Ports.StopBits,bool,bool,System.IO.Ports.Handshake,int,int,int,int)
>>   at System.IO.Ports.SerialPort.Open () [0x0] 
>>   at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPort:Open
>> ()
>>   at SerialPortTest.Test () [0x0] 
>>   at SerialPortTest.Main (System.String[] args) [0x0] 
>> 
>> help me to solve this 
>> thanks in advance
>> 
> 
> How did you open the port?
> 
> In linux you must use "/dev/ttyS0" as port name:
> -
> 
> System.IO.Ports.SerialPort serialport = new
> System.IO.Ports.SerialPort("/dev/ttyS0",
> br,
> System.IO.Ports.Parity.None,
> 8,
> System.IO.Ports.StopBits.One);
> --
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/SerialPortTest-tp22324797p22345824.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Fatal error when running a simple application under Mono

2009-03-04 Thread Brett Senior
I am running a small, simple application using SVN release 128627 of Mono.  
This application used to work fine under earlier (ie pre 2.2) releases of Mono 
but has began to crash when using the newer version.  When it runs I can 
interact with the widgets for a while and then it crashes with the below errors:


[0x7fd27edb6720: 75.88669 15] LEAVE: INV_MainWindow:OnButtonExecuteClicked 
(object,System.EventArgs)
[0x7fd27edb6720: 75.88670 14] LEAVE: (wrapper runtime-invoke) 
INV_MainWindow:runtime_invoke_void__this___object_object 
(object,intptr,intptr,intptr)[OBJECT:(nil)]
[0x7fd27edb6720: 75.88671 13] LEAVE: (wrapper managed-to-native) 
System.Reflection.MonoMethod:InternalInvoke 
(object,object[],System.Exception&)[OBJECT:(nil)]
[0x7fd27edb6720: 75.88673 12] LEAVE: System.Reflection.MonoMethod:Invoke 
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)[OBJECT:(nil)]
[0x7fd27edb6720: 75.88674 11] LEAVE: System.Reflection.MethodBase:Invoke 
(object,object[])[OBJECT:(nil)]
[0x7fd27edb6720: 75.88675 10] LEAVE: System.Delegate:DynamicInvokeImpl 
(object[])[OBJECT:(nil)]
[0x7fd27edb6720: 75.88675 9] LEAVE: System.MulticastDelegate:DynamicInvokeImpl 
(object[])[OBJECT:(nil)]
[0x7fd27edb6720: 75.88676 8] LEAVE: System.Delegate:DynamicInvoke 
(object[])[OBJECT:(nil)]
[0x7fd27edb6720: 75.88677 7] LEAVE: GLib.Signal:ClosureInvokedCB 
(object,GLib.ClosureInvokedArgs)
[0x7fd27edb6720: 75.88678 6] LEAVE: GLib.SignalClosure:Invoke 
(GLib.ClosureInvokedArgs)
[0x7fd27edb6720: 75.88679 5] LEAVE: GLib.SignalClosure:MarshalCallback 
(intptr,intptr,uint,intptr,intptr,intptr)
[0x7fd27edb6720: 75.88680 4] LEAVE: (wrapper native-to-managed) 
GLib.SignalClosure:MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr)

Stacktrace:

  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x0006d>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x>
  at Gtk.Application.Run () <0x00027>
  at Investment_Returns.MainClass.Main (string[]) <0x00097>
  at (wrapper runtime-invoke) 
Investment_Returns.MainClass.runtime_invoke_void_object 
(object,intptr,intptr,intptr) <0x>

Native stacktrace:

mono [0x481506]
mono [0x4b28dd]
/lib/libpthread.so.0 [0x7fd27e0b6a80]

Debug info from gdb:


=
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=

Aborted
**
ERROR:shared.c:543:shm_semaphores_remove: assertion failed: (proc_count > 0)


I have re-installed the 'libc' package that contains libpthread and this did 
not resolve the problem.  Can anyone help me with this ?  Some clues as to 
where I can look next would be very much appreciated.


Brett Senior.



  Stay connected to the people that matter most with a smarter inbox. Take 
a look http://au.docs.yahoo.com/mail/smarterinbox___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Install issues with mod-mono on Debian Sarge

2009-03-04 Thread Robert Jordan
Catdude wrote:
> I'm trying to get mod-mono installed on a Debian Sarge machine. I've got mono
> running fine.
> 
> I've installed mono-xsp2 and mono-apache-server2 via apt-get. I've made sure
> that /etc/apache2/apache2.conf has "Include /etc/apache2/mod_mono.conf".
> When I restart apache2 the log file reads "[Sun Mar 01 19:15:47 2009]
> [error] Failed running '/usr/local/lib/pkgconfig/../../bin/mod-mono-server
> --filename /tmp/mod_mono_server --applications /asp:/var/www/sharedip/asp
> --nonstop (null) (null) (null) (null) (null) (null) (null)'. Reason: No such
> file or directory"
> 

> I can start mod-mono-server2 from the command line with no problem:
> ga:~# mod-mono-server2
> mod-mono-server2

mod-mono-server2 is not mod-mono-server (see apache error message).
If you want ASP.NET 2.0, you have to specify it with
MonoServerPath /usr/bin/mod-mono-server2 in your apache config.

> If I start it specifying a tcp port I get a different error:
> ga:~# mod-mono-server2 --port 8000
> mod-mono-server2
> Listening on port: 8000
> Listening on address: 0.0.0.0
> Root directory: /root
> Hit Return to stop the server.
> mod_mono and xsp have different versions.

Mod-mono-server is not intended to be used this way. Thus
the error is expected.

Robert

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] SuSe 11.1 and Mono

2009-03-04 Thread Nagappan A
Hello,

On Tue, Mar 3, 2009 at 10:26 AM, drsandylinux  wrote:

>
> Hi,
>
> Am a newbie on suse, but have lots of experiance on ubuntu. I now have a
> dual boot system unbutu/suse.
>
> I installed suse without a problem. Then I install mono (mono complete
> 2.2x)
> using Yast. All the stuff is there including the monodevelop folder.
>
> How do I start mono develop? There is no icon or anything that I can click
> on to start. Been using mono 1.9 on ubuntu without a problem (it did create
> an icon).


For now you can create a short cut in panel or use ALT+F2 and type
monodevelop then click Run.

Thanks
Nagappan

>
> --
> View this message in context:
> http://www.nabble.com/SuSe-11.1-and-Mono-tp22314692p22314692.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>



-- 
Linux Desktop (GUI Application) Testing Project -
http://ldtp.freedesktop.org
http://nagappanal.blogspot.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Newbie - How do I compile example?

2009-03-04 Thread Nagappan A
Hello,

On Mon, Mar 2, 2009 at 11:41 AM, LKeene  wrote:

>
> Hello all, Mono newbie here. How do I compile the following example (which
> I've entered via Microsoft Norepad and saved as "c:\Mono Test\Simple.cs":
>
> using System.Windows.Forms;
> using System.Drawing;
>
> public class Simple : Form
> {
>public Simple()
>{
>   Text = "Simple";
>   Size = new Size(250, 200);
>   CenterToScreen();
>}
>
>static public void Main()
>{
>   Application.Run(new Simple());
>}
> }
>
> I've installed Mono 2.2 using the default installation parameters on my
> Wndows XP box. Then, at the command prompt, I tried changing to the
> compiler
> directory (the directory containing gmcs.exe) via:
>
> "cd c:\Program files\Mono-2.2\lib\mono\2.0"
>
> Then I invoke the compiler and specify the file to compile using the
> following:
>
> "gmcs -r:System.Windows.Forms.dll -r:System.Drawing.dll c:\Mono
> Test\simple.cs"
>
> I get errors at compile time claimg "'Mono' could not be found" &
> "Test\Simple.cs" could not be found. What is the proper procedure for doing
> this? Thanks so much in advance!


Could you please try the procedure as mentioned here ?
http://www.mono-project.com/Mono:Windows

Thanks
Nagappan

>
>
> -L
>
> --
> View this message in context:
> http://www.nabble.com/Newbie---How-do-I-compile-example--tp22295161p22295161.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>



-- 
Linux Desktop (GUI Application) Testing Project -
http://ldtp.freedesktop.org
http://nagappanal.blogspot.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Error when using mkbundle

2009-03-04 Thread Robert Jordan
djzmo wrote:
> Hi there..
> 
> I got this error when I tried to 'mkbundle' an assembly...
> 

> Unhandled Exception: System.ComponentModel.Win32Exception:
> ApplicationName='sh',
>  CommandLine='-c "as -o temp.o temp.s "', CurrentDirectory=''

> any ideas? :thinking:

You have to install cygwin with at least these packages:
"gcc", "binutils", "as".

Robert

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] ADO.NET 2.0 and SqlClient

2009-03-04 Thread Nagappan A
Hello,

On Tue, Feb 24, 2009 at 10:22 PM, xyznyc  wrote:

>
> Can anyone give the status of SQLClient development? The MS-SQL/SQLClient
> page ( http://mono-project.com/SQLClient http://mono-project.com/SQLClient
> ), under the "action plan" section, lists:
>
> - Add support for ADO.NET 2.0
>
> Does that mean ADO.NET 2.0 is not supported with the current
> implementation
> of System.Data.SqlClient?


That page has to be updated. Almost 99% of ADO.NET 2.0 functionality has
been implemented. If any functionality doesn't work, please feel free to
raise a bug.

Thanks
Nagappan


>
>
> TIA.
>
> --
> View this message in context:
> http://www.nabble.com/ADO.NET-2.0-and-SqlClient-tp22197006p22197006.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>



-- 
Linux Desktop (GUI Application) Testing Project -
http://ldtp.freedesktop.org
http://nagappanal.blogspot.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Can i use Mono as Script Language in my C++ application?

2009-03-04 Thread Michael Hutchinson
On Fri, Feb 27, 2009 at 8:12 AM, dodo502b  wrote:
> i am looking for something else than the LUA script engine. Can i use Mono
> in my own C++ application as script language? Is mono developed in pure C++.
> If so, i would like to use it as indepentend C# interpreter for iphone
> games. I would develope in C++ 3d engine for iPhone and make a wrapper for
> mono c#.
>
> Is this possible?

Yes, in fact there's already a company doing exactly this, and a large
number of shipping iPhone games are using their platform :-)

See http://www.mono-project.com/Mono:Iphone for more info.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Multiple threads slower than multiple processes?

2009-03-04 Thread Robert Jordan
SvenG wrote:
> Could anyone confirm whether this is the case? And if so, is there anything
> I can do to alleviate the problem?

Rebuild mono with

./configure --enable-parallel-mark ...

Robert

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] SerialPortTest

2009-03-04 Thread Orfeo


sojan wrote:
> 
> I  got a sample code for serial port communication.
> i compiled the code using gmcs Serialport.cs
> 
> when i execute the exe as mono Serialport.exe
> 
> getting the following exception
> 
> Unhandled Exception: System.IO.IOException: I/O Error
>   at System.IO.Ports.SerialPortStream..ctor (System.String portName, Int32
> baudRate, Int32 dataBits, Parity parity, StopBits stopBits, Boolean
> dtrEnable, Boolean rtsEnable, Handshake handshake, Int32 readTimeout,
> Int32 writeTimeout, Int32 readBufferSize, Int32 writeBufferSize) [0x0] 
>   at (wrapper remoting-invoke-with-check)
> System.IO.Ports.SerialPortStream:.ctor
> (string,int,int,System.IO.Ports.Parity,System.IO.Ports.StopBits,bool,bool,System.IO.Ports.Handshake,int,int,int,int)
>   at System.IO.Ports.SerialPort.Open () [0x0] 
>   at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPort:Open
> ()
>   at SerialPortTest.Test () [0x0] 
>   at SerialPortTest.Main (System.String[] args) [0x0] 
> 
> help me to solve this 
> thanks in advance
> 

How did you open the port?

In linux you must use "/dev/ttyS0" as port name:
-

System.IO.Ports.SerialPort serialport = new
System.IO.Ports.SerialPort("/dev/ttyS0",
br,
System.IO.Ports.Parity.None,
8,
System.IO.Ports.StopBits.One);
--


-- 
View this message in context: 
http://www.nabble.com/SerialPortTest-tp22324797p22325048.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] SuSe 11.1 and Mono

2009-03-04 Thread drsandylinux

Hi,

Am a newbie on suse, but have lots of experiance on ubuntu. I now have a
dual boot system unbutu/suse.

I installed suse without a problem. Then I install mono (mono complete 2.2x)
using Yast. All the stuff is there including the monodevelop folder.

How do I start mono develop? There is no icon or anything that I can click
on to start. Been using mono 1.9 on ubuntu without a problem (it did create
an icon).
-- 
View this message in context: 
http://www.nabble.com/SuSe-11.1-and-Mono-tp22314692p22314692.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Looking for decision support...

2009-03-04 Thread Uhu87

Hi

I want to start developing some Apps (with GUI) which should run on Win and
Mac.
Linux would be nice but isn´t required anyway.
I´m using Linux (Ubuntu) by myself.

The Apps I´ve to dev should act as a better frontend for
Customer-Management.
The actual solution is an Web-Frontend (PHP) using MySQL.
My orderers have requiered a Software which integrates into the other
CRM-Parts, like XMPP e.g., ...

Now the question is: "is mono the right way?"
I´m no noob in coding! My well known languages are PHP and C.

Please help me finding out if using mono or not.


Kind regards

Uhu
-- 
View this message in context: 
http://www.nabble.com/Looking-for-decision-support...-tp22306552p22306552.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Newbie - How do I compile example?

2009-03-04 Thread LKeene

Hello all, Mono newbie here. How do I compile the following example (which
I've entered via Microsoft Norepad and saved as "c:\Mono Test\Simple.cs":

using System.Windows.Forms;
using System.Drawing;

public class Simple : Form
{
public Simple()
{
   Text = "Simple";
   Size = new Size(250, 200);
   CenterToScreen();
}

static public void Main()
{
   Application.Run(new Simple());
}
}

I've installed Mono 2.2 using the default installation parameters on my
Wndows XP box. Then, at the command prompt, I tried changing to the compiler
directory (the directory containing gmcs.exe) via:

"cd c:\Program files\Mono-2.2\lib\mono\2.0"

Then I invoke the compiler and specify the file to compile using the
following:

"gmcs -r:System.Windows.Forms.dll -r:System.Drawing.dll c:\Mono
Test\simple.cs"

I get errors at compile time claimg "'Mono' could not be found" &
"Test\Simple.cs" could not be found. What is the proper procedure for doing
this? Thanks so much in advance!

-L

-- 
View this message in context: 
http://www.nabble.com/Newbie---How-do-I-compile-example--tp22295161p22295161.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Install issues with mod-mono on Debian Sarge

2009-03-04 Thread Catdude

I'm trying to get mod-mono installed on a Debian Sarge machine. I've got mono
running fine.

I've installed mono-xsp2 and mono-apache-server2 via apt-get. I've made sure
that /etc/apache2/apache2.conf has "Include /etc/apache2/mod_mono.conf".
When I restart apache2 the log file reads "[Sun Mar 01 19:15:47 2009]
[error] Failed running '/usr/local/lib/pkgconfig/../../bin/mod-mono-server
--filename /tmp/mod_mono_server --applications /asp:/var/www/sharedip/asp
--nonstop (null) (null) (null) (null) (null) (null) (null)'. Reason: No such
file or directory"

mod-mono-server is where it's supposed to be. The /var/www/sharedip/asp
directory is also there. The socket file then is the one that isn't getting
found. Looking in /tmp I see:
ga:/etc/apache2# ls -l /tmp/mod*
-rw---  1 www-data www-data 4 2009-03-01 19:15
/tmp/mod_mono_dashboard_default_2
-rw---  1 www-data www-data 4 2009-03-01 19:15
/tmp/mod_mono_dashboard_XXGLOBAL_1
-rw-r--r--  1 root root 0 2009-02-24 09:03 /tmp/mod_mono_server_0
-rw-r--r--  1 root root 0 2009-02-27 16:07
/tmp/mod_mono_server_588093487
-rw-r--r--  1 www-data root 0 2009-02-10 10:20
/tmp/mod_mono_server_719013977
-rw-r--r--  1 root root 0 2009-02-24 09:04
/tmp/mod_mono_server_784864593

No socket files present in /tmp at all.

I can start mod-mono-server2 from the command line with no problem:
ga:~# mod-mono-server2
mod-mono-server2
Listening on: /tmp/mod_mono_server
Root directory: /root
Hit Return to stop the server.

If I start it specifying a tcp port I get a different error:
ga:~# mod-mono-server2 --port 8000
mod-mono-server2
Listening on port: 8000
Listening on address: 0.0.0.0
Root directory: /root
Hit Return to stop the server.
mod_mono and xsp have different versions.
mod_mono and xsp have different versions.
mod_mono and xsp have different versions.
mod_mono and xsp have different versions.

However:
ga:/etc/apache2# xsp2 --version
xsp2.exe 1.1.9.2
(c) (c) 2002-2005 Novell, Inc.
Minimalistic web server for testing System.Web
and:
ga:/etc/apache2# mod-mono-server2 --version
mod-mono-server2.exe 1.1.9.2
(c) (c) 2002-2005 Novell, Inc.
Minimalistic web server for testing System.Web


So, at this point I am puzzled and confused. Any suggestions?

-- 
View this message in context: 
http://www.nabble.com/Install-issues-with-mod-mono-on-Debian-Sarge-tp22280792p22280792.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Error when using mkbundle

2009-03-04 Thread djzmo

Hi there..

I got this error when I tried to 'mkbundle' an assembly...

E:\Folder>mkbundle -o prog prog.exe --deps
OS is: Windows
Sources: 1 Auto-dependencies: True
   embedding: E:\Folder\prog.exe
   embedding: E:\PROGRA~1\Mono-2.2\lib\mono\2.0\System.Windows.Forms.dll
   embedding: E:\PROGRA~1\Mono-2.2\lib\mono\2.0\mscorlib.dll
   embedding: E:\PROGRA~1\Mono-2.2\lib\mono\2.0\System.Drawing.dll
   embedding: E:\PROGRA~1\Mono-2.2\lib\mono\2.0\System.dll
   embedding: E:\PROGRA~1\Mono-2.2\lib\mono\2.0\System.Configuration.dll
   embedding: E:\PROGRA~1\Mono-2.2\lib\mono\2.0\System.Xml.dll
   embedding: E:\PROGRA~1\Mono-2.2\lib\mono\2.0\System.Security.dll
   embedding: E:\PROGRA~1\Mono-2.2\lib\mono\2.0\Mono.Security.dll
   embedding: E:\PROGRA~1\Mono-2.2\lib\mono\2.0\System.Data.dll
   embedding: E:\PROGRA~1\Mono-2.2\lib\mono\2.0\Mono.Data.Tds.dll
   embedding: E:\PROGRA~1\Mono-2.2\lib\mono\2.0\System.Transactions.dll
   embedding:
E:\PROGRA~1\Mono-2.2\lib\mono\2.0\System.EnterpriseServices.dll
   embedding: E:\PROGRA~1\Mono-2.2\lib\mono\2.0\Mono.WebBrowser.dll
   embedding: E:\PROGRA~1\Mono-2.2\lib\mono\2.0\Mono.Posix.dll
   embedding: E:\PROGRA~1\Mono-2.2\lib\mono\2.0\Accessibility.dll
Compiling:
as -o temp.o temp.s

Unhandled Exception: System.ComponentModel.Win32Exception:
ApplicationName='sh',
 CommandLine='-c "as -o temp.o temp.s "', CurrentDirectory=''
  at System.Diagnostics.Process.Start_noshell
(System.Diagnostics.ProcessStartIn
fo startInfo, System.Diagnostics.Process process) [0x0]
  at System.Diagnostics.Process.Start_common
(System.Diagnostics.ProcessStartInf
o startInfo, System.Diagnostics.Process process) [0x0]
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo
start
Info) [0x0]
  at MakeBundle.Execute (System.String cmdLine) [0x0]
  at MakeBundle.GenerateBundles (System.Collections.ArrayList files)
[0x0]
  at MakeBundle.Main (System.String[] args) [0x0]


any ideas? :thinking:
-- 
View this message in context: 
http://www.nabble.com/Error-when-using-mkbundle-tp22262805p22262805.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Can i use Mono as Script Language in my C++ application?

2009-03-04 Thread dodo502b

Hi,

i am looking for something else than the LUA script engine. Can i use Mono
in my own C++ application as script language? Is mono developed in pure C++.
If so, i would like to use it as indepentend C# interpreter for iphone
games. I would develope in C++ 3d engine for iPhone and make a wrapper for
mono c#.

Is this possible?

Thanks, dodo
-- 
View this message in context: 
http://www.nabble.com/Can-i-use-Mono-as-Script-Language-in-my-C%2B%2B-application--tp22245615p22245615.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] OnDeserialization problem

2009-03-04 Thread Dave Null

Hi,

I'm trying to use the IDeserializationCallback interface with Mono 2.2  on
OS X 1.5.6 :

% mono --version
Mono JIT compiler version 2.2 (tarball Fri Jan  9 10:45:07 MST 2009)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
TLS:   normal
GC:Included Boehm (with typed GC)
SIGSEGV:   normal
Notification:  Thread + polling
Architecture:  x86
Disabled:  none

For my test, i've simply created a class which implements the interface and
the OnDeserialization() method :

[Serializable] class Truc : IDeserializationCallback {
private int limite;
[NonSerialized] private int[] tab;
   (...)
   public virtual void OnDeserialization(Object sender) {
  for (int i = 0; i < limite; i++) {
tab[i] = i + 42;
  }
}
   public static void Main() {
  Truc truc = new Truc(20);
  Console.WriteLine(truc);
  truc.Dump();
  Truc machin = Truc.Load();
  Console.WriteLine(machin);
}
}

This code compile fine with gmcs but execution throws an
System.NullReferenceException :

% mono serialisation2.exe
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object
  at Truc.OnDeserialization (System.Object sender) [0x0] 
  at System.Runtime.Serialization.ObjectManager.RaiseDeserializationEvent ()
[0x0] 
  at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject
(System.IO.BinaryReader reader) [0x0] 
  at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph
(System.IO.BinaryReader reader, Boolean readHeaders, System.Object& result,
System.Runtime.Remoting.Messaging.Header[]& headers) [0x0] 
  at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x0] 
  at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
(System.IO.Stream serializationStream) [0x0] 
  at Truc.Load () [0x0] 
  at Truc.Main () [0x0] 

Any clue ?



-- 
View this message in context: 
http://www.nabble.com/OnDeserialization-problem-tp22234369p22234369.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] ADO.NET 2.0 and SqlClient

2009-03-04 Thread xyznyc

Can anyone give the status of SQLClient development? The MS-SQL/SQLClient
page ( http://mono-project.com/SQLClient http://mono-project.com/SQLClient
), under the "action plan" section, lists:

- Add support for ADO.NET 2.0 

Does that mean ADO.NET 2.0 is not supported with the current implementation
of System.Data.SqlClient?

TIA.

-- 
View this message in context: 
http://www.nabble.com/ADO.NET-2.0-and-SqlClient-tp22197006p22197006.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] ODBC troubles when upgrading from 1.9.1

2009-03-04 Thread tmbrye

I was hoping someone might be able to help me solve this problem.  I have no
troubles running the DBTest app when I have mono 1.9.1 installed.  However,
when I upgrade to 2.2 or even 2.4 the app is no longer able to connect and
execute.  At first I received an error that looked like a total garbage
japanese character string but when I replaced the System.Data.dll with the
1.9.1 version the error message coming out is connection timeout.

I have a C program that runs fine and can connect to the datasource so I
know it isn't a connection issue.  There is just some difference after
1.9.1.

Is there any UNICODE changes that might start causing this?

If anyone has any ideas of something I can try to solve this I would surely
appreciate it.



-- 
View this message in context: 
http://www.nabble.com/ODBC-troubles-when-upgrading-from-1.9.1-tp22190969p22190969.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Multiple threads slower than multiple processes?

2009-03-04 Thread SvenG


SvenG wrote:
> However, when I use two threads in the same process (which does exactly
> the same thing as just running two instances of the application).It takes
> 290 seconds, a whopping 40% slower! CPU usage is only about 180%, 90% per
> thread, and the CPU time consumed by each thread is also more than the CPU
> time consumed by the single-thread process.
Some more research points to the garbage collector. It appears the GC
suspends all threads while it is running. Two facts indicate that this is
the case: 1. the threads appear to be suspended for the 10% that they are
idle; and 2. the amount of time the threads are idle corresponds exactly to
the amount of time spent in the GC in the other threads.

This is a huge problem for me. It essentially means that any code that is
hard on the GC will diminish the ability of the process to run multiple
threads.

Could anyone confirm whether this is the case? And if so, is there anything
I can do to alleviate the problem?
-- 
View this message in context: 
http://www.nabble.com/Multiple-threads-slower-than-multiple-processes--tp22177940p22179952.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Multiple threads slower than multiple processes?

2009-03-04 Thread SvenG

I'm trying to research some threading issues. I've created a simple
application that does word count on a file. That application can create
multiple threads to do multiple word counts in parallel. There is no
communication between the threads; it's just running the exact same thing
multiple times at once.

I'm running that application against a randomly generated 2GB file. If I run
it with 1 thread, this takes about 205 seconds and I'm seeing 100% CPU
usage. If I run two instances of the application simultaneously on the same
system it takes 205 seconds for each, and I'm seeing 200% CPU (100% for each
process).

However, when I use two threads in the same process (which does exactly the
same thing as just running two instances of the application).It takes 290
seconds, a whopping 40% slower! CPU usage is only about 180%, 90% per
thread, and the CPU time consumed by each thread is also more than the CPU
time consumed by the single-thread process.

This strikes me as extremely weird, and is very worrying for what I'm using
Mono for. Is there anyone who can shed some more light on the situation?

Here's the program I'm using: 
http://www.nabble.com/file/p22177940/WordCountTest.cs WordCountTest.cs 

The system I'm testing this on has two Xeon E5410 quad core CPUs (so 8 cores
total in the system). It's running Debian, kernel 2.6.18-6-amd64. Mono 2.2,
compiled from the source tarball.

Any help would be immensely appreciated.
-- 
View this message in context: 
http://www.nabble.com/Multiple-threads-slower-than-multiple-processes--tp22177940p22177940.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Conversation Problem in BinaryReader.ReadInt16 & BinaryReader.ReadByte

2009-03-04 Thread Jenzo

Hi,

I'd like to report a but, however I am not quite sure about it because I am
not yet coding that long in Mono. In addition I am pretty new to
networkcoding. Basicly, the following code does not what I expect it to do:

BinaryReader r = new BinaryReader();
byte[] data = {0,0,1,68};

int cnt=0;
while(cnt<4) {
   data[cnt]=r.ReadByte();
   Console.Write("|{0}",data[cnt++]);
}

Bytestream => Single Output
byte[] data = {0,0,1,68}; => |0|0|0|68
byte[] data = {0,0,1,128}; => |0|0|0|128
...

As you can see, I am missing a "1" regularly. I cant really explain that.
You can follow the Inputstream with Wireshark, so you can be sure about the
source. 
In addition, exactly the same happens if you try to read the stream with
r.ReadInt16. Strange.

Did anyone encounter that kind of problem before? I hope it is not related
to any kind of stupidity :-P

PS: Running OpenSuse 11.1 x86_64 with Mono 2.0.1 from official repositories.

Thanks in advance,
Jenzo
-- 
View this message in context: 
http://www.nabble.com/Conversation-Problem-in-BinaryReader.ReadInt16---BinaryReader.ReadByte-tp22173682p22173682.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Embedded Databases in .NET/Mono

2009-03-04 Thread Filgood

Hi,

Have you considered building your own set of lists/dictionaries with objects
inside and use linq to query them (and have some functions that can load the
state of these from/to disk on start/exit of your application. It depends on
your use of course, but all your code would be in managed code and can give
you good performance...

~ Filgood



Sienna wrote:
> 
> Hello,
> 
> Currently I am fiddling around with different embedded databases on the
> .NET platform (SQLite, SQLServerCE). But both are either not supported in
> Mono or use a different API, which makes things very complicated.
> Does anyone know an embedded database, which is easy to install (or does
> not require installation at all), and allows SQL-style queries, that runs
> on both .NET 2.0 and Mono without touching the code?
> 
> Any pointers in the right directions are highly appreciated ;-)
> 

-- 
View this message in context: 
http://www.nabble.com/Embedded-Databases-in-.NET-Mono-tp21899885p22171295.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] I don't find the mod_mono.conf file

2009-03-04 Thread runxc1

Mod_mono does not currently run on Windows.  There is a patch out there to
try and get it up and running  but it is not official yet.


DGC wrote:
> 
> 
> Juan Carlos Martinez-2 wrote:
>> 
>> In a Windows 2003 server, I just installed:
>>
>>   a) Apache HTTP Server 2.2.4
>>   b) Mono 1.2.4-gtksharp-2.8.3-win32-3
>>
>>   Now I'm trying to include the file mod_mono.conf in the Apache's
>> configuration file, but I don't find it anywhere.
>> 
> 
> I am having the very same issue on a Win XP (although I doubt the
> operating system makes much difference).  Being new to this stuff, is
> there another part to the installation that I missed?
> 
> David Cottrell
> 

-- 
View this message in context: 
http://www.nabble.com/I-don%27t-find-the-mod_mono.conf-file-tp11720851p22168116.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Is it possible to run an executable without the mono prefix?

2009-03-04 Thread runxc1

I am curious as to how you installed CC.net and got it up and running on
mono.  How difficult was it to set up?



John M wrote:
> 
> Hi,
> 
> I am currently running CC.NET on Linux and having problems with NAnt being
> called.
> 
> I can call Nant directly via mono NAnt.exe but CC.NET does not specify
> mono when using the NAnt task.
> 
> Is there anyway of simply typing NAnt.exe and having it use mono?
> 
> Thanks,
> 
> John
> 

-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-run-an-executable-without-the-mono-prefix--tp21729187p22165466.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Unstable XSP 2.4 RC1

2009-03-04 Thread Marek Habersack
On Wed, 2009-03-04 at 17:44 +, Pedro Santos wrote:
> Hello,
Hello,

> 
> We have several applications running on mono on a beta stage. We
> recently migrated from win to mono and we have the following setup:
> 
> » nginx + mono fastcgi server
> » only one instance of fastcgi-mono-server2 but with several applications (4)
[snip]
> After having this error for the first time we start to get it on
> several pages, but if we restart fastcgi-mono-server2 it starts to
> work ok. After some time the error comes again.
> 
> Is there anything else I can do to help fixing this?
> 
> I have gathered two related exceptions from our logs:
> 
> - ERROR --
> System.Web.Compilation.CompilationException: CS0006: cannot find
> metadata file `/tmp/root-temp-aspnet-0/6f3f8f0/App_global.asax.f105942.dll'
[snip]
All of the issues are most likely caused by a race condition in
system.web's application domain shutdown code. Namely, just before
AppDomain.Unload is called, the dynamic base directory (where the .dll
and code files created while compiling the .as?x are kept) is cleared
which may, under certain time conditions, cause the build manger (and
possibly other code) to fail because the files it expected to find are
no longer there. The commits to svn trunk, revision 128602, and to the
2.4 branch, revision 128603 should fix that.

best regards,

marek



signature.asc
Description: This is a digitally signed message part
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Unstable XSP 2.4 RC1

2009-03-04 Thread Pedro Santos
Hello,

We have several applications running on mono on a beta stage. We
recently migrated from win to mono and we have the following setup:

» nginx + mono fastcgi server
» only one instance of fastcgi-mono-server2 but with several applications (4)

>From our current experience we noticed that when deploying,
fastcgi-mono-server2 becomes unstable and/or crashes. So at this
moment every time we deploy something we also restart
fastcgi-mono-server2. This is inconvenient but we get ok with it.

The other problem is that without any apparent reason, mono starts
throwing errors that we don't understand.
For example, this page:
http://manual.orionsbelt.eu/en/Battles/BattleConcepts.aspx

When we restart mono it displays ok. After some time it may display an
error. I copied the error to here:
http://manual.orionsbelt.eu/en/Battles/BattleConcepts.Error.aspx

It isn't only this page, this is an example. However, it seams to be
only with this application.
After having this error for the first time we start to get it on
several pages, but if we restart fastcgi-mono-server2 it starts to
work ok. After some time the error comes again.

Is there anything else I can do to help fixing this?

I have gathered two related exceptions from our logs:

- ERROR --
System.Web.Compilation.CompilationException: CS0006: cannot find
metadata file `/tmp/root-temp-aspnet-0/6f3f8f0/App_global.asax.f105942.dll'
  at System.Web.Compilation.AssemblyBuilder.BuildAssembly
(System.Web.VirtualPath virtualPath,
System.CodeDom.Compiler.CompilerParameters options) [0x0]
  at System.Web.Compilation.AssemblyBuilder.BuildAssembly
(System.Web.VirtualPath virtualPath) [0x0]
  at System.Web.Compilation.BuildManager.GenerateAssembly
(System.Web.Compilation.AssemblyBuilder abuilder,
System.Collections.Generic.List`1 buildItems, System.Web.VirtualPath
virtualPath, BuildKind buildKind) [0x0]
  at System.Web.Compilation.BuildManager.BuildAssembly
(System.Web.VirtualPath virtualPath) [0x0]
  at System.Web.Compilation.BuildManager.GetCompiledType
(System.String virtualPath) [0x0]
  at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath
(System.String virtualPath, System.Type requiredBaseType) [0x0]
  at System.Web.UI.PageParser.GetCompiledPageInstance (System.String
virtualPath, System.String inputFile, System.Web.HttpContext context)
[0x0]
  at System.Web.UI.PageHandlerFactory.GetHandler
(System.Web.HttpContext context, System.String requestType,
System.String url, System.String path) [0x0]
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext
context, System.String url, Boolean ignoreContextHandler) [0x0]
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext
context, System.String url) [0x0]
  at System.Web.HttpApplication+c__Iterator2.MoveNext () [0x0]

- ERROR --
System.Web.Compilation.CompilationException: :   at
System.IO.Directory.GetCurrentDirectory () [0x0]
  at System.Web.Compilation.AssemblyBuilder.BuildAssembly
(System.Web.VirtualPath virtualPath,
System.CodeDom.Compiler.CompilerParameters options) [0x0]
  at System.Web.Compilation.AssemblyBuilder.BuildAssembly
(System.Web.VirtualPath virtualPath) [0x0]
  at System.Web.Compilation.BuildManager.GenerateAssembly
(System.Web.Compilation.AssemblyBuilder abuilder,
System.Collections.Generic.List`1 buildItems, System.Web.VirtualPath
virtualPath, BuildKind buildKind) [0x0]
  at System.Web.Compilation.BuildManager.BuildAssembly
(System.Web.VirtualPath virtualPath) [0x0]
  at System.Web.Compilation.BuildManager.GetCompiledType
(System.String virtualPath) [0x0]
  at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath
(System.String virtualPath, System.Type requiredBaseType) [0x0]
  at System.Web.UI.PageParser.GetCompiledPageInstance (System.String
virtualPath, System.String inputFile, System.Web.HttpContext context)
[0x0]
  at System.Web.UI.PageHandlerFactory.GetHandler
(System.Web.HttpContext context, System.String requestType,
System.String url, System.String path) [0x0]
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext
context, System.String url, Boolean ignoreContextHandler) [0x0]
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext
context, System.String url) [0x0]
  at System.Web.HttpApplication+c__Iterator2.MoveNext () [0x0]
--


-- 
Pedro Santos
Home - http://psantos.zi-yu.com
Work - http://www.pdmfc.com
The future - http://www.orionsbelt.eu
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] installing assembly from dll

2009-03-04 Thread Bartolomeo Nicolotti



Chris Howie wrote:
> 
> On Mon, Mar 2, 2009 at 10:09 AM, Bartolomeo Nicolotti
>  wrote:
>> i'm using mono on windows, i've a dll which contains code for accessing
>> db2-iseries
>>
>> how do i let mono be aware of this dll so that i can compile and run?
> 
> If you are using Monodevelop, right-click the references folder in
> your project and add that assembly.  If you are using mcs/gmcs then
> use -r:path/to/yourfile.dll as an argument to add the assembly
> reference.
> 
> To allow Mono to find the library at runtime, either place the dll in
> the same directory as your application, or add it to the GAC using
> gacutil (see 'man gacutil' for information on using this command).
> 
> Note that you should not need to compile on Linux if you already have
> a binary compiled on Windows.  The binary format is compatible and
> assemblies compiled on Windows will be loadable by Mono on Linux, and
> vice-versa.
> 
> -- 
> Chris Howie
> http://www.chrishowie.com
> http://en.wikipedia.org/wiki/User:Crazycomputers
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 


Many thanks,

I could compile with gmcs -r ..., but the gac hasn't worked I had to put the
full path of dll
I think I've another problem, another dll, cwbx.dll, I'm trying to use to
migrate a web service that connects to db2 systemi as400, is not manged,
i.e. is a normal windws dll, no assembly, when I try to add it with gacutil
i get not an assembly, I think I'll have to do some dllWrap, do you have
some hints?

Many thanks

Best regards

Many thanks
-- 
View this message in context: 
http://www.nabble.com/installing-assembly-from-dll-tp22289868p22332669.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Popup control functionality

2009-03-04 Thread Jonathan Pobst
Please file a bug with a test case:

http://www.mono-project.com/Bugs

Jonathan

eschnei...@schneidersoft.com wrote:
> 
> Hello,
> 
> I'm using the ToolStripDropDown to implement the Popup control 
> functionality. This works fine in windows, but in Mono the popup is not 
> displaying properly. It's the wrong size and location.
> 
> Has anyone had to deal with this?
> 
> This seems to be the last remaining issue to get all my controls running 
> in Mono...
> 
> Thanks,
> Eric Schneider
> 
> 
> 
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Popup control functionality

2009-03-04 Thread eschnei...@schneidersoft.com

Hello,

I'm using the ToolStripDropDown to implement the Popup control 
functionality. This works fine in windows, but in Mono the popup is not 
displaying properly. It's the wrong size and location.

Has anyone had to deal with this?

This seems to be the last remaining issue to get all my controls running in 
Mono...

Thanks,
Eric Schneider
 
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list