[Mono-winforms-list] dll_import Q

2010-07-30 Thread pfj

Hi,

I have an application which currently uses the winmm.dll for playing mp3
files (it's a quick and dirty hack which will be replaced at some point by
using gstreamer or something more cross platform). 

As expected, works fine under Win32 and falls flat dead under Linux. If I
want the app to run, where do I need to put the dll with respect to the
application executable (tried the same directory, doesn't work)?

I'm using mono-2.6.7 under Fedora.

TTFN

Paul
-- 
View this message in context: 
http://mono.1490590.n4.nabble.com/dll-import-Q-tp2307925p2307925.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


[Mono-dev] Interop dlls - is this a bug?

2010-07-30 Thread pfj

Hi,

To play video, I've been using the QuartzTypeLib dll from the COM under
Win32. Works fine. Not cross platform, but works fine. The application
compiles and generates a file called Interop.QuartzTypeLib.dll which I'm
assuming VC# should do.

I make a copy of the directory and tranfer it to my Linux box. On the linux
box, I also put a copy of winmm.dll and quartz.dll in the same directory as
the application and try to run the application. Nothing happens.

If I recompile via MD 2.4, I need to add the Interop.QuartzTypeLib.dll as a
new reference and then it builds fine.

Should I have to do this or should the Interop.QuartzTypeLib dll just have
been automagically picked up when mono tries to run the app? Just want to
make sure it's not a bug before submitting it as one.

TTFN

Paul
-- 
View this message in context: 
http://mono.1490590.n4.nabble.com/Interop-dlls-is-this-a-bug-tp2307930p2307930.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-winforms-list] Not sure if this is a mono issue, openoffice issue or is just not going to work!

2010-06-08 Thread pfj

Hi,

Looks like OOo is to blame here. Wrote the same equation using Word2003,
export as RTF and up it pops...

Have to put that into BZ...

TTFN

Paul
-- 
View this message in context: 
http://mono.1490590.n4.nabble.com/Not-sure-if-this-is-a-mono-issue-openoffice-issue-or-is-just-not-going-to-work-tp2245322p2247292.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


[Mono-list] Finding the real IP address

2010-03-08 Thread pfj

Hi,

I can find the IP address of my machine very easily, but it only tells me my
internal IP address (such as 192.168.0.3). Is there a way to find my real IP
address beyond the router?

TTFN

Paul
-- 
View this message in context: 
http://n4.nabble.com/Finding-the-real-IP-address-tp1584751p1584751.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-dev] Trying to find a bug in my code...

2010-02-24 Thread pfj

Hi,

I have a very simple application which is connecting happily to gmail using
SSL. The problem is that it dies when I come to grabbing a list of the
emails on the server.

My connection and retrieval code is this

My code looks like this (pop3 first)

// from pop3.cs

using System;
using System.Collections;
using System.Net.Sockets;
using System.Net.Security;

namespace email_to_paul_winform
{
/// summary
/// Description of pop3.
/// /summary
public class pop3
{
public pop3()
{
}
   
public class Pop3Exception : System. ApplicationException
{
public Pop3Exception( string str) : base( str)
{
}
}
   
public class Pop3Message
{
public long number;
public long bytes;
public bool retrieved;
public string message;
}
   
SslStream netstream;
   
public void Connect(string server, string username, string
password)
{
string message;
string response;
TcpClient tcpClient = new TcpClient();
tcpClient.Connect(server, 995);
netstream = new SslStream(tcpClient.GetStream());
netstream.AuthenticateAsClient(pop.gmail.com);
response = Response(netstream);
if (response.Substring(0, 3) != +OK)
{
throw new Pop3Exception(response);
}

message = USER  + username + \r\n;
Write(message, netstream);
response = Response(netstream);
if (response.Substring(0, 3) != +OK)
{
throw new Pop3Exception(response);
}

message = PASS  + password + \r\n;
Write(message, netstream);
response = Response(netstream);
if (response.Substring(0, 3) != +OK)
{
throw new Pop3Exception(response);
}
}
   
public void Disconnect()
{
string message;
string response;
message = QUIT\r\n;
Write(message, netstream);
response = Response(netstream);
if (response.Substring(0, 3) != +OK)
{
throw new Pop3Exception(response);
}
}
   
public ArrayList List()
{
string message;
string response;

ArrayList retval = new ArrayList();
message = LIST\r\n;
Write(message, netstream);
response = Response(netstream);
if (response.Substring(0, 3) != +OK)
{
   throw new Pop3Exception(response);
}

while (true)
{
response = Response(netstream);
if (response == .\r\n)
{
   return retval;
}
else
{
Pop3Message msg = new Pop3Message();
char[] seps = { ' ' };
string[] values = response.Split(seps);
msg.number = Int32.Parse(values[0]);
msg.bytes = Int32.Parse(values[1]);
msg.retrieved = false;
retval.Add(msg);
continue;
}
}
}
   
public Pop3Message Retrieve(Pop3Message rhs)
{
string message;
string response;

Pop3Message msg = new Pop3Message();
msg.bytes = rhs.bytes;
msg.number = rhs.number;

message = RETR  + rhs.number + \r\n;
Write(message, netstream);
response = Response(netstream);
if (response.Substring(0, 3) != +OK)
{
throw new Pop3Exception(response);
}

msg.retrieved = true;
while (true)
{
response = Response(netstream);
if (response == .\r\n)
{
break;
}
else
{
msg.message += response;
}
}

return msg;
}
   
public void Delete(Pop3Message rhs)
{
string message;
string response;

message = DELE  + rhs.number + \r\n;
Write(message, netstream);
response = Response(netstream);
if (response.Substring(0, 3) != +OK)
{
throw new Pop3Exception(response);
}
}
   
private void Write(string message, SslStream stream)
{
System.Text.ASCIIEncoding en = new System.Text.ASCIIEncoding() ;

byte[] WriteBuffer = new byte[1024] ;
WriteBuffer = en.GetBytes(message) ;
   
//TcpClient tcpClient = new TcpClient();
   
//NetworkStream stream = tcpClient.GetStream() ;
stream.Write(WriteBuffer, 0, WriteBuffer.Length);

//Debug.WriteLine(WRITE: + message);
}
   
private string Response(SslStream stream)
{
System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
byte[] serverbuff = new Byte[1024];
//TcpClient tcpClient = new TcpClient();
   
//NetworkStream stream = tcpClient.GetStream();
int count = 0;
while (true)
{

Re: [Mono-dev] POP3 and .NET

2010-02-24 Thread pfj

Hi,

Thanks. I'm trying to avoid additional libraries and stick the .NET native
ones for this project. I do have an additional problem, but I've posted that
in another thread.

TTFN

Paul
-- 
View this message in context: 
http://n4.nabble.com/POP3-and-NET-tp1564517p1567230.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] POP3 and .NET

2010-02-24 Thread pfj

Hi,

I have a good reason for not wanting to use an additional library in this
case and regarding the POP3 stuff, it is using the standard libraries from a
reliable source online [so it's not mine and the same applies with the SSL
stuff. I know it works - when I look at the debugger code in the Connect,
everything is responding correctly]).

As for not caring about other libraries - that is simply not true. I'm more
than happy to use other libraries if I can't get the .NET ones to do what I
need them to do (for example, using something like Tao makes sense over the
.NET native libs for certain things). While POP3 is not supported in the
same way as SMTP, it can still be achieved using the standard libs.

The code is also not really incomplete. The full POP3 implementation with
SSL is posted as is the driver code. The only thing not there is a listbox
in a winform. I have been trying to get this code working for a day or so
now and no matter what I do to try and get it working, nothing gives - it
hangs in the same place (retrieving the headers). I can't find an answer
elsewhere either for this.

Current idea is to instantate the SslStream and pass that back and forth.
Makes no difference - still hangs.

Thanks though for your comments and as and when I find bugs, I do tend to
put them onto the Novell BZ system.

TTFN

Paul


-- 
View this message in context: 
http://n4.nabble.com/POP3-and-NET-tp1564517p1567280.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] POP3 and .NET

2010-02-22 Thread pfj

Hi,

Is pop3 supported in any of the native .NET/mono libraries? I've googled
around and found them on Server2003 namespaces (microsoft.server.bistalk)
but nowhere else.

TTFN

Paul
-- 
View this message in context: 
http://n4.nabble.com/POP3-and-NET-tp1564517p1564517.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-list] Sending email via gmx in C#

2010-02-17 Thread pfj

Hi,

Currently my code looks like this

void SendClick(object sender, EventArgs e)
{
string un = uname + @ + address;
string ipa = IP address sent from :  + ip.Text;
StreamWriter sw = new StreamWriter(@h:/test.txt);
sw.WriteLine(name);
sw.WriteLine(un);
sw.WriteLine(mess);
sw.WriteLine(ipa);
sw.Close();

MailMessage mail = new MailMessage();
mail.To.Add(p...@foundationcampus.com);
mail.From = new System.Net.Mail.MailAddress(un);
mail.Subject = A quick test;
mail.Body = Just a quick test to make sure this works;
mail.Attachments.Add(new Attachment(@h:/test.txt)); 
System.Net.Mail.SmtpClient smtp = new
System.Net.Mail.SmtpClient(mail.gmx.com);
smtp.EnableSsl = true;
smtp.Credentials = new 
System.Net.NetworkCredential(usern...@gmx.com,
password);
try
{
smtp.Send(mail);
}
catch (System.Net.Mail.SmtpException ex)
{
MessageBox.Show(ex.Message.ToString(), 
Ouchy!!!,
MessageBoxButtons.OK);
}
}

This should work happily, but I always get an error thrown -

Mailbox unavailable. The server response was 5.7.0 Sender address does not
belong to logged in user {mp-eu001}

According to the docs for gmx, I'm doing this correctly.

Is my code wrong or is there something else I need to do for gmx to play
ball?

Thanks

Paul
-- 
View this message in context: 
http://n4.nabble.com/Sending-email-via-gmx-in-C-tp1558501p1558501.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] Sending email via gmx in C#

2010-02-17 Thread pfj

Hi,

I've got a valid gmx email address that I can send from my google account to
the gmx one (or even my work email to gmx). According to the set up for
thunderbird, the smtp needs usern...@gmx.com and a password. In my code
they're both valid, yet I'm still unable to send.

Am I missing something?

TTFN

Paul
-- 
View this message in context: 
http://n4.nabble.com/Sending-email-via-gmx-in-C-tp1558501p1558655.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-winforms-list] Creating window elements on the fly - can it be done?

2010-02-10 Thread PFJ

Hi,

I'm trying to do something which I'm not sure if it's possible to do, so
please be patient.

I have a winform with a single window that has nothing in it. The code for
the winform loads an XML file which has three elements - designer,
questions, answers. The questions and answers elements aren't a problem,
they're strings and things like that. The problem is the designer.

The idea is that the window is just a canvas. In the designer I have the
likes of 

objecttypeRtfTextBox/objecttype
xpos100/xpos
ypos100/ypos
xsize250/xsize
ysize200/ysize
writablefalse/writable
visibletrue/visible
usemethodnull/usemethod

This is very simplistic.

The question is, can I take this data and just create a new window object
from it. Currently objecttype is a string, if I change it to object, can I
then just say object foo = new object(); and (for example here) creates an
RtfTextBox?

TTFN

Paul
-- 
View this message in context: 
http://old.nabble.com/Creating-window-elements-on-the-fly---can-it-be-done--tp27530188p27530188.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

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


[Mono-dev] Mono reflection seems a bit broken.

2010-02-09 Thread PFJ

Hi,

This code works fine under .NET 3.5 but dies miserably with Mono 2.6.1

using System;
using System.Reflection;
using System.IO;
using System.Drawing;
using System.Windows.Forms;
using System.Xml;
using System.Resources;

amespace molarity
{
/// summary
/// Description of periodic.
/// /summary
public partial class periodic : Form
{
public periodic()
{
//
// The InitializeComponent() call is required for 
Windows Forms designer
support.
//
InitializeComponent();

//
// TODO: Add constructor code after the 
InitializeComponent() call.
//

}

/* load the element from the xml file using xmlhander */

void displaytheelement(object sender, EventArgs e)
{
int m = ((Label)sender).TabIndex - 1;
xmlhandler xml = new xmlhandler();
xml.dotheread(m);
es.Text = xml.element_structure;
atmass.Text = xml.element_weight.ToString();
atno.Text = xml.element_number.ToString();
name.Text = xml.element_name;
symbol.Text = xml.element_symbol;
Assembly executingAssembly = 
Assembly.GetExecutingAssembly();
try
{
Stream resourceStream =
executingAssembly.GetManifestResourceStream(xml.picname);
pictureBox1.Image = new Bitmap(resourceStream);
}
catch (System.ArgumentException)
{
MessageBox.Show(Unable to find element picture, Picture
not found, MessageBoxButtons.OK);
}
}

}
}

The resources are set to be embedded into the binary. I run the executable
this comes from and it does what it should (the displaytheelement method
gets the information for the data (stored in xmlhandler xml), then uses
reflector to grab the embedded image and display in pictureBox1. If the
picture isn't found, the message box appears but the application doesn't
fall over dead.

Under Mono 2.6.1, it doesn't matter which element I click, I always get the
message box and the application quits with no throwback. Under .NET, I click
on the element, the information appears, the picture appears and if the
picture isn't there, the message box appears, but then the application
continues.

Is the code wrong or am I?

I can upload the full source if it will help identify a bug.

TTFN

Paul
-- 
View this message in context: 
http://old.nabble.com/Mono-reflection-seems-a-bit-broken.-tp27514082p27514082.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

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


Re: [Mono-winforms-list] Finding the tabindex of a label

2010-02-03 Thread PFJ

Hi,


Petit Eric wrote:
 
 i don't really know, but did yu try something like
 Label Buff = sender as label
 or
 Label Buff = new label(
 Buff = (Label)sender.TabIndex;
 

Yep, doesn't give me the TabIndex method either.

TTFN

Paul
-- 
View this message in context: 
http://old.nabble.com/Finding-the-tabindex-of-a-label-tp27435810p27436432.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

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


[Mono-winforms-list] PictureBox, Resources and RTF text box problems

2010-02-03 Thread PFJ

Hi,

Two questions which my frazzled brain isn't coping with...

I have a pile of resources for a project which the resource manager handles
quite nicely. I have an XML file which contains the name of the resource,
but stored as a string rather than as an Image (it's the name of the
resource).

Is there a way that I can have

pictureBox1.Image = foo.Properties.Resources.filename where filename is the
string that contains the filename? I've tried casting the string, but
nothing.

foo.Properties.Resources is showing all of the resources available and the
files are there.

Second...

I have an rtf text box and I have two rtf files held in the resources. I
created the rtf files in OpenOffice and can load them back in and the
formatting is there.

I try to load them into a form using

helptext.LoadFile(global::molarity.Properties.Resources.molarmass,
RichTextBoxStreamType.RichText);

and it comes out in plain text. No formatting or anything like that.

Am I missing something here?

TTFN

Paul

-- 
View this message in context: 
http://old.nabble.com/PictureBox%2C-Resources-and-RTF-text-box-problems-tp27437394p27437394.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

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


Re: [Mono-winforms-list] Finding the tabindex of a label

2010-02-03 Thread PFJ

Hi,


Diego Frata wrote:
 
 Shouldn't it be:
 
 int tabIndex = ((Label)sender).TabIndex;
 
 ?
 

That got it...

Thanks

TTFN

Paul

-- 
View this message in context: 
http://old.nabble.com/Finding-the-tabindex-of-a-label-tp27435810p27437403.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

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


Re: [Mono-dev] Problem with BinarySerialization

2010-02-03 Thread PFJ

Hi,


Robert Jordan wrote:
 
 On 02.02.2010 14:35, PFJ wrote:
 Thus, the only *clean* way to solve this is introducing a shared
 assembly implementing the classes you want to serialize. It's a
 common pattern.


 As the serializer is only used once, can the other app just deserialize
 and
 use it? I've reimplemented the Elements class but now just have a little
 problem in accessing it...
 
 It doesn't matter how often, in which way or how symmetric
 the de/serialization is performed. What counts is the type identity.
 

Hmm, I guess that is why after I've sorted out the code (thanks), added in
the Elements class and now have it compiled, I'm getting the same error as I
did originally (SerializationError - can't find 'elements').

I'm running the debugger on the code that generates the binaryserialized
form and when I look at the debug information (I admit, this is under
VS2008) it says 

elementgo Count=111 with a plus icon before the element go. click on the +
icon and it says
+ 0 {elements.Form1.Elements}. click on the + icon and it gives me the copy
of the list.

Is it this {elements.Form1.Elements} it's objecting to?

TTFN

Paul

-- 
View this message in context: 
http://old.nabble.com/Problem-with-BinarySerialization-tp27419333p27433786.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

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


[Mono-dev] Problem with BinarySerialization

2010-02-02 Thread PFJ

Hi,

I've created my BinarySerialized file like this...

namespace elements
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
Stream stream = File.Open(elements.ele, FileMode.Create);
Elements mp = new Elements();
   
string[] elements = new string[111] {H,He,

Li,Be,B,C,N,O,F,Ne,

Na,Mg,Al,Si,P,S,Cl,Ar,
K,Ca,Sc,Ti,V, // rest 
of elements
string[] names = new string[111] {Hydrogen, Helium,
Lithium, Berylium, Boron, Carbon,
Nitrogen, Oxygen, Fluorine, Neon, // rest of the
element names
string[] structures = new string[111] {1s1, 1s2, [He]2s1,
[He]2s2, [He]2s2-2p1,
[He]2s2-2p2, [He]2s2-2p3, // rest of the atomic
structures
double[] masses = new double[111] {1.0079,4.0026,

6.941,9.01218,10.8,12.011,14.0067, // rest of the masses
BinaryFormatter bformatter = new BinaryFormatter();
Console.WriteLine(Writing Element Information);
var elementgo = new ListElements();
for (int m = 0; m  111; ++m)
{
string p = names[m] = .jpg;
elementgo.Add(new Elements(names[m], elements[m],
structures[m], p, m + 1, masses[m]));
}
bformatter.Serialize(stream, elementgo);
stream.Close();
}

   [Serializable()] //Set this attribute to all the classes that you
define to be serialized
public class Elements : ISerializable
{
public string el_name, el_sym, el_struct, pic;
public int el_num;
public double el_mass;

//Default constructor
public Elements()
{
el_name = null;
el_sym = null;
el_struct = null;
pic = null;
el_num = 0;
el_mass = 0.0;
}

//Deserialization constructor.
public Elements(SerializationInfo info, StreamingContext ctxt)
{
//Get the values from info and assign them to the
appropriate properties
el_name = (string)info.GetValue(element_name,
typeof(string));
el_sym = (String)info.GetValue(element_symbol,
typeof(string));
el_struct = (string)info.GetValue(element_structure,
typeof(string));
pic = (string)info.GetValue(picname, typeof(string));
el_num = (int)info.GetValue(element_number, typeof(int));
el_mass = (double)info.GetValue(element_weight,
typeof(double));
}

//Serialization function.
public void GetObjectData(SerializationInfo info,
StreamingContext ctxt)
{
info.AddValue(element_name, el_name);
info.AddValue(element_symbol, el_sym);
info.AddValue(element_structure, el_struct);
info.AddValue(picname, pic);
info.AddValue(element_number, el_num);
info.AddValue(element_weight, el_mass);
}


public string Name { get; set; } 
public string Symbol { get; set; }  
public string Structure { get; set; }
public string Picture { get; set; }
public int Number { get; set; }
public double Mass { get; set; }

public Elements(string n, string s, string t, string p, int u, double m)
{
Name = n;
Symbol = s;
Structure = t;
Picture = p;
Number = u;
Mass = m;
}
}

This happily creates a file called elements.ele - not a problem.

However, the problem comes when I try to read it back in into a different
program. The read in code looks like this

namespace molarity
{   
[Serializable()]

public class xmlhandler : Form, ISerializable
{
public string element_name, element_symbol, element_structure, 
picname;
public double element_weight;
public int element_number;

public xmlhandler()
{
element_name = Beckilium;
element_symbol = BBB;
element_structure = just-right;
element_weight = 124.01;
element_number = 123;
picname = null;
}

// deserialization class

public xmlhandler(SerializationInfo info, StreamingContext 
stream)
{
element_name = (string)info.GetValue(element_name, 

Re: [Mono-dev] Problem with BinarySerialization

2010-02-02 Thread PFJ

Hi,


Robert Jordan wrote:
 
 The serialization infrastructure heavily relies on type/assembly 
 identity, but what you're doing here is trying to create an object
 from serialization data generated from a totally different class.
 
 You should implement Elements in a separated assembly which you 
 reference from both apps. Then, in you Form, you should aggregate 
 Elements, i.e. make it a field, because de/serializing a Form
 is not what you want. Really.
 

Ah

What I have done is created a completely different app to generate the
serialized data - it's intended to be run once, create the data file and
that's it. 

The file is then sucked in to the 2nd application for deserializing. Would
what I want to do be better using an Xml serialized file or will I hit the
same problem? Failing that I'm guessing I'll need to draw the file into a
list (more or less the reverse of creating the list in the first place).

TTFN

Paul
-- 
View this message in context: 
http://old.nabble.com/Problem-with-BinarySerialization-tp27419333p27419955.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

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


Re: [Mono-dev] Problem with BinarySerialization

2010-02-02 Thread PFJ

Hi,


Robert Jordan wrote:
 
 What I have done is created a completely different app to generate the
 serialized data - it's intended to be run once, create the data file and
 that's it.

 The file is then sucked in to the 2nd application for deserializing.
 Would
 what I want to do be better using an Xml serialized file or will I hit
 the
 same problem? Failing that I'm guessing I'll need to draw the file into a
 list (more or less the reverse of creating the list in the first place).
 
 You won't hit the same problem but you'd still have to duplicate
 Elements code.
 
 Thus, the only *clean* way to solve this is introducing a shared
 assembly implementing the classes you want to serialize. It's a
 common pattern.
 

As the serializer is only used once, can the other app just deserialize and
use it? I've reimplemented the Elements class but now just have a little
problem in accessing it...

New code

public void dotheread()
{
try 
{
string path_env = 
Path.GetDirectoryName(Application.ExecutablePath) +
Path.DirectorySeparatorChar;
Stream stream = File.Open(path_env + 
elements.ele, FileMode.Open);
BinaryFormatter bf = new BinaryFormatter();
var elementgo = new ListElements();
elementgo = (Elements)bf.Deserialize(stream);
stream.Close();
}
catch(System.IO.FileNotFoundException)
{
MessageBox.Show(Unable to find the elements 
information file, File
not found, MessageBoxButtons.OK);
}
}

Problem is the casting of the class to deserialize - it's not an object so
can't use it and something like Elements el = new Elements(); isn't cutting
it either...

TTFN

Paul
-- 
View this message in context: 
http://old.nabble.com/Problem-with-BinarySerialization-tp27419333p27420438.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

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


[Mono-dev] Listening in on a port (was the daemon thingy a week or so back)

2010-01-12 Thread PFJ

Hi,

I'm making some progress with my daemon in C# to listen in on port 80 and
monitor how much time my son is spending on line, but I've hit a snag.

Currently, my code looks like this 

  class Server
  {
private TcpListener tcpListener;
private Thread listenThread;

public Server()
{
  this.tcpListener = new TcpListener(IPAddress.Any, 80);
  this.listenThread = new Thread(new ThreadStart(ListenForClients));
  this.listenThread.Start();
}
  


private void ListenForClients()
{
  this.tcpListener.Start();

  while (true)
  {
//blocks until a client has connected to the server
TcpClient client = this.tcpListener.AcceptTcpClient();

//create a thread to handle communication
//with connected client
Thread clientThread = new Thread(new
ParameterizedThreadStart(HandleClientComm));
clientThread.Start(client);
  }
}

private void HandleClientComm(object client)
{
  TcpClient tcpClient = (TcpClient)client;
  NetworkStream clientStream = tcpClient.GetStream();

  byte[] message = new byte[4096];
  int bytesRead;

  while (true)
  {
bytesRead = 0;

try
{
  //blocks until a client sends a message
  bytesRead = clientStream.Read(message, 0, 4096);
}
catch
{
  //a socket error has occured
  break;
}

if (bytesRead == 0)
{
  //the client has disconnected from the server
  break;
}

//message has successfully been received
ASCIIEncoding encoder = new ASCIIEncoding();
System.Diagnostics.Debug.WriteLine(encoder.GetString(message, 0,
bytesRead));
  }

  tcpClient.Close();
}

public static void Main()
{
Server s = new Server();
}

Works fine until I start a browser. Then it aborts with

System.Net.Sockets.SocketException: Only one usage of each socket address
(protocol/network address/port) is normally permitted
   at System.Net.Sockets.Socket.DoBind
   at System.Net.Sockets.Socket.Bind
   at System.Net.Sockets.TcpListener.Start
   at System.Net.Sockets.TcpListener.Start
   at TCPServerTutorial.Server.ListenForClients in
\\ceg.local\uclan\mydocs\pjohnson\SharpDevelop
Projects\tcpmonitor\tcpmonitor\Program.cs:line 34
   at System.Threading.ThreadHelper.ThreadStart_Context
   at System.Threading.ExecutionContext.Run
   at System.Threading.ThreadHelper.ThreadStart

which looks to me like two apps can't be listening in on port at the same
time. I guess I'm doing something wrong here, but can't see what it is - I'm
guessing that I've coded a server instead of a client, but then I'm not sure
if the software should be a client rather than a server! I'll admit now that
this is the first time I've done anything in C# with networking ports.

The idea is that once I get this running, the trivial matter of timing
(using either a thread timer or System.Timer) will be easy to put in and all
will be good with the world.

Any help on this would be good.

TTFN

Paul
-- 
View this message in context: 
http://old.nabble.com/Listening-in-on-a-port-%28was-the-daemon-thingy-a-week-or-so-back%29-tp27127261p27127261.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

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


[Mono-winforms-list] Mouse position question

2009-12-21 Thread PFJ

Hi,

I can find where my mouse is clicked on a form using MouseEventArgs e.X and
e.Y and the world is good. However, if my window size is varied, the
position of X and Y will change depending on the size of the window.

Is there a nice, simple way to find the X and Y position that will always
work?

The logic I've tried so far.

In LoadForm, get the initial size of the window and set this to be a scale
factor (scale_x, scale_y) of 1 (okay, that means needing the scale factor
variable to be a float which means casting around later). Set a resize event
up, so if the window size changes, the scale factor can be changed.

When the mouse click happens though, the rescale number should be correct
(e.g. I have an eye at 150,150 with the scale = 1, if I half the window x
and y, the eye should be 75, 75, but I need it to be read as if it's still
150,150). I've tried various conditions (if xscale1 then divide else
multiply), but I'm getting nowhere.

Any ideas on this?

TTFN

Paul
-- 
View this message in context: 
http://old.nabble.com/Mouse-position-question-tp26874088p26874088.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

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


Re: [Mono-winforms-list] GetColumn problem

2009-09-17 Thread PFJ

Hi,


Jonathan Pobst wrote:
 
 Paul wrote:
 Sorry for this being a dumb question, but can you explain this? I'm
 doing things I've never done before, so you need to be gentle with
 me ;-)
 
 Maybe we need to step back a little bit, what are you trying to do?
 

I have created a TLP in the designer which contains 6 rows and 1 column. The
column contains the days of the week and a blank at the top.

The user enters the number of columns they want (1 to 10) and the program
creates them using the code I've posted. On Row0, the labels saying the
lesson number are added in. There are no other labels in anywhere else.

What I'm trying to do is when the TLP is clicked, that the program finds the
row and column for use elsewhere in the application.

My current efforts *always* return -1 when using GetColumn or
GetPositionFromControl. I'm assuming it's giving -1 as there is nothing
inside of the layout blocks other than the labels in row 0 and column 0.

I've filed a bug as there is a winforms problem currently (the border style
is not working correctly) and have attached the full source to that bug (BZ
539606) - this may help...

TTFN

Paul

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

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


[Mono-winforms-list] GetColumn problem

2009-09-16 Thread PFJ

Hi,

I have a tablelayoutpanel called lesson. This contains a number of rows and
columns. I have a generic mouseclick event attached to it.

In the event I want to find the x and y position of the mouse as well as the
column.

No problems with the x and y position (MousePosition.x and MousePosition.y
do the job splendidly), however, I can't seem to get the column number.

Currently, my code looks like this

int colno = lesson.GetColumn((Control)sender)); 

(it has had a pile of different things in the place of Control above).

When I output colno to a label (for debugging), it always gives  -1
irrespective of the column clicked. I'm probably really close, but just
can't quite get it right.

A little help?

TTFN

Paul
-- 
View this message in context: 
http://www.nabble.com/GetColumn-problem-tp25472747p25472747.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

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


Re: [Mono-winforms-list] GetColumn problem

2009-09-16 Thread PFJ

Hi,


Jonathan Pobst wrote:
 
 Does this mean that I'm relying on the TLP or something else (which would
 also explain the -1)?
 
 It appears you are relying on the TLP.  If you were setting the column 
 explicitly, it would look roughly like this:
 

In that case, why is GetPositionFromControl returning -1 for column and not
the actual column number? Is this a bug?

TTFN

Paul
-- 
View this message in context: 
http://www.nabble.com/GetColumn-problem-tp25472747p25475203.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

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


[Mono-dev] System.Environment.CurrentDirectory problem

2009-07-23 Thread PFJ

Hi,

I've compiled an application which tests for a directory and if it doesn't
exist, creates it and copies a configuration file over.

The app compiles fine. I've copied the executable and the configuration
directory/file over to a new directory. When I run the app though, it
creates a new directory in /home/paul rather than the directory it is being
run from.

When I've added in some debugging code, it seems that it think that the
currentdirectory is /home/paul and not /home/paul/marker.

I'm using the following code which seems to be misbehaving!

8--
string path = System.Environment.CurrentDirectory;
string sep = Path.DirectorySeparatorChar.ToString();
string dirpath = path + string.Format({0}Resources, 
sep);
string final = dirpath + 
string.Format({0}configure.xml, sep);

DialogResult ress;
ress = MessageBox.Show(this, path, create - path,
MessageBoxButtons.OK);
ress = MessageBox.Show(this, dirpath, create - dir,
MessageBoxButtons.OK);

if (!Directory.Exists(dirpath))
{
ress = MessageBox.Show(this, Directory no 
exist, create,
MessageBoxButtons.OK);
Directory.CreateDirectory(dirpath);
}
--8

path is only returning /home/paul which isn't the expected behaviour. Is
anyone else seeing this or is it me?

I'm using mono-2.4.2.2

TTFN

Paul
-- 
View this message in context: 
http://www.nabble.com/System.Environment.CurrentDirectory-problem-tp24629353p24629353.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

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


[Mono-dev] Adding a dll to gac

2009-07-17 Thread PFJ

Hi

I've added the SharpUSBlib dll to gac using gacutil. However, when I try to
link to it (using -r:ICSharp.USBlib or -r:SharpUSBlib, all I get back is
that it is missing some sort of metadata (the report is on my machine at
home).

Is there something I'm missing here?

The command line I've used is 

gacutil -i bin/SharpUSBlib.dll -f -package SharpUSBlib -root /usr/lib

which looks ok.

TTFN

Paul



-- 
View this message in context: 
http://www.nabble.com/Adding-a-dll-to-gac-tp24531748p24531748.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

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


[Mono-dev] Cross platform USB programming

2009-07-16 Thread PFJ

Hi,

I have a USB device here which is effectively a voting system (it's an
EzClickPro job). The software supplied does the job to a fashion, but it's
annoying that the likes of Linux and MacOS aren't supported, only Win32
boxes.

Add to this that the Win32 box needs admin rights to install the software
and you can see what a pain things are!

Are there any examples available which demonstrates how to do this in C#?

TTFN

Paul
-- 
View this message in context: 
http://www.nabble.com/Cross-platform-USB-programming-tp24515653p24515653.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

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


Re: [Mono-dev] vbnc error

2009-05-12 Thread PFJ

Hi,



 File not found: /home/paul/Programming/Sudoku/MyGenerator
 
 I've not seen that one before - any ideas on the cause or if it's a
 known problem?
 
 It's a bug in vbnc, I just filed a bug for it (#502971) with a work
 around.
 
 I've also updated vbnc to give the correct source code location for the
 issue.
 

I've updated to 133958 and I'm still getting the same error (albeit much
later on in the code).

TTFN

Paul

-- 
View this message in context: 
http://www.nabble.com/vbnc-error-tp23497174p23506600.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

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


Re: [Mono-list] NEED HELP PLZZZZZ ! (5 min no more)

2009-02-22 Thread PFJ

Hi,


arnomedia wrote:
 
 ** (/home/arnofly/Bureau/TestForLinux:5385): WARNING **: The following
 assembly referenced from /home/arnofly/Bureau/TestForLinux.exe could not
 be loaded:
  Assembly:   Microsoft.VisualBasic(assemblyref_index=1)
  Version:8.0.0.0
  Public Key: b03f5f7f11d50a3a
 The assembly was not found in the Global Assembly Cache, a path listed in
 the MONO_PATH environment variable, or in the location of the executing
 assembly (/home/arnofly/Bureau).
 

You need to install mono-basic :-)

TTFN

Paul
-- 
View this message in context: 
http://www.nabble.com/NEED-HELP-PLZ-%21-%285-min-no-more%29-tp21616756p21622031.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] Problems with CopyTo, using Contains(...) and inserting a character from one string into another.

2009-02-22 Thread PFJ

Hi,

I'm trying to copy a specific section of a string to another string.
My code looks like this

void search(string s)
string newstring;
for (int a = 0 ; a  s.Length; ++a)
{
 if (a + 1  s.Length)
   continue;
 if (s[a + 1]  'a')
   s.CopyTo(a, newstring.ToCharArray(), 0, 1);
 else
 {
   s.CopyTo(a, newstring.ToCharArray(),0, 2);
   a++;
 }
}

However, I'm getting an exception out of range error - even if a = 0.
If I replace newstring.ToCharArray with a true char array, I get the
same error.

Have I misunderstood copyto? It looks ok according to MSDN.

Another niggle, is there anyway to make something akin to Contains but
compares not just the first character, but for all given characters
(for example, my string contains BaSO4, if I use Contains, then B gets
seen first from the comparison list, it exits, which means that as e
doesn't exist and the code fails)? I've tried

if (System.Text.RegularExpressions.Regex.IsMatch(dupeform, element,
System.Text.RegularExpressions.RegexOptions.IgnoreCase))
and not to ignore the case, but that fails too.

Help!

TTFN

Paul
-- 
View this message in context: 
http://www.nabble.com/Problems-with-CopyTo%2C-using-Contains%28...%29-and-inserting-a-character-from-one-string-into-another.-tp21683670p21683670.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-dev] Winforms failing to start -svn 123860 (XIM problem)

2009-02-01 Thread PFJ

Hi,

I have a number of winforms applications which are failing to start
correctly. They work fine until about 123650 under svn.

Under 123775, I had problems with FUTEX_WAIT (and it never completed). Under
123860, when I run using mono -v filename.exe, I get at the end (sorry for
any mistakes, I'm on a different machine to the one the code is on)

Method System.Windows.Forms.X11Keyboard:SetupXIM() emitted at 0x5e7560 to
0x5e765e (code length 254) [colourmixer.exe]
Method (wrapper managed-to-native)
System.Windows.Forms.X11Keyboard:XSupportLocale () emitted 0x5e7688 to
0x5e76cc (code length 68) [colourmixer.exe]
Method (wrapper managed-to-native)
System.Windows.Forms.X11Keyboard:XSetLocaleModifiers (string) emitted at
0x5e76d0 to 0x5e773b (code length 107) [colourmixer.exe]
Method (wrapper to native) System.Windows.Forms.X11Keyboard:XOpenIM (intptr,
intptr, intptr, intptr) emitted at 0x5e7740 to 0x5e7793 (code length 83)
[colourmixer.exe]

strace suggests something is either in an endless loop (I get a (time(NULL)
= 1232452591, 4 semops, waitpid(3977, 0x3f8294, WNOHANG)=0, nanosleep((10,
0), null) = 0) continually)

Is there a simple fix for this or something I can look at to see if it is
mono at fault or my X server?

Using Fedora rawhide, x86

TTFN

Paul
-- 
View this message in context: 
http://www.nabble.com/Winforms-failing-to-start--svn-123860-%28XIM-problem%29-tp21561767p21561767.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

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


Re: [Mono-dev] Ideas for Mono on Windows

2009-01-23 Thread PFJ

Hi,


SuperCiccio wrote:
 
 Sadly, I have to wait for the next Windows/Linux build to go ahead on 
 step 2. If I had a simple way to build Mono on Windows, the (in)famous 
 F5, I could go on peacefully.
 

I don't mind running the code if you need a hand (using Fedora rawhide). My
box is updated from svn roughly every day...

TTFN

Paul
-- 
View this message in context: 
http://www.nabble.com/Ideas-for-Mono-on-Windows-tp21622111p21622154.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

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


[Mono-list] Added dll to gac not being picked up

2006-08-08 Thread PFJ
Hi,

I've rewritten the spec file for db4o to now add the db4o.dll to gac (I
can't add db4o-tools.dll as it's not a strong name). I've used the
following for the gacutil line

gacutil -i dll/db4o.dll -f -package db4o -root %{buildroot}%{monodir}

This adds the dll to (what becomes) /usr/lib

When I install the rpms created, gacutil -l shows db4o to be in gac
quite happily.

The problem comes when I try to link to db4o. All I get back is that the
db4o assembly cannot be found. I'm using 

mcs db4oexample.cs -r:db4o.dll (I've also tried Db4o.dll and not adding
the -r:db4o)

Am I doing something wrong or is there a missing bit to the equation?

TTFN

Paul
-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


[Mono-list] Building db4o from the src rpm

2006-08-07 Thread PFJ
Hi,

I'm trying to compile db4o using mono-1.1.16-1 (supplied by Fedora Core)
using the src rpm (I'm thinking of submitting it to Fedora Extras).

When I come to compile it, I'm getting the following error

./src/core/src/core/com/db4o/YapField.cs(89,14): error CS0121: The call
is ambiguous between the following methods or properties:
`object.GetType()' and `com.db4o.reflect.ReflectField.GetType()'
/usr/lib/mono/1.0/mscorlib.dll `object.GetType()', name of symbol
related to previous error
./src/core/src/core/com/db4o/reflect/ReflectField.cs(35,33)::
`com.db4o.reflect.ReflectField.GetType()', name of symbol related to
previous error

Where is the best place to report this error (not sure if it's here or
to db4o themselves) and is there something I can pass in to stop this
error?

TTFN

Paul
-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


Re: [Mono-list] Building db4o from the src rpm

2006-08-07 Thread PFJ
Hi,

  Where is the best place to report this error (not sure if it's here or
  to db4o themselves)
 
 Both. On one hand you are experiencing a bug in mcs and on the other
 hand db4o releases must be compatible with the latest mono releases.

I've put it on the community forum at db4o and will bung it onto the
Mono BZ tonight.

  and is there something I can pass in to stop this
  error?
 
 The good news is that I don't see this error with db4o svn and we are
 about to release a new version this next week.

Yep. Downloaded and packaged 5.5 already - on the .spec file, I've added
a line to ensure it db4o gets put into gac so that the dll doesn't need
to be copied left, right and centre :-)

I'll email [EMAIL PROTECTED] tonight with the regression test results from
the 5.2 release using mono-1.1.16-1 and also for 5.5

TTFN

Paul
-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


Re: [Mono-winforms-list] Bug in System.Windows.Forms.Control:get_ContainsFocus ()?

2006-06-21 Thread PFJ
Hi,

 So do you think it could be a bug with resolving the base class? It 
 seems from the trace that it is going into a continuous loop, like it is 
 calling ContainsFocus on itself.

To be honest, all I saw was the segfault rather than the tonnes of
output. The baseclass seems to be working fine as well

I did the following to your code and if you run it, you'll see that the
baseclass is fine

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace WinApp4
{
  public class Form1 : System.Windows.Forms.Form
  {
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.ComponentModel.Container components = null;

public Form1()
{
  InitializeComponent();
}

protected override void Dispose(bool disposing)
{
  if (disposing)
  {
if (components != null)
{
  components.Dispose();
}
  }
  base.Dispose(disposing);
}

private void InitializeComponent()
{
  this.button1 = new System.Windows.Forms.Button();
  this.button2 = new System.Windows.Forms.Button();
  this.SuspendLayout();

  this.button1.Location = new System.Drawing.Point(96, 32);
  this.button1.Name = button1;
  this.button1.TabIndex = 0;
  this.button1.Text = button1;
  this.button1.Click += new System.EventHandler(this.button1_Click);

  this.button2.Location = new System.Drawing.Point(96, 80);
  this.button2.Name = button2;
  this.button2.TabIndex = 1;
  this.button2.Text = button2;
  this.button2.Click += new System.EventHandler(this.button2_Click);

  this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  this.ClientSize = new System.Drawing.Size(292, 262);
  this.Controls.Add(this.button2);
  this.Controls.Add(this.button1);
  this.Name = Form1;
  this.Text = Form1;
  this.ResumeLayout(false);
}

[STAThread]
static void Main()
{
  Application.Run(new Form1());
}

private void button1_Click(object sender, System.EventArgs e)
{
  Console.Write(base.ContainsFocus);
}

private void button2_Click(object sender, System.EventArgs e)
{
  Console.WriteLine(base.ContainsFocus);
}
  }
}

The output (at least on my box) is

True (button 1 pressed - no return feed)
TrueTrue (button 2 pressed)

From the looks of the original code, you've created the second button,
but never properly instantated it (it is declared as private swf.button
button2 at the start, but never created using this.button2 = new
swf.button()). That (to me) is the most likely candidate for the
breakage.

TTFN

Paul

-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


Re: [Mono-list] Mono on CD

2006-06-21 Thread PFJ
Hi,

 I have searched, unsuccessfully, for information on how to run Mono
 off of a CD. Is there some information on this somewhere?

Have a look on the mono website - it lists a live Linux distro with mono
on it.

TTFN

Paul
-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


[Mono-list] Do I need to report this problem to FC or to here?

2006-06-16 Thread PFJ
Hi,

I've downloaded and built monodevelop and all it's friends on my FC5 box
(uses gtk-2.9-4 which should fix the upstream bugs)

When I run monodevelop, everything is fine except when I come to create
a new project when it crashes and burns giving


=
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.
=

Stacktrace:

in (wrapper managed-to-native) Gtk.Application:gtk_main () 0xb
in (wrapper managed-to-native) Gtk.Application:gtk_main ()
0xffd0
in Gtk.Application:Run () 0x8
in MonoDevelop.Ide.Gui.IdeApp:Run () 0x8
in MonoDevelop.Ide.Gui.IdeStartup:Run (string[]) 0xe96
in MonoDevelop.Core.AddIns.AddInService:StartApplication
(string,string[]) 0x20e
in MonoDevelop.Startup.SharpDevelopMain:Main (string[]) 0x54
in (wrapper runtime-invoke) System.Object:runtime_invoke_int_string[]
(object,intptr,intptr,intptr) 0xc043f0f5

Native stacktrace:

/usr/bin/mono(mono_handle_native_sigsegv+0x8d) [0x50273d]
/usr/bin/mono [0x4ce2f8]
/lib64/libpthread.so.0 [0x3194a0cfe0]
/lib64/libgobject-2.0.so.0 [0x3f87e1c6d3]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x78c) [0x3f87e1d93c]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x83) [0x3f87e1dbf3]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_widget_activate+0x6a)
[0x2aaab037257a]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_menu_shell_activate_item+0x100)
[0x2aaab0265320]
/usr/lib64/libgtk-x11-2.0.so.0 [0x2aaab0266b23]
/usr/lib64/libgtk-x11-2.0.so.0 [0x2aaab0256d41]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x10a) [0x3f87e0b28a]
/lib64/libgobject-2.0.so.0 [0x3f87e1cbc1]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x627) [0x3f87e1d7d7]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x83) [0x3f87e1dbf3]
/usr/lib64/libgtk-x11-2.0.so.0 [0x2aaab036da6e]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_propagate_event+0x133)
[0x2aaab024ed93]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_main_do_event+0x351)
[0x2aaab024fee1]
/usr/lib64/libgdk-x11-2.0.so.0 [0x2aaab07137cc]
/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x1b4) [0x393d02d654]
/lib64/libglib-2.0.so.0 [0x393d03049d]
/lib64/libglib-2.0.so.0(g_main_loop_run+0x1ca) [0x393d0307aa]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_main+0xa3) [0x2aaab02502f3]
[0x430c575d]

