Running modified Dbgrid.exe

Kevin Gordon <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
Many thanks for your assistance Alexander. I have changed the sample 
Dbgrid.exe to use Npgsql. It compiles ok in monodevelop and with mcs as 
below. However it does not run. Any comments would be appreciated.


linuxpro DbGrid # mcs -r:wx.NET.dll -L /root/CSharp/bin/Debug Dbgrid.cs 
Dbgrid.cs(27) error CS0246: Cannot find type `Point'
Dbgrid.cs(27) error CS0246: Cannot find type `Size'
Dbgrid.cs(57) error CS0246: Cannot find type `Npgsql.NpgsqlConnection'
Dbgrid.cs(58) error CS0246: Cannot find type `Npgsql.NpgsqlDataAdapter'
Dbgrid.cs(69) error CS0246: Cannot find type `Point'
Dbgrid.cs(69) error CS0246: Cannot find type `Size'
Dbgrid.cs(14) error CS0246: The namespace `System.Drawing' can not be found 
(missing assembly reference?)
    Try using -r:System.Drawing
Dbgrid.cs(15) error CS0246: The namespace `System.Data' can not be found 
(missing assembly reference?)
    Try using -r:System.Data
Dbgrid.cs(16) error CS0246: The namespace `Npgsql' can not be found (missing 
assembly reference?)
Compilation failed: 9 error(s), 0 warnings
linuxpro DbGrid # man mcs
linuxpro DbGrid # mcs 
-r:wx.NET.dll,System.Drawing.dll,System.Data.dll,Npgsql.dll 
-L /root/CSharp/bin/Debug Dbgrid.cs
Compilation succeeded

linuxpro DbGrid # ls
AssemblyInfo.cs  CSharp.txt~  Dbgrid.cs   Main.cs     mondrian.png  readme.txt
CSharp.txt	 DbGrid.prjx  Dbgrid.exe  libwx-c.so  premake.lua   wx.NET.dll
linuxpro DbGrid # mono Dbgrid.exe

linuxpro DbGrid # mono Dbgrid.exe
Compat mode: the request from /root/CSharp/DbGrid/wx.NET.dll to load 
System.Drawing was remapped (http://www.go-mono.com/remap.html)
Compat mode: the request from /root/CSharp/DbGrid/wx.NET.dll to load 
System.Data was remapped (http://www.go-mono.com/remap.html)

Unhandled Exception: System.Net.Sockets.SocketException: Connection refused
in <0x000de> System.Net.Sockets.Socket:Connect (System.Net.EndPoint)
in <0x00017> System.Net.Sockets.TcpClient:Connect (System.Net.IPEndPoint)
in <0x001fd> System.Net.Sockets.TcpClient:Connect (string,int)


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.