Does this need to go to FC, to mono-devel or monodevelop?

TTFN

Paul

Side note: the output above also differs sometimes...

For example, I also have the error as

Stacktrace:

in (wrapper managed-to-native) Gtk.Application:gtk_main() 0xb
in (wrapper managed-to-native) Gtk.Application:gtk_main()
0xffd0
in Gtk.Application:Run() 0x8
in MonoDevelop.Ide.Gui.IdeApp:Run() 0x8
in MonoDevelop.Ide.Gui.IdeStartup:Run(string[]) 0xe96
in MonoDevelop.Core.AddIns.AddInService:StartApplication(string,
string[]) 0x20e
in MonoDevelop.Startup.SharpDevelopMain:Main(string[])0x54
in (wrapper runtime-invoke) System.Object:runtime_invoke_int_string[]
(object, intptr, intptr, intptr) 0xc043f0f5

Native stacktrace
/usr/bin/mono(mono_handle_native_sigsegv+0x8d) [0x50273d]
/usr/bin/mono [0x4ce2f8]
/lib64/libpthread.so.0 [0x3194a0cfe0]
/lib64/libgobject-2.0.so.0 [0x3f87e1c6d3]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x627)[0x3f87e1d7d7]
/usr/lib/libgtk-x11-2.0.so.0(gtk_signal_emit+0xd9)[0x2aaab02bd249]
/usr/lub/mozilla-1.7.13/libgtkembedmoz.so [0x2aaba394e27]
/usr/lib/mozilla-1.7.13/components/libdocshell.so [0x2aaabc55387a]
/usr/lib/mozilla-1.7.13/components/libdocshell.so [0x2aaabc53bae9]
/usr/lib/mozilla-1.7.13/components/libdocshell.so [0x2aaabc54757b]
/usr/lib/mozilla-1.7.13/components/libdocshell.so [0x2aaabc54f0e4]
/usr/lib/mozilla-1.7.13/components/libdocshell.so [0x2aaabc54e82a]
/usr/lib/mozilla-1.7.13/libxpcom.so(PL_HandleEvent+0x19) [0x3f86695029]
/usr/lib/mozilla-1.7.13/libxpcom.so(PL_ProcessPendingEvents+0x4a)
[0x3f866952ca]
/usr/lib/mozilla-1.7.13/libxpcom.so [0x3f8669706d]
/usr/lib/mozilla-1.7.13/components/libwidget_gtk2.so [0x2aaabcdb782]
/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x1b4) [0x393d02d654]
/lib64/libglib-2.0.so.0 [0x393d03049d]
/lib64/libglib-2.0.so.0(g_main_loop_run+0x1ca) [0x393d0307aa]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_main+0xa3) [0x2aaab02502f3]
[0x432d778d]
-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


[Mono-list] ikvm building problem

2006-06-15 Thread PFJ
Hi,

Okay, this is possibly not the best place to be asking this...

I'm trying to build ikvm-0.28.0.0 from the ikvm.net website. Unlike the
version on the go-mono/sources tree, this actually has the sources in
(naughty naughty...)

I have nant installed on my box along with eclipse-ecj (I'm using FC5).

The problem is that with both 0.22.0.0 and 0.28.0.0, the build fails in
the same place and I'm at a loss to see why as everything looks sane.

The error coming up is

[exec]
File ../../classpath-0.19/external/sax/org/xml/sax/AttributeList.java is
missing

I cannot find this file either. Where does it come from?

TTFN

Paul
-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


[Mono-list] [Fwd: ikvm building problem]

2006-06-15 Thread PFJ

-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who
---BeginMessage---
Hi,

Okay, this is possibly not the best place to be asking this...

I'm trying to build ikvm-0.28.0.0 from the ikvm.net website. Unlike the
version on the go-mono/sources tree, this actually has the sources in
(naughty naughty...)

I have nant installed on my box along with eclipse-ecj (I'm using FC5).

The problem is that with both 0.22.0.0 and 0.28.0.0, the build fails in
the same place and I'm at a loss to see why as everything looks sane.

The error coming up is

[exec]
File ../../classpath-0.19/external/sax/org/xml/sax/AttributeList.java is
missing

I cannot find this file either. Where does it come from?

TTFN

Paul
-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who
---End Message---
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-dev] Passing values into the default.build boo script

2006-06-07 Thread PFJ
Hi,

Is there a way to pass values into the default.build script for
boo-0.7.6.2237?

I'm packaging it for Fedora Extras and it's a pain to have to manually
edit the default.build, create a patch, apply the patch etc each time I
alter the spec file (or some other part of the package).

Usually on a spec file, I can define things like bindir, libdir etc and
pass them directly in as they're accepted parameters for make. nant is a
different kettle of fish, so some guidance would be appreciated.

TTFN

Paul
-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


[Mono-list] boo-0.7.6.2234 sourcecode anywhere?

2006-06-07 Thread PFJ
Hi,

The tarball on the boo website for 0.7.6.2234 only contains the
binaries. Does anyone know if there was a source release and if there
was, where it currently can be found?

Failing that, can the normal config and make files be copied from 2234
into 2237 and 2237 be built like any other package? I'm unable to pass
values into the default.build file to override the values already there.

TTFN

Paul
-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


Re: [Mono-list] Cannot find assembly `nunit.framework.dll'

2006-06-07 Thread PFJ
Hi,

 mcs -t:library *.cs -out:testout.dll -define:BRUNET_NUNIT
 -r:nunit.framework.dll
 error CS0006: Cannot find assembly `nunit.framework.dll'
 Log:

What happens if you don't have the .dll at the end?
-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


Re: [Mono-dev] mono frustration

2006-06-05 Thread PFJ
Hi,

  I've just been trying to install the monodevelop IDE and associated
  utilities for FC5 as per your excellent instructions on the mono-develop
  mailing list.

 Yes - I'm moving job, so have moved the packages. I will be putting up
 fresh builds tonight via my home website - there are plenty of fixes,
 including one which sorts out the chomping of the mime encodings!

I've uploaded the 64 bit versions of the rpms - the 32 bit versions will
be around later today.

http://www.all-the-johnsons.co.uk/mono/rpms.html

Please remember, other than ikvm, all of these packages have not been
yet added to the official Fedora Extras yum repository. If you find a
problem, you can file bugs by going to the following bugs at
bugzilla.redhat.com

178901 - gtksourceview-sharp
178904 - monodevelop
189092 - boo
189093 - mono-debugger
193957 - nant

monodoc seems to have vanished currently!

TTFN

Paul
-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


Re: [Mono-dev] mono frustration

2006-06-05 Thread PFJ
Hi,

 178901 - gtksourceview-sharp
 178904 - monodevelop
 189092 - boo
 189093 - mono-debugger
 193957 - nant

194054 - monodoc
-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


[Mono-list] Unable to build from svn

2006-04-28 Thread PFJ
Hi,

I've just downloaded an update from the anonsvn developer branch and
can't compile. libgdiplus builds fine, but I'm getting this with Mono

os_dep.c:20:30: error: linux/version.h: No such file or directory
In file included from os_dep.c:27:
/usr/include/asm/signal.h:5:27: error: linux/linkage.h: No such file or
directory
In file included from /usr/include/asm/signal.h:6,
 from os_dep.c:27:
/usr/include/linux/time.h:9: error: redefinition of 'struct timespec'
/usr/include/linux/time.h:15: error: redefinition of 'struct timeval'
/usr/include/linux/time.h:42: error: redefinition of 'struct itimerspec'
In file included from os_dep.c:27:
/usr/include/asm/signal.h:15: error: conflicting types for 'sigset_t'
/usr/include/signal.h:50: error: previous declaration of 'sigset_t' was
here
In file included from os_dep.c:27:
/usr/include/asm/signal.h:101: error: redefinition of 'struct sigaction'
/usr/include/asm/signal.h:115: error: redefinition of 'struct
sigaltstack'
os_dep.c: In function 'GC_disable_signals':
os_dep.c:565: warning: 'sigsetmask' is deprecated (declared
at /usr/include/signal.h:184)
os_dep.c: In function 'GC_enable_signals':
os_dep.c:574: warning: 'sigsetmask' is deprecated (declared
at /usr/include/signal.h:184)
make[3]: *** [os_dep.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Everything built fine yesterday.

Any ideas?

TTFN

Paul
-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


Re: [Mono-list] Re: Summer of code suggestion

2006-04-28 Thread PFJ
Hi,

On Fri, 2006-04-28 at 23:14 +1000, [EMAIL PROTECTED]
wrote:

 We must have different MonoDevelops, because the only graphical
 interface I can find is for GTK#.

You can certainly use SWF within Monodevelop. However, what it doesn't
have is a forms designer.

TTFN

Paul
-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


Re: [Mono-list] Mono requres X server on Linux?

2006-04-21 Thread PFJ
Hi,

 Does Mono inherently require an X server to connect to?

Nope. I've just switched to a terminal mode on the laptop and fired up a
small test app (accesses an sql database, outputs the results)

 Are there any graphic libraries/functions that we should avoid so that
 our app doesn't try to connect to an X server?

 Source: System.Windows.Forms

It looks like you're using SWF (a GUI) somewhere. As long as you don't
include System.Windows.Forms/System.Drawing and a couple of others, you
should be fine.

TTFN

Paul

-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


Re: [Mono-dev] mono frustration

2006-04-18 Thread PFJ
Hi,

On Tue, 2006-04-18 at 12:24 +0300, Anton Andreev wrote:
   Did anyone installed mono on fedora core 5

Yes. It's quite nice. Okay, it needs updating to 1.1.15, but this isn't
the right list for discussion on that.

 There is a problem with gtkhtml3 and gtk-sharp, pango ...

Is there?

  Mono frustrated me again,cause I wanted to try the new Fedora with new
 Monodevelop with the new Glade designer. 

Monodevelop is not in FC-extras yet. It is currently awaiting approval.

 I even reinstalled my fedora, replaced
 the 64 bit edition with 32 bit edition, but guess what - I had the same
 problem.

And that doesn't surprise me. 

 I will wait a few more months I suppose till fedora core 5 binaries are
 released or the yum dependencies are fixed ...

Okay, quick fix (won't work on 64bit fedora core currently). Open a
terminal window

su
yum -y install fedora-rpmdevtools
exit
fedora-buildrpmtree
wget http://www.smmp.salford.ac.uk/packages/boo-0.7.5.2013-2.src.rpm
wget
http://www.smmp.salford.ac.uk/packages/gtksourceview-sharp-2.0-3.src.rpm
wget http://www.smmp.salford.ac.uk/packages/ikvm-0.22-4.src.rpm
wget http://www.smmp.salford.ac.uk/packages/mod_mono-1.1.14-1.src.rpm
wget http://www.smmp.salford.ac.uk/packages/mono-debugger-0.12-1.src.rpm
wget http://www.smmp.salford.ac.uk/packages/monodevelop-0.10-4.src.rpm
wget http://www.smmp.salford.ac.uk/packages/monodoc-1.1.13-3.src.rpm
wget http://www.smmp.salford.ac.uk/packages/xsp-1.1.13-1.src.rpm
rpm -ihv *.src.rpm
rpmbuild -ba rpmbuild/SPECS/boo.spec
rpmbuild -ba rpmbuild/SPECS/gtksourceview-sharp.spec
su
rpm -ihv rpmbuild/noarch/*
rpm -ihv rpmbuild/i386/*
exit
rpmbuild -ba rpmbuild/SPECS/ikvm.spec
su
rpm -ihv rpmbuild/i386/ikvm*
exit

(you'll need to do this after each package being built - change ikvm for
the name of the package)

rpmbuild -ba rpmbuild/SPECS/monodoc.spec
rpmbuild -ba rpmbuild/SPECS/mono-debugger.spec
rpmbuild -ba rpmbuild/SPECS/monodevelop.spec

If you want to server ASP.NET files via Apache

rpmbuild -ba rpmbuild/SPECS/xsp.spec
rpmbuild -ba rpmbuild/SPECS/mod_mono.spec

If the build process stops and says you need a particular package,

yum -y install package-name

That lot may look a bit hairy, but if you follow my instructions, it
will be quite painless.

I've not put the rpms up on the Salford server as they're not required
for Fedora Extras approval.

You now have just about all of the rpms available installed on your
machine. Any problems, please email me directly (or report them here). I
am pushing quite hard for these to be included into Fedora Extras, but
things are a tad slow with the chaps currently.

It may be worth joining the fedora-extras list as well and poking there.

TTFN

Paul

-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


Re: [Mono-dev] Re: mono frustration

2006-04-18 Thread PFJ
Hi,

  I will wait a few more months I suppose till fedora core 5 binaries are
  released or the yum dependencies are fixed ...
 
 Maintaining package dependencies and stability of the bleeding-edge 
 versions of programs is a very hard work for the distributions' 
 employees and/or contributors. It's normal to have problems like these 
 ones when using the latest versions of packages, because unstability 
 increases.

Well, that's not quite true. What usually happens is that when a rebuild
is requested, not all of the other packages which depend on the rebuilt
one are rebuilt. The reasons can be many fold. Normal users (those using
core) don't see this very often, but it's something those using the
developer branch (rawhide) have to put up with a lot. But hey, it's part
of the fun!

 And when I have problems, I try to report them as detailed as possible, 
 and to the correct sources (probably these concrete reports are also 
 welcome on Fedora mailing-lists, for example, although I don't know if 
 you have already sent them there). But I understand that this could be 
 very annoying/frustrating.

I've not seen any reports (except for mine) on any of the FC mailing
lists (extras/test/developers/core).

TTFN

Paul
-- 
Logic, my dear Zoe, is merely the ability to be wrong with authority -
Dr Who

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


Re: AW: AW: AW: [Mono-list] Daily build errors

2004-10-29 Thread PFJ
Hi,

 Make uninstall

 *** You need a C# compiler installed to build MCS. (make sure mcs
 works from the command line)
 *** Read INSTALL.txt for information on how to bootstrap
 *** a Mono installation.

Why does this error not suprise me? You've uninstalled it!

TTFN

Paul
-- 
If I face my God tomorrow, I can tell Him I am innocent.
I've never harmed anyone. I have cheated no one. 
I have deceived no one. I have hurt no one. 
Except myself. And that He will forgive me. - Hans Holzel


signature.asc
Description: This is a digitally signed message part


Re: [Mono-list] Is Mono ready to compete with MS .NET in real business?

2004-09-29 Thread PFJ
Hi,

 Mono 1.0 was shipped awhile ago, and I'm really excited
 about that... but now the natural question is:
 
   Is Mono ready to compete with MS .NET in real business?

Depends on the context. For winforms, no. 1.2 will have that and it
should rock.

 ... and one more question is
 
   Will Novell provide support, documentation, etc.?
   If yes, by when?

monodoc already has the documentation. As C# is already a standardised
language, whatever is in the ECMA standard or the MS documentation
should follow.

 Behind MS .NET there is a huge development team,
 support, documentation, and continuity... and I
 think Novell should offer the same, but till now
 I don't see anything in that way.

There is with Mono. The big difference is that (I would guess) the
majority of those working on Mono aren't on the Novell payroll - it's
the biggest difference between Open and Closed source. Take OpenOffice,
there are well over 200 people actively working on it, yet only about 15
work for Sun!

TTFN

Paul
-- 
If I face my God tomorrow, I can tell Him I am innocent.
I've never harmed anyone. I have cheated no one. 
I have deceived no one. I have hurt no one. 
Except myself. And that He will forgive me. - Hans Holzel


signature.asc
Description: This is a digitally signed message part


Re: [Mono-list] foto

2004-09-02 Thread PFJ
Hi,

On Thu, 2004-09-02 at 11:17 +0300, George Birbilis wrote:
 this had VBS:Beagle-AK1 virus

I wonder if it would work using monobasic ;-p

TTFN

Paul
-- 
If I face my God tomorrow, I can tell Him I am innocent.
I've never harmed anyone. I have cheated no one. 
I have deceived no one. I have hurt no one. 
Except myself. And that He will forgive me. - Hans Holzel


signature.asc
Description: This is a digitally signed message part


Re: [Mono-list] Beginner C# Book

2004-08-23 Thread PFJ
Hi,

 You might want to check out Programming C# by Jesse Liberty, 3rd edition,
 pub. O'Reilly, ISBN 0-596-00489-3.
 
 The 3rd edition has complete coverage of .NET 1.1 and in this edition they
 added VS.NET 2003, but not too much (50 pages out of 700 something).
 
 I would recommend it to anyone.

Learning C#, Liberty
http://www.accu.org/bookreviews/public/reviews/l/l003354.htm

Programming C#, Liberty
http://www.accu.org/bookreviews/public/reviews/p/p003468.htm

I can't remember which one I liked better, they're both cracking books.

I'd still recommend Mono : A developer's handbook as the 2nd or 3rd book
you should read.

TTFN

Paul
-- 
If I face my God tomorrow, I can tell Him I am innocent.
I've never harmed anyone. I have cheated no one. 
I have deceived no one. I have hurt no one. 
Except myself. And that He will forgive me. - Hans Holzel


signature.asc
Description: This is a digitally signed message part


[Mono-list] Mono - A developers notebook

2004-08-13 Thread PFJ
Hi,

Get this book - it is absolutely fantastic and better still, the
language used is simple to understand without being over simplistic.

Utterly wonderful.

If you're a subscriber to C Vu from the ACCU (http://www.accu.org), it
will get a full review in there in the next edition (Oct 2004)

Mono - A developers notebook
Dumbill and Bornstein
O'Reilly
ISBN 0-596-007922

TTFN

Paul
Editor, C Vu
-- 
If I face my God tomorrow, I can tell Him I am innocent.
I've never harmed anyone. I have cheated no one. 
I have deceived no one. I have hurt no one. 
Except myself. And that He will forgive me. - Hans Holzel


signature.asc
Description: This is a digitally signed message part


[Mono-list] gtk#

2004-07-07 Thread PFJ
Hi,

I'm testing the code in the Sams Mono Kickstart book for the ACCU
review and have stumbled on a problem.

When I try to compile the gtk# code, mcs throws out the error

cannot find assembley gtk-sharp

libgtksharp (and family) is in /usr/lib. I've run /sbin/ldconfig as
well, but get the same. There doesn't seem to be an entry for gtk-sharp
though in /etc/mono/config - if there is one in there, what should it
be?

Am I using the correct command line of 

mcs filename -r gtk-sharp -r System.Drawing?

Using /r: makes no difference.

TTFN

Paul
-- 
If I face my God tomorrow, I can tell Him I am innocent.
I've never harmed anyone. I have cheated no one. 
I have deceived no one. I have hurt no one. 
Except myself. And that He will forgive me. - Hans Holzel


signature.asc
Description: This is a digitally signed message part


[Mono-list] Monodevelop bugette

2004-06-28 Thread PFJ
Hi,

This is more annoying than anything else.

The default save path for monodevelop is currently set to something
like /usr/bin/monodevelop instead of ~/

Any chance of changing that or putting it in the a configuration setting
somewhere please?

TTFN

Paul
-- 
If I face my God tomorrow, I can tell Him I am innocent.
I've never harmed anyone. I have cheated no one. 
I have deceived no one. I have hurt no one. 
Except myself. And that He will forgive me. - Hans Holzel


signature.asc
Description: This is a digitally signed message part


[Mono-list] beta 3 for FC2

2004-06-16 Thread PFJ
Hi,

I may have missed it, but when is beta 3 for Fedora Core 2 due to hit?

TTFN

Paul
-- 
If I face my God tomorrow, I can tell Him I am innocent.
I've never harmed anyone. I have cheated no one. 
I have deceived no one. I have hurt no one. 
Except myself. And that He will forgive me. - Hans Holzel


signature.asc
Description: This is a digitally signed message part


Re: [Mono-list] winforms on debian / wine / segmentation fault = sorry bug in sent

2004-06-08 Thread PFJ
Hi,

 which libs dependencies have mono to run these fucking winforms ?
 (execpt glib2 ...)

Look, I know it can be annoying that bits of the software don't work,
but can you please moderate your language - it makes it far less likely
that anyone will answer your questions.

Winforms is only really at alpha stage currently, so there is no g/tee
on them working. I know they don't currently on my Fedora Core 2 boxes.

TTFN

Paul

-- 
Your lives are in the hands of men no smarter than you or I, many of
them incompetent boobs. I know this because I worked alongside them,
gone bowling with them, watched them pass me over for promotions time
and again. And I say ... This stinks! - Homer Simpson


signature.asc
Description: This is a digitally signed message part


Re: [Mono-list] usage of the mailing list

2004-05-19 Thread PFJ
Hi

 nobody take care about me, how do i answer to one subject instead of
 creating new  idont like flooding but i take apart of the mailing
 lists, so sorry ;(

Simplest rules

1. If you're starting a new thread, start a new thread
2. If you have two concurrent threads which cover the same material,
merge them together, but ensure you put in the subject either [MERGED]
or (was )
3. As you've found, you need to wait before posting again!

Bigger things, though not rules

1. Get an email client that wraps correctly!
2. Don't top post (i.e. putting the answer before the question). A lot
of the time, the postings on mailing lists require technical/detailed
information and trying to figure out what goes were is a pain and leads
to confusing. I know of some who point blank refuse to reply to
top-posts.
3. Be nice. Remember, just about everyone on here is donating time to
make things better for everyone else (I've done it often enough from
both sides), so unlike a telephone helpline, replies may be slow, but
getting irate won't help.

Hope that's useful.

TTFN

Paul

-- 
Your lives are in the hands of men no smarter than you or I, many of
them incompetent boobs. I know this because I worked alongside them,
gone bowling with them, watched them pass me over for promotions time
and again. And I say ... This stinks! - Homer Simpson


signature.asc
Description: This is a digitally signed message part


Re: [Mono-list] Re: Mono-list] mono 091 hangs on install

2004-05-19 Thread PFJ
Hi,

 where can i find gcc3.4 for debian??  
 ive just seen 3.0 3.1  3.23.3  

Compile from source.

TTFN

Paul
-- 
Your lives are in the hands of men no smarter than you or I, many of
them incompetent boobs. I know this because I worked alongside them,
gone bowling with them, watched them pass me over for promotions time
and again. And I say ... This stinks! - Homer Simpson


signature.asc
Description: This is a digitally signed message part


Re: [Mono-list] RE: WINFORM / Wine / Whats the fsck going wrong? (Mathieu PASQUET)

2004-05-18 Thread PFJ
Hi,

 can somebody answer to me   ?.?  !!!

The rpms for Fedora Core work fine. As it also does when I've compiled
it from source.

What it sounds like to me is that you have an old version of either
wine, winelib or the mono stuff on your machine and that's messing
things up. Happened on my laptop a while back.

Remove the old wine and mono packages and start again. Personally, I'd
ditch debian and use Fedora - it's nice not having to wait ;-)

TTFN

Paul
-- 
Your lives are in the hands of men no smarter than you or I, many of
them incompetent boobs. I know this because I worked alongside them,
gone bowling with them, watched them pass me over for promotions time
and again. And I say ... This stinks! - Homer Simpson


signature.asc
Description: This is a digitally signed message part


Re: [Mono-list] .NET

2003-06-23 Thread PFJ
Hi,

 I don't know almost anything about unix/linux.
 What are the steps to have .NET application running under them?

IIRC, you just need to write it in pure C# - i.e. not include vendor
specific material (such as windows.forms classes) and it should work.

TTFN

Paul
 
-- 
Open your mind to a time where a company does not have control
Open your mind to a choice of applications which you can control
Open your mind from the closed world of those who seek total power
Open your mind to the wonderful world of Open Source

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list