From andyhume32 at yahoo.co.uk Mon Sep 1 04:39:47 2008 From: andyhume32 at yahoo.co.uk (Andy Hume) Date: Mon, 1 Sep 2008 01:39:47 -0700 (PDT) Subject: [Mono-dev] WebBrowser and MDI (Windows?) Re: Mono 2.0 Preview 2 is out!! In-Reply-To: <48A9E98F.7030202@novell.com> References: <48A9E98F.7030202@novell.com> Message-ID: <19250296.post@talk.nabble.com> Two regressions. Don't know whether it's already being tracked: Bug 414146, where the WebBrowser fails with a managed exception under normal simple usage. Also Bug 421858 "MDI: Failed to create window, class 'SWFClass0'" Win32 only apparently. Andy Thomas Wiest wrote: > > Hey Everyone, > > We've just released Mono 2.0 Preview 2 today! Please help us out by > giving it a try with your applications. > > As always, you can get the preview releases here: > http://mono.ximian.com/monobuild/preview/download-preview/ > > Please report any bugs that you may find using our Bugs page, AND reply > to this thread with the bug numbers so we can track them! > http://www.mono-project.com/Bugs > > You can see the bugs we're tracking for Mono 2.0 here: > https://bugzilla.novell.com/buglist.cgi?bug_file_loc_type=allwordssubstr&bug_file_loc=http%3A%2F%2Fwww.go-mono.com%2Farchive%2F2.0%2F&order=bugs.bug_status%20 > > The earlier you file the bugs and reply to this message, the more likely > your bugs will get fixed. > > Special attention is given to regressions, so if you can tell us a > version of Mono where the bug worked and you tag the summary of the bug > with [Regression], then it is much more likely your bug will get fixed. > > Please help the Mono team to make 2.0 the best ever. > > Thanks again! > > Mono QA > > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > > -- View this message in context: http://www.nabble.com/Mono-2.0-Preview-2-is-out%21%21-tp19040411p19250296.html Sent from the Mono - Dev mailing list archive at Nabble.com. From steffen.enni at gmail.com Tue Sep 2 05:31:08 2008 From: steffen.enni at gmail.com (Steffen Enni) Date: Tue, 2 Sep 2008 11:31:08 +0200 Subject: [Mono-dev] Remoting - can't pass an object reference in call between windows and mono. Message-ID: <61841b960809020231r60771e5fj84c0e93794ad2522@mail.gmail.com> Hi, My client implements a callback interface that is supplied as an argument to a remote call against a server. The interface is: public interface IHello { //client -----(SayHello)-----> server // <-----(Hello)-------- // ---return(Hello)----> // <--return(SayHello)-- void SayHello(string sender, IHello remoteRef); void Hello(string sender); } When I run both server and client on windows then calling SayHello() works. Similarly when running on mono 2.1.r110365 (the VMWare image with the latest build from http://www.mono-project.de/mono-image/) it also works. If I just call the Hello() method then it works in all cases. I've attached a combined MonoDevelop / Visual Studio 2008 solution which can reproduce the behavior. I set up the HttpChannel in the following way on both the server and client: BinaryServerFormatterSinkProvider serverProv = new BinaryServerFormatterSinkProvider(); serverProv.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full; BinaryClientFormatterSinkProvider clientProv = new BinaryClientFormatterSinkProvider(); System.Collections.IDictionary props = new System.Collections.Hashtable(); props["port"] = 7326; HttpChannel channel = new HttpChannel(props, clientProv, serverProv); ChannelServices.RegisterChannel(channel, false); I activate the IHello implementations on both the client and server using code like this: class HelloImpl : MarshalByRefObject, IHello { ...} HelloImpl hello = new HelloImpl(); RemotingServices.Marshal(hello, "server"); I've tested on the following combinations using a HttpChannel. I've tried using a TcpChannel with similar results and now I'm run out of ideas of what to try. ========================================== Server Client Result mono 1.9.1 mono 1.9.1 FAIL mono 1.9.1 mono 2.1.r110365 OK mono 1.9.1 windows FAIL mono 2.1-r110365 mono 2.1-r110365 OK mono 2.1.r110365 mono 1.9.1 FAIL mono 2.1-r110365 windows FAIL <=== This is the one I would like to see working. windows mono 1.9.1 FAIL windows mono 2.1-r110365 FAIL windows windows OK =========================================== I get different failure scenarios. (They can all be seen in the notes.txt file that are included in the attached archive.) When the client is on windows (a Vista machine, tried both with .NET 3.5 and 2.0 with same result) I get the following error on the client side: Server stack trace: at System.Reflection.MonoField.SetValue (System.Object obj, System.Object val, BindingFlags invokeAttr, System.Reflection.Binder binder, Syste m.Globalization.CultureInfo culture) [0x00000] at System.Reflection.FieldInfo.SetValue (System.Object obj, System.Object value) [0x00000] at System.Runtime.Serialization.Formatters.Binary.ObjectReader.SetObjectValue (System.Object parentObject, System.String fieldName, System.Ref lection.MemberInfo memberInfo, System.Runtime.Serialization.SerializationInfo info, System.Object value, System.Type valueType, System.Int32[] i ndices) [0x00000] at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadValue (System.IO.BinaryReader reader, System.Object parentObject, Int64 par entObjectId, System.Runtime.Serialization.SerializationInfo info, System.Type valueType, System.String fieldName, System.Reflection.MemberInfo m emberInfo, System.Int32[] indices) [0x00000] at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectContent (System.IO.BinaryReader reader, System.Runtime.Serialization. Formatters.Binary.TypeMetadata metadata, Int64 objectId, System.Object& objectInstance, System.Runtime.Serialization.SerializationInfo& info) [0 x00000] at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectInstance (System.IO.BinaryReader reader, Boolean isRuntimeObject, Boo lean hasTypeInfo, System.Int64& objectId, System.Object& value, System.Runtime.Serialization.SerializationInfo& info) [0x00000] at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObject (BinaryElement element, System.IO.BinaryReader reader, System.Int64& objectId, System.Object& value, System.Runtime.Serialization.SerializationInfo& info) [0x00000] at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject (System.IO.BinaryReader reader) [0x00000] at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph (System.IO.BinaryReader reader, Boolean readHeaders, System.Obj ect& result, System.Runtime.Remoting.Messaging.Header[]& headers) [0x00000] at System.Runtime.Serialization.Formatters.Binary.MessageFormatter.ReadMethodCall (System.IO.BinaryReader reader, Boolean hasHeaders, System.R untime.Remoting.Messaging.HeaderHandler headerHandler, System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter) [0x00000] at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize (System.IO.Stream serializationStream, System.Runtime.Rem oting.Messaging.HeaderHandler handler) [0x00000] at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.M essaging.HeaderHandler handler) [0x00000] at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage (IServerChannelSinkStack sinkStack, IMessage requestMsg, ITranspo rtHeaders requestHeaders, System.IO.Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, System.IO.Stream& responseS tream) [0x00000] Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Interface.IHello.SayHello(String sender, IHello remoteRef) at Client.Program.Main(String[] args) in D:\Projects\Constellation\mono\PassingObjRef\Client\Program.cs:line 51 I've searched the mailing list archive and could not find any hints on what to do, so I have no idea of what else I could try to solve this problem. Is there a kind person that is able to help me in solving this problem? Best regards Steffen Enni Denmark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080902/a831e8c4/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: PassingObjRef.tar.gz Type: application/x-gzip Size: 6404 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080902/a831e8c4/attachment-0001.gz From robertj at gmx.net Tue Sep 2 06:07:26 2008 From: robertj at gmx.net (Robert Jordan) Date: Tue, 02 Sep 2008 12:07:26 +0200 Subject: [Mono-dev] Remoting - can't pass an object reference in call between windows and mono. In-Reply-To: <61841b960809020231r60771e5fj84c0e93794ad2522@mail.gmail.com> References: <61841b960809020231r60771e5fj84c0e93794ad2522@mail.gmail.com> Message-ID: Hi, Steffen Enni wrote: > Hi, > > I've tested on the following combinations using a HttpChannel. I've tried > using a TcpChannel with similar results and now I'm run out of ideas of what > to try. Replace all [assembly: AssemblyVersion("1.0.*.*")] occurrences with a definite version, like "1.0.0.0", recompile and retest. If it still doesn't work, please file a bug at http://www.mono-project.com/Bugs Thanks Robert From surfzoid at gmail.com Tue Sep 2 07:51:50 2008 From: surfzoid at gmail.com (Petit Eric) Date: Tue, 2 Sep 2008 13:51:50 +0200 Subject: [Mono-dev] WinForms or GTK# Forms Message-ID: <84776a970809020451p14ae0610k439237bc43e60eca@mail.gmail.com> Hi, Is there an existing tool who convert MS Winforms .Designer.cs class files to Gtk# UI/designer files ? -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- If one day one reproaches you that your work is not a work of professional, say you that: Amateurs built the arch of Noah, and professionals the Titanic. --------------------------------------------------------------------------- Few people are done for independence, it is the privilege of the powerful ones. --------------------------------------------------------------------------- No key was wounded during the drafting of this message. From safknw at gmail.com Tue Sep 2 10:19:04 2008 From: safknw at gmail.com (Sharique uddin Ahmed Farooqui) Date: Tue, 2 Sep 2008 19:49:04 +0530 Subject: [Mono-dev] WinForms or GTK# Forms In-Reply-To: <84776a970809020451p14ae0610k439237bc43e60eca@mail.gmail.com> References: <84776a970809020451p14ae0610k439237bc43e60eca@mail.gmail.com> Message-ID: <4da6cf8d0809020719t26b167d2lb7f6e62493445d88@mail.gmail.com> On Tue, Sep 2, 2008 at 5:21 PM, Petit Eric wrote: > Hi, > Is there an existing tool who convert MS Winforms .Designer.cs class > files to Gtk# UI/designer files ? AFAIK, there is no such tool. Mono 2.0 support winforms 2.0 so u don't need to port to GTk#. > > -- > > Cordially. > > Small Eric Quotations of the days: > --------------------------------------------------------------------------- > If one day one reproaches you that your work is not a work of > professional, say you that: > Amateurs built the arch of Noah, and professionals the Titanic. > --------------------------------------------------------------------------- > > Few people are done for independence, it is the privilege of the powerful ones. > --------------------------------------------------------------------------- > > No key was wounded during the drafting of this message. > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > -- Sharique uddin Ahmed Farooqui (C++/C# Developer, IT Consultant) http://safknw.blogspot.com/ "Peace" is the Ultimate thing we want. From boaz at plum.co.za Tue Sep 2 05:42:05 2008 From: boaz at plum.co.za (ebbtepi) Date: Tue, 2 Sep 2008 02:42:05 -0700 (PDT) Subject: [Mono-dev] Stable MySQL Connector/NET for Mono on Linux Message-ID: <19267056.post@talk.nabble.com> Hi, I have using MySQL Connector/NET (MySql.Data.Dll) to connect to MySQL from my Mono app which runs on Fedora Core 7. My program has about 150 simultaneous users (it's a chat server) and queries the database a fair bit. It crashes anywhere from 10 minutes to 2 hours running with this error: Stacktrace: at (wrapper managed-to-native) System.Buffer.BlockCopyInternal (System.Array,int,System.Array,int,int) <0x00004> at (wrapper managed-to-native) System.Buffer.BlockCopyInternal (System.Array,int,System.Array,int,int) <0xffffffff> recvd cmd: 6 (252191) at System.IO.BufferedStream.Read (byte[],int,int) [0x00175] in /root/mono-1.9.1/mono-1.9.1/mcs/class/corlib/System.IO/BufferedStream.cs:244 at System.IO.BufferedStream.ReadByte () [0x0000d] in /root/mono-1.9.1/mono-1.9.1/mcs/class/corlib/System.IO/BufferedStream.cs:181 at MySql.Data.MySqlClient.MySqlStream.LoadPacket () <0x0001e> at MySql.Data.MySqlClient.MySqlStream.OpenPacket () <0x00041> at MySql.Data.MySqlClient.NativeDriver.ReadResult (ulong&,long&) <0x0003f> at MySql.Data.MySqlClient.MySqlDataReader.GetResultSet () <0x0003e> at MySql.Data.MySqlClient.MySqlDataReader.NextResult () <0x00072> at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (System.Data.CommandBehavior) <0x0057d> at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader () <0x0000c> at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery () <0x0002f> at webtunnel.Database.Query (string,System.Collections.ArrayList,bool,bool,int,string,string) [0x00156] in /www/CMS/servers/webtunnel/Database.cs:117 at webtunnel.Database.ExecuteNonQuery (string,System.Collections.ArrayList) [0x00000] in /www/CMS/servers/webtunnel/Database.cs:139 at webtunnel.Channel.RemoveUser (webtunnel.User) [0x00065] in /www/CMS/servers/webtunnel/Channel.cs:578 at webtunnel.Channel.UserPart (webtunnel.User,int,string,string) [0x00000] in /www/CMS/servers/webtunnel/Channel.cs:96 at webtunnel.Server.DisconnectUser (webtunnel.User,int,System.Collections.ArrayList) [0x000cc] in /www/CMS/servers/webtunnel/Server.cs:200 at webtunnel.UserWrite.HandleWrite () [0x00137] in /www/CMS/servers/webtunnel/UserWrite.cs:56 at (wrapper runtime-invoke) System.Object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff> Native stacktrace: /usr/local/bin/mono [0x816a5af] /usr/local/bin/mono [0x807dcf1] [0x110440] [0x412313] [0x3ec87f2] [0x3ecae02] [0x3ecac97] [0x3ecaac2] [0x652e278] [0x652e117] [0x652d99b] [0x652b266] [0x652acd5] [0x6532ef8] [0x65356ff] [0x65352db] [0x35c4e86] [0x35c4bf1] [0x73a53d6] [0x3179aa1] [0x46e8a9] /usr/local/bin/mono(mono_runtime_delegate_invoke+0x36) [0x80c6d26] /usr/local/bin/mono [0x80d282d] /usr/local/bin/mono [0x8109ef2] /usr/local/bin/mono [0x8120a55] /lib/libpthread.so.0 [0x32144b] /lib/libc.so.6(clone+0x5e) [0x26480e] I've tried using connector/net 1.0.7, 1.0.9, 5.0.3... still same problem Any ideas? I've been stumped for months. -- View this message in context: http://www.nabble.com/Stable-MySQL-Connector-NET-for-Mono-on-Linux-tp19267056p19267056.html Sent from the Mono - Dev mailing list archive at Nabble.com. From surfzoid at gmail.com Tue Sep 2 11:51:20 2008 From: surfzoid at gmail.com (Petit Eric) Date: Tue, 2 Sep 2008 17:51:20 +0200 Subject: [Mono-dev] WinForms or GTK# Forms In-Reply-To: <4da6cf8d0809020719t26b167d2lb7f6e62493445d88@mail.gmail.com> References: <84776a970809020451p14ae0610k439237bc43e60eca@mail.gmail.com> <4da6cf8d0809020719t26b167d2lb7f6e62493445d88@mail.gmail.com> Message-ID: <84776a970809020851h532c0500n6671d2ca5ffd6475@mail.gmail.com> 2008/9/2 Sharique uddin Ahmed Farooqui : > On Tue, Sep 2, 2008 at 5:21 PM, Petit Eric wrote: >> Hi, >> Is there an existing tool who convert MS Winforms .Designer.cs class >> files to Gtk# UI/designer files ? > AFAIK, there is no such tool. > Mono 2.0 support winforms 2.0 so u don't need to port to GTk#. haha , this is the third soft i write by using MS VC to create the object of the winforms and MD under nix, to write code, but no success and systematicaly, "why don't use native, GTK", this question take sense, sur but i can't use GTK# designer and can't complety rewrite all, just for the UI. As example, my last soft MonoOSC run fine under linux, i annouce it on gnome-anouce mailling list, response from moderator/admin ,something like "Since it use winforms, it as nothing to do with GTK!". Perhap's my question should be better with, is there a GTK skin for winforms :-) > >> >> -- >> >> Cordially. >> >> Small Eric Quotations of the days: >> --------------------------------------------------------------------------- >> If one day one reproaches you that your work is not a work of >> professional, say you that: >> Amateurs built the arch of Noah, and professionals the Titanic. >> --------------------------------------------------------------------------- >> >> Few people are done for independence, it is the privilege of the powerful ones. >> --------------------------------------------------------------------------- >> >> No key was wounded during the drafting of this message. >> _______________________________________________ >> Mono-devel-list mailing list >> Mono-devel-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-devel-list >> > > > > -- > Sharique uddin Ahmed Farooqui > (C++/C# Developer, IT Consultant) > http://safknw.blogspot.com/ > "Peace" is the Ultimate thing we want. > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- If one day one reproaches you that your work is not a work of professional, say you that: Amateurs built the arch of Noah, and professionals the Titanic. --------------------------------------------------------------------------- Few people are done for independence, it is the privilege of the powerful ones. --------------------------------------------------------------------------- No key was wounded during the drafting of this message. From bigzee at zeenni.net Tue Sep 2 15:21:02 2008 From: bigzee at zeenni.net (Wael Zeenni) Date: Tue, 02 Sep 2008 15:21:02 -0400 Subject: [Mono-dev] Controls within a control in ASP.NET Message-ID: <20080902192102.888c373e@mail.zeennienterprises.com> Hey people, Not to be a pain or anything, but can someone please let me know if they could figure out what the problem is below? I've attached the file referred to in the backtrace as requested, but I'm not sure how to go about solving the problem. Any help will be great. Thanks again. ----------------------------- Maerk, Petit, thanks for bearing with me. I didn't know I had to attach that file :p Anyway, as requested, the errors are coming from the one file which I attached along with the backtrace which is as follows: Server Error in '/' Application _____ Object reference not set to an instance of an object Description: HTTP 500. Error processing request. Stack Trace: System.NullReferenceException: Object reference not set to an instance of an object at ASP.default_aspx.__BuildControl__bctrl_4 (ComponentArt.Web.UI.DialogContent __ctrl) [0x00000] in C:\Users\WAELZE~1\AppData\Local\Temp\Wael Zeenni-temp-aspnet-0\d4c29737\App_Web_646ab563_3.cs:434 at ASP.default_aspx.__BuildControl_dlgError () [0x0000d] in C:\Users\WAELZE~1\AppData\Local\Temp\Wael Zeenni-temp-aspnet-0\d4c29737\App_Web_646ab563_3.cs:389 at ASP.default_aspx.__BuildControl_form1 () [0x00018] in C:\Users\WAELZE~1\AppData\Local\Temp\Wael Zeenni-temp-aspnet-0\d4c29737\App_Web_646ab563_3.cs:343 at ASP.default_aspx.__BuildControlTree (ASP.default_aspx __ctrl) [0x00006] in C:\Users\WAELZE~1\AppData\Local\Temp\Wael Zeenni-temp-aspnet-0\d4c29737\App_Web_646ab563_3.cs:196 at ASP.default_aspx.FrameworkInitialize () [0x00006] in C:\Users\WAELZE~1\AppData\Local\Temp\Wael Zeenni-temp-aspnet-0\d4c29737\App_Web_646ab563_3.cs:943 at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00049] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\System.Web\System.Web.UI\Page.cs:1282 at System.Web.HttpApplication+<>c__CompilerGenerated6.MoveNext () [0x00d7f] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\System.Web\System.Web\HttpApplication.cs:999 at System.Web.HttpApplication.Tick () [0x00000] in C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\System.Web\System.Web\HttpApplication.cs:690 _____ Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42 Note that this was run using Mono 1.9.1 and not the 2.0 Preview. Looking through the file, it seems all the errors are coming from something called System.Web.UI.IParserAccessor. I'm not sure what that means, so I'm hoping at least you might have an idea. If it is indeed a Mono bug, then I will log it as such, but I'd rather make sure first. Thanks for any help guys. _____ From: Marek Habersack [mailto:grendel at twistedcode.net] To: Wael Zeenni [mailto:bigzee at zeenni.net] Cc: mono-devel-list at lists.ximian.com Sent: Thu, 28 Aug 2008 15:15:23 -0400 Subject: Re: [Mono-dev] Controls within a control in ASP.NET On Tue, 26 Aug 2008 05:45:00 -0400 "Wael Zeenni" wrote: Hello, > Petit, Marek, Thanks for the responses so far. > > I (finally) got XSP2 and Mono to run in debug mode and now there are line numbers > into the code files that show up on the error page. Below is what I am getting: > > Server Error in '/' Application [snip] C:\Users\wzeenni\AppData\Local\Temp\wzeenni-temp-aspnet-0\13ab1697\App_Web_4d5b6eaf_3.cs:1096 > at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00049] in [snip] > Does that mean anything to anyone? In the above error that is referring to my > Default.aspx page, line 37 and 41 are simply the Dialog control that I am using. In itself it doesn't mean anything - you forgot to attach the generated file (whose path I left above). Note that each time you generate restart the application, the file will have a different name - please copy the file and attach it to the mail along with the new backtrace. regards, marek > I have no clue how to read through the source code of mono for the other .cs > files. If anyone can help I would REALLY appreciate it. > > Thank you. > > Zee. > _____ > > From: Marek Habersack [mailto:grendel at twistedcode.net] > To: Wael Zeenni [mailto:bigzee at zeenni.net] > Cc: mono-devel-list at lists.ximian.com, Petit Eric [mailto:surfzoid at gmail.com] > Sent: Mon, 25 Aug 2008 04:20:06 -0400 > Subject: Re: [Mono-dev] Controls within a control in ASP.NET > > On Mon, 25 Aug 2008 02:17:32 -0400 > "Wael Zeenni" wrote: > > > Dear Eric, > > > > Thanks for the response. > > > > I ran the ComponentArt DLL through the MoMA and everything turned out fine. There > > were no PInvokes and no missing Mono functionality. > > As to where the error is coming up, I know exactly where it's happening. I > > started a blank aspx page and placed 2 controls in it. One of them is a Dialog > > control and then, inside this dialog control, I placed a text box. When I ran > > this through IIS, it worked fine. However, when I ran it with Mono, I got the > > same error below. Realistically, I don't need to declare these controls using > > "new" at runtime as I am not creating them dynamically. They are already on the > > page. However, if this is a Mono workaround, I guess I'll have to try that. But > > where should I declare these controls? In the PageLoad()? And regarding your > > other solution about tracing, unfortunately, I'm not that experienced with doing > > this sort of stuff. I just thought that I couldn't be the only person here with > > this problem. I'm sure someone else must have had some project where a control > > is contained within another control :p Any ideas? I really need this to work or > > else it will effectively kill my web app's cross-platformness :( Zee _____ > It's most likely a bug in Mono. It's hard to fix it given the information in your > previous mail, though. Could you, please, run the application with mono --debug > (and make sure that is present in your web.config), > then post the backtrace together with the generated file. That will give more > information and make it easier to see what's going on. > > regards, > > marek > > > > > !DSPAM:2,48b3d7ae238117706610945! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080902/fc48a065/attachment-0001.html -------------- next part -------------- // ------------------------------------------------------------------------------ // // This code was generated by a tool. // Mono Runtime Version: 2.0.50727.42 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // ------------------------------------------------------------------------------ public partial class _Default : System.Web.SessionState.IRequiresSessionState { #line 10 "C:\Development\ClamTrack\Website\Default.aspx" protected global::System.Web.UI.HtmlControls.HtmlHead _bctrl_1; #line default #line 11 "C:\Development\ClamTrack\Website\Default.aspx" protected global::System.Web.UI.HtmlControls.HtmlTitle _bctrl_2; #line default #line 12 "C:\Development\ClamTrack\Website\Default.aspx" protected global::System.Web.UI.HtmlControls.HtmlLink _bctrl_3; #line default #line 36 "C:\Development\ClamTrack\Website\Default.aspx" protected global::System.Web.UI.HtmlControls.HtmlForm form1; #line default #line 40 "C:\Development\ClamTrack\Website\Default.aspx" protected global::ComponentArt.Web.UI.Dialog dlgError; #line default #line 44 "C:\Development\ClamTrack\Website\Default.aspx" protected global::ComponentArt.Web.UI.DialogContent _bctrl_4; #line default #line 60 "C:\Development\ClamTrack\Website\Default.aspx" protected global::ComponentArt.Web.UI.DialogContent _bctrl_5; #line default #line 82 "C:\Development\ClamTrack\Website\Default.aspx" protected global::ComponentArt.Web.UI.DialogContent _bctrl_6; #line default #line 88 "C:\Development\ClamTrack\Website\Default.aspx" protected global::System.Web.UI.WebControls.ImageButton btnOK; #line default #line 98 "C:\Development\ClamTrack\Website\Default.aspx" protected global::ComponentArt.Web.UI.Dialog dlgSignIn; #line default #line 102 "C:\Development\ClamTrack\Website\Default.aspx" protected global::ComponentArt.Web.UI.DialogContent _bctrl_7; #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" protected global::ComponentArt.Web.UI.DialogContent _bctrl_8; #line default #line 139 "C:\Development\ClamTrack\Website\Default.aspx" protected global::System.Web.UI.WebControls.TextBox txtEmail; #line default #line 146 "C:\Development\ClamTrack\Website\Default.aspx" protected global::System.Web.UI.WebControls.RequiredFieldValidator fvEmail; #line default #line 152 "C:\Development\ClamTrack\Website\Default.aspx" protected global::System.Web.UI.WebControls.TextBox txtPassword; #line default #line 159 "C:\Development\ClamTrack\Website\Default.aspx" protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1; #line default #line 164 "C:\Development\ClamTrack\Website\Default.aspx" protected global::System.Web.UI.WebControls.Label lblError; #line default #line 173 "C:\Development\ClamTrack\Website\Default.aspx" protected global::ComponentArt.Web.UI.DialogContent _bctrl_9; #line default #line 179 "C:\Development\ClamTrack\Website\Default.aspx" protected global::System.Web.UI.WebControls.ImageButton btnLogin; #line default protected System.Web.HttpApplication ApplicationInstance { get { return ((System.Web.HttpApplication)(this.Context.ApplicationInstance)); } } protected System.Web.Profile.DefaultProfile Profile { get { return ((System.Web.Profile.DefaultProfile)(this.Context.Profile)); } } } namespace ASP { using System; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Text; using System.Text.RegularExpressions; using System.Web; using System.Web.Caching; using System.Web.SessionState; using System.Web.Security; using System.Web.Profile; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using AjaxControlToolkit; using ComponentArt.Web.UI; public class default_aspx : global::_Default, System.Web.IHttpHandler { private static bool __initialized = false; private static object __fileDependencies = null; private static int __autoHandlers; public default_aspx() { string[] dependencies; ((global::System.Web.UI.Page)(this)).AppRelativeVirtualPath = "~/Default.aspx"; if ((global::ASP.default_aspx.__initialized == false)) { dependencies = new string[2]; dependencies[0] = "~/Default.aspx"; dependencies[1] = "~/Default.aspx.cs"; global::ASP.default_aspx.__fileDependencies = this.GetWrappedFileDependencies(dependencies); global::ASP.default_aspx.__initialized = true; } } [System.Obsolete()] protected override int AutoHandlers { get { return ASP.default_aspx.__autoHandlers; } set { ASP.default_aspx.__autoHandlers = value; } } private void __BuildControlTree(default_aspx __ctrl) { #line 1 "C:\Development\ClamTrack\Website\Default.aspx" this.InitializeCulture(); #line default System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl)); #line 1 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n\n\n")); #line default #line 1 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl__bctrl_1(); #line default #line 1 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(this._bctrl_1); #line default #line 1 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n\n")); #line default #line 1 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl_form1(); #line default #line 1 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(this.form1); #line default #line 1 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n\n\n")); #line default } private System.Web.UI.Control __BuildControl__bctrl_1() { System.Web.UI.HtmlControls.HtmlHead __ctrl; #line 10 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl = new System.Web.UI.HtmlControls.HtmlHead("head"); #line default #line 10 "C:\Development\ClamTrack\Website\Default.aspx" this._bctrl_1 = __ctrl; #line default #line 10 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl__bctrl_2(); #line default System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl)); #line 10 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(this._bctrl_2); #line default #line 10 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl__bctrl_3(); #line default #line 10 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(this._bctrl_3); #line default #line 10 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n\n")); #line default return __ctrl; } private System.Web.UI.Control __BuildControl__bctrl_2() { System.Web.UI.HtmlControls.HtmlTitle __ctrl; #line 11 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl = new System.Web.UI.HtmlControls.HtmlTitle(); #line default #line 11 "C:\Development\ClamTrack\Website\Default.aspx" this._bctrl_2 = __ctrl; #line default System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl)); #line 11 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("Welcome")); #line default return __ctrl; } private System.Web.UI.Control __BuildControl__bctrl_3() { System.Web.UI.HtmlControls.HtmlLink __ctrl; #line 12 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl = new System.Web.UI.HtmlControls.HtmlLink(); #line default #line 12 "C:\Development\ClamTrack\Website\Default.aspx" this._bctrl_3 = __ctrl; #line default #line 12 "C:\Development\ClamTrack\Website\Default.aspx" ((System.Web.UI.IAttributeAccessor)(__ctrl)).SetAttribute("rel", "stylesheet"); #line default #line 12 "C:\Development\ClamTrack\Website\Default.aspx" ((System.Web.UI.IAttributeAccessor)(__ctrl)).SetAttribute("type", "text/css"); #line default #line 12 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.Href = "styles/WelcomeStyle.css"; #line default return __ctrl; } private System.Web.UI.Control __BuildControl_form1() { System.Web.UI.HtmlControls.HtmlForm __ctrl; #line 36 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl = new System.Web.UI.HtmlControls.HtmlForm(); #line default #line 36 "C:\Development\ClamTrack\Website\Default.aspx" this.form1 = __ctrl; #line default #line 36 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ID = "form1"; #line default System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl)); #line 36 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n \n \n \n ")); #line default #line 36 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl_dlgError(); #line default #line 36 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(this.dlgError); #line default #line 36 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n \n

\n ")); #line default #line 36 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl_dlgSignIn(); #line default #line 36 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(this.dlgSignIn); #line default return __ctrl; } private System.Web.UI.Control __BuildControl_dlgError() { ComponentArt.Web.UI.Dialog __ctrl; #line 40 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl = new ComponentArt.Web.UI.Dialog(); #line default #line 40 "C:\Development\ClamTrack\Website\Default.aspx" this.dlgError = __ctrl; #line default __ctrl.ApplyStyleSheetSkin(this); #line 40 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ID = "dlgError"; #line default #line 40 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.Alignment = ((ComponentArt.Web.UI.DialogAlignType)(ComponentArt.Web.UI.DialogAlignType.MiddleCentre)); #line default #line 40 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.HeaderCssClass = "DlgHeaderCss"; #line default #line 40 "C:\Development\ClamTrack\Website\Default.aspx" ((System.Web.UI.IAttributeAccessor)(__ctrl)).SetAttribute("style", "top: 213px; left: 0px"); #line default #line 40 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.AllowDrag = true; #line default #line 40 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl__bctrl_4(__ctrl.Header); #line default #line 40 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl__bctrl_5(__ctrl.Content); #line default #line 40 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl__bctrl_6(__ctrl.Footer); #line default return __ctrl; } private void __BuildControl__bctrl_4(ComponentArt.Web.UI.DialogContent __ctrl) { System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl)); #line 44 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n \n \n \n \n \n \n
\n \n \n \n \n
Error
\n
\n ")); #line default } private void __BuildControl__bctrl_5(ComponentArt.Web.UI.DialogContent __ctrl) { System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl)); #line 60 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n \n \n \n \n\n
\n \n
\n \n \n \n \n \n
\n \n Sorry, but in order to access this application, cookies must be enabled.

\n Please enable cookies in your browser and try again.

\n
\n
\n
\n ")); #line default } private void __BuildControl__bctrl_6(ComponentArt.Web.UI.DialogContent __ctrl) { System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl)); #line 82 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n \n \n \n \n \n \n
\n ")); #line default #line 82 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl_btnOK(); #line default #line 82 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(this.btnOK); #line default #line 82 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n
\n ")); #line default } private System.Web.UI.Control __BuildControl_btnOK() { System.Web.UI.WebControls.ImageButton __ctrl; #line 88 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl = new System.Web.UI.WebControls.ImageButton(); #line default #line 88 "C:\Development\ClamTrack\Website\Default.aspx" this.btnOK = __ctrl; #line default __ctrl.ApplyStyleSheetSkin(this); #line 88 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ID = "btnOK"; #line default #line 88 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ImageUrl = "./images/btn_OK.png"; #line default #line 88 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.Height = new System.Web.UI.WebControls.Unit(20, System.Web.UI.WebControls.UnitType.Pixel); #line default #line 88 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.OnClientClick = "CloseDialog();"; #line default return __ctrl; } private System.Web.UI.Control __BuildControl_dlgSignIn() { ComponentArt.Web.UI.Dialog __ctrl; #line 98 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl = new ComponentArt.Web.UI.Dialog(); #line default #line 98 "C:\Development\ClamTrack\Website\Default.aspx" this.dlgSignIn = __ctrl; #line default __ctrl.ApplyStyleSheetSkin(this); #line 98 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ID = "dlgSignIn"; #line default #line 98 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.Alignment = ((ComponentArt.Web.UI.DialogAlignType)(ComponentArt.Web.UI.DialogAlignType.MiddleCentre)); #line default #line 98 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.HeaderCssClass = "DlgHeaderCss"; #line default #line 98 "C:\Development\ClamTrack\Website\Default.aspx" ((System.Web.UI.IAttributeAccessor)(__ctrl)).SetAttribute("style", "top: 145px; left: 485px"); #line default #line 98 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.AllowDrag = true; #line default #line 98 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl__bctrl_7(__ctrl.Header); #line default #line 98 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl__bctrl_8(__ctrl.Content); #line default #line 98 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl__bctrl_9(__ctrl.Footer); #line default return __ctrl; } private void __BuildControl__bctrl_7(ComponentArt.Web.UI.DialogContent __ctrl) { System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl)); #line 102 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n \n \n \n \n \n \n
\n \n \n \n \n \n \n \n
\n \n Sign in...\n
\n
\n
\n ")); #line default } private void __BuildControl__bctrl_8(ComponentArt.Web.UI.DialogContent __ctrl) { System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl)); #line 128 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n \n \n \n \n \n
\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n Email:\n ")); #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl_txtEmail(); #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(this.txtEmail); #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("
\n \n ")); #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl_fvEmail(); #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(this.fvEmail); #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("
\n Password:\n ")); #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl_txtPassword(); #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(this.txtPassword); #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("
\n \n ")); #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl_RequiredFieldValidator1(); #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(this.RequiredFieldValidator1); #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("
\n
\n ")); #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl_lblError(); #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(this.lblError); #line default #line 128 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n
\n
\n ")); #line default } private System.Web.UI.Control __BuildControl_txtEmail() { System.Web.UI.WebControls.TextBox __ctrl; #line 139 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl = new System.Web.UI.WebControls.TextBox(); #line default #line 139 "C:\Development\ClamTrack\Website\Default.aspx" this.txtEmail = __ctrl; #line default __ctrl.ApplyStyleSheetSkin(this); #line 139 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ID = "txtEmail"; #line default #line 139 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.BorderColor = System.Drawing.Color.FromArgb(255, 101, 145, 205); #line default #line 139 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.Width = new System.Web.UI.WebControls.Unit(155, System.Web.UI.WebControls.UnitType.Pixel); #line default #line 139 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.MaxLength = 250; #line default #line 139 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.BorderStyle = ((System.Web.UI.WebControls.BorderStyle)(System.Web.UI.WebControls.BorderStyle.Solid)); #line default #line 139 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.BorderWidth = new System.Web.UI.WebControls.Unit(1, System.Web.UI.WebControls.UnitType.Pixel); #line default return __ctrl; } private System.Web.UI.Control __BuildControl_fvEmail() { System.Web.UI.WebControls.RequiredFieldValidator __ctrl; #line 146 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl = new System.Web.UI.WebControls.RequiredFieldValidator(); #line default #line 146 "C:\Development\ClamTrack\Website\Default.aspx" this.fvEmail = __ctrl; #line default __ctrl.ApplyStyleSheetSkin(this); #line 146 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ID = "fvEmail"; #line default #line 146 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ErrorMessage = "Please enter your email address."; #line default #line 146 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ForeColor = System.Drawing.Color.Red; #line default #line 146 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ControlToValidate = "txtEmail"; #line default #line 146 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.Font.Size = new System.Web.UI.WebControls.FontUnit(new System.Web.UI.WebControls.Unit(11, System.Web.UI.WebControls.UnitType.Pixel)); #line default return __ctrl; } private System.Web.UI.Control __BuildControl_txtPassword() { System.Web.UI.WebControls.TextBox __ctrl; #line 152 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl = new System.Web.UI.WebControls.TextBox(); #line default #line 152 "C:\Development\ClamTrack\Website\Default.aspx" this.txtPassword = __ctrl; #line default __ctrl.ApplyStyleSheetSkin(this); #line 152 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ID = "txtPassword"; #line default #line 152 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.BorderColor = System.Drawing.Color.FromArgb(255, 101, 145, 205); #line default #line 152 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.Width = new System.Web.UI.WebControls.Unit(155, System.Web.UI.WebControls.UnitType.Pixel); #line default #line 152 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.MaxLength = 20; #line default #line 152 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.BorderStyle = ((System.Web.UI.WebControls.BorderStyle)(System.Web.UI.WebControls.BorderStyle.Solid)); #line default #line 152 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.BorderWidth = new System.Web.UI.WebControls.Unit(1, System.Web.UI.WebControls.UnitType.Pixel); #line default #line 152 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.TextMode = ((System.Web.UI.WebControls.TextBoxMode)(System.Web.UI.WebControls.TextBoxMode.Password)); #line default return __ctrl; } private System.Web.UI.Control __BuildControl_RequiredFieldValidator1() { System.Web.UI.WebControls.RequiredFieldValidator __ctrl; #line 159 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl = new System.Web.UI.WebControls.RequiredFieldValidator(); #line default #line 159 "C:\Development\ClamTrack\Website\Default.aspx" this.RequiredFieldValidator1 = __ctrl; #line default __ctrl.ApplyStyleSheetSkin(this); #line 159 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ID = "RequiredFieldValidator1"; #line default #line 159 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ErrorMessage = "Please enter your password."; #line default #line 159 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ForeColor = System.Drawing.Color.Red; #line default #line 159 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ControlToValidate = "txtPassword"; #line default #line 159 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.Font.Size = new System.Web.UI.WebControls.FontUnit(new System.Web.UI.WebControls.Unit(11, System.Web.UI.WebControls.UnitType.Pixel)); #line default return __ctrl; } private System.Web.UI.Control __BuildControl_lblError() { System.Web.UI.WebControls.Label __ctrl; #line 164 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl = new System.Web.UI.WebControls.Label(); #line default #line 164 "C:\Development\ClamTrack\Website\Default.aspx" this.lblError = __ctrl; #line default __ctrl.ApplyStyleSheetSkin(this); #line 164 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ID = "lblError"; #line default #line 164 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.Font.Size = new System.Web.UI.WebControls.FontUnit(new System.Web.UI.WebControls.Unit(11, System.Web.UI.WebControls.UnitType.Pixel)); #line default #line 164 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.Text = "The email / password combination you entered is invalid.
Please re-enter your email and password again."; #line default #line 164 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.Visible = false; #line default #line 164 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ForeColor = System.Drawing.Color.Red; #line default #line 164 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.BorderWidth = new System.Web.UI.WebControls.Unit(0, System.Web.UI.WebControls.UnitType.Pixel); #line default return __ctrl; } private void __BuildControl__bctrl_9(ComponentArt.Web.UI.DialogContent __ctrl) { System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl)); #line 173 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n \n \n \n \n \n \n
\n ")); #line default #line 173 "C:\Development\ClamTrack\Website\Default.aspx" this.__BuildControl_btnLogin(); #line default #line 173 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(this.btnLogin); #line default #line 173 "C:\Development\ClamTrack\Website\Default.aspx" __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n
\n ")); #line default } private System.Web.UI.Control __BuildControl_btnLogin() { System.Web.UI.WebControls.ImageButton __ctrl; #line 179 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl = new System.Web.UI.WebControls.ImageButton(); #line default #line 179 "C:\Development\ClamTrack\Website\Default.aspx" this.btnLogin = __ctrl; #line default __ctrl.ApplyStyleSheetSkin(this); #line 179 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ID = "btnLogin"; #line default #line 179 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.ImageUrl = "./images/btn_Next.png"; #line default #line 179 "C:\Development\ClamTrack\Website\Default.aspx" __ctrl.Height = new System.Web.UI.WebControls.Unit(20, System.Web.UI.WebControls.UnitType.Pixel); #line default __ctrl.Click += new System.Web.UI.ImageClickEventHandler(this.btnLogin_Click); return __ctrl; } protected override void FrameworkInitialize() { base.FrameworkInitialize(); this.__BuildControlTree(this); this.AddWrappedFileDependencies(global::ASP.default_aspx.__fileDependencies); this.Request.ValidateInput(); } public override int GetTypeHashCode() { return 1265973045; } } } -------------- next part -------------- _______________________________________________ Mono-devel-list mailing list Mono-devel-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list From billholmes54 at gmail.com Tue Sep 2 17:20:29 2008 From: billholmes54 at gmail.com (Bill Holmes) Date: Tue, 2 Sep 2008 17:20:29 -0400 Subject: [Mono-dev] [PATCH] StringToHGlobalAnsi and Uni Message-ID: <37c5788d0809021420g4c24c48btd66b09155b238a2c@mail.gmail.com> Hello All, The following patch was created from the 2.0 branch. I would like to commit it to the branch as well as the trunk. Basically on Windows we need to allocate the memory using GlobalAlloc for these calls. I have plans to revisit ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalAnsi to avoid allocating memory twice. Similar to what was attempted in mono_string_new in object.c. To do this we need to implement some more e-glib methods so we have to live with the double alloc for 2.0. -bill -------------- next part -------------- A non-text attachment was scrubbed... Name: hglobal_08_09_02.diff Type: application/octet-stream Size: 1220 bytes Desc: not available Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080902/5e159b0e/attachment.obj From vargaz at gmail.com Tue Sep 2 17:26:28 2008 From: vargaz at gmail.com (Zoltan Varga) Date: Tue, 2 Sep 2008 23:26:28 +0200 Subject: [Mono-dev] [PATCH] StringToHGlobalAnsi and Uni In-Reply-To: <37c5788d0809021420g4c24c48btd66b09155b238a2c@mail.gmail.com> References: <37c5788d0809021420g4c24c48btd66b09155b238a2c@mail.gmail.com> Message-ID: <295e750a0809021426q7a293212n8e090dac98fdecb@mail.gmail.com> Look ok. Zoltan 2008/9/2 Bill Holmes : > Hello All, > > The following patch was created from the 2.0 branch. I would like to > commit it to the branch as well as the trunk. > > Basically on Windows we need to allocate the memory using GlobalAlloc > for these calls. > > I have plans to revisit > ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalAnsi > to avoid allocating memory twice. Similar to what was attempted in > mono_string_new in object.c. To do this we need to implement some > more e-glib methods so we have to live with the double alloc for 2.0. > > -bill > > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > > From dieuzorro at hotmail.com Tue Sep 2 12:25:43 2008 From: dieuzorro at hotmail.com (Dieuzorro) Date: Tue, 2 Sep 2008 09:25:43 -0700 (PDT) Subject: [Mono-dev] Bug In Mono FTP System.Net.FtpWebRequest Message-ID: <19272346.post@talk.nabble.com> The code below operates under windwos but not Linux file is created, but it is empty. I think that the bug is in 'Credentials' because I can download files on server without authentication(Login/Password). Sorry for my English I am french Sub dl(ByVal remoteFile As String, ByVal localFile As String, ByVal username As String, ByVal password As String) '1. Create a request: must be in ftp://hostname format, ' not just ftp.myhost.com Dim URI As String = remoteFile Dim ftp As System.Net.FtpWebRequest = CType(FtpWebRequest.Create(URI), FtpWebRequest) '3. Settings and action ftp.KeepAlive = False 'we want a binary transfer, not textual data ftp.UseBinary = True 'Define the action required (in this case, download a file) ftp.Method = System.Net.WebRequestMethods.Ftp.DownloadFile '2. Set credentials if not (username = "" andalso password = "") then ftp.Credentials = New NetworkCredential( username, password) end if '4. If we were using a method that uploads data e.g. UploadFile ' we would open the ftp.GetRequestStream here an send the data '5. Get the response to the Ftp request and the associated stream Using response As System.Net.FtpWebResponse = CType(ftp.GetResponse, System.Net.FtpWebResponse) Using responseStream As IO.Stream = response.GetResponseStream 'loop to read & write to file Using fs As New IO.FileStream(localFile, IO.FileMode.Create) Dim buffer(2047) As Byte Dim read As Integer = 0 Do read = responseStream.Read(buffer, 0, buffer.Length) fs.Write(buffer, 0, read) Loop Until read = 0 'see Note(1) responseStream.Close() fs.Flush() fs.Close() End Using End Sub End Using responseStream.Close() End Using response.Close() End Using End Sub -- View this message in context: http://www.nabble.com/Bug-In-Mono-FTP-System.Net.FtpWebRequest-tp19272346p19272346.html Sent from the Mono - Dev mailing list archive at Nabble.com. From apenwarr at gmail.com Tue Sep 2 23:42:00 2008 From: apenwarr at gmail.com (Avery Pennarun) Date: Tue, 2 Sep 2008 23:42:00 -0400 Subject: [Mono-dev] System.Unix.Native.Syscall.fork is commented out Message-ID: <32541b130809022042n497ada2asa0038095637d2794@mail.gmail.com> Hi all, I'm attempting to write a simple daemon in mono that should background itself after starting correctly. Essentially, it should fork() and then the parent should exit(0) while the child process continues. I've gotten this working with the (apparently now obsolete) Mono.Posix.Syscall class. However, in the newer Mono.Unix.Native.Syscall, we find this: #if false // fork(2) // pid_t fork(void); [DllImport (LIBC, SetLastError=true)] [Obsolete ("DO NOT directly call fork(2); it bypasses essential "shutdown code.\nUse System.Diagnostics.Process private static extern int fork (); // vfork(2) // pid_t vfork(void); [DllImport (LIBC, SetLastError=true)] [Obsolete ("DO NOT directly call vfork(2); it bypasses essential "shutdown code.\nUse System.Diagnostics.Process private static extern int vfork (); #endif Apparently, fork() was originally marked obsolete, then commented out completely. However, I don't understand the rationale here. It seems to me that fork() has nothing to do with shutdown, and thus cannot possibly bypass "essential shutdown code." On the other hand, Syscall.execve is *not* obsolete and *does* bypass shutdown code. Furthermore, the recommended System.Diagnostics.Process class provides no equivalent to fork(), so I'm not sure why it's being recommended. What's the rationale here? Thanks, Avery From bojanr at brandeis.edu Wed Sep 3 00:16:29 2008 From: bojanr at brandeis.edu (Bojan Rajkovic) Date: Wed, 3 Sep 2008 00:16:29 -0400 (EDT) Subject: [Mono-dev] System.Unix.Native.Syscall.fork is commented out In-Reply-To: <32541b130809022042n497ada2asa0038095637d2794@mail.gmail.com> Message-ID: <249199920.524341220415389431.JavaMail.root@zimbra-store-2.unet.brandeis.edu> > Hi all, > > I'm attempting to write a simple daemon in mono that should > background > itself after starting correctly. Essentially, it should fork() and > then the parent should exit(0) while the child process continues. > > I've gotten this working with the (apparently now obsolete) > Mono.Posix.Syscall class. However, in the newer > Mono.Unix.Native.Syscall, we find this: > > #if false > // fork(2) > // pid_t fork(void); > [DllImport (LIBC, SetLastError=true)] > [Obsolete ("DO NOT directly call fork(2); it bypasses > essential > "shutdown code.\nUse > System.Diagnostics.Process > private static extern int fork (); > > // vfork(2) > // pid_t vfork(void); > [DllImport (LIBC, SetLastError=true)] > [Obsolete ("DO NOT directly call vfork(2); it bypasses > essential > "shutdown code.\nUse > System.Diagnostics.Process > private static extern int vfork (); > #endif > > Apparently, fork() was originally marked obsolete, then commented out > completely. > > However, I don't understand the rationale here. It seems to me that > fork() has nothing to do with shutdown, and thus cannot possibly > bypass "essential shutdown code." On the other hand, Syscall.execve > is *not* obsolete and *does* bypass shutdown code. Furthermore, the > recommended System.Diagnostics.Process class provides no equivalent > to > fork(), so I'm not sure why it's being recommended. > > What's the rationale here? > > Thanks, > > Avery Hi Avery, I believe you can use mono-service and the usual Windows service stuff in the ServiceProcess assembly. Check http://www.go-mono.com/docs/index.aspx?link=man%3Amono-service(1) for more info, and hopefully someone will be able to give more detail than I have. Sincerely, Bojan From apenwarr at gmail.com Wed Sep 3 01:02:33 2008 From: apenwarr at gmail.com (Avery Pennarun) Date: Wed, 3 Sep 2008 01:02:33 -0400 Subject: [Mono-dev] System.Unix.Native.Syscall.fork is commented out In-Reply-To: <249199920.524341220415389431.JavaMail.root@zimbra-store-2.unet.brandeis.edu> References: <32541b130809022042n497ada2asa0038095637d2794@mail.gmail.com> <249199920.524341220415389431.JavaMail.root@zimbra-store-2.unet.brandeis.edu> Message-ID: <32541b130809022202k57380f02od9aec818f7064267@mail.gmail.com> On Wed, Sep 3, 2008 at 12:16 AM, Bojan Rajkovic wrote: >> I'm attempting to write a simple daemon in mono that should >> background >> itself after starting correctly. Essentially, it should fork() and >> then the parent should exit(0) while the child process continues. > > I believe you can use mono-service and the usual Windows service stuff in the > ServiceProcess assembly. Check http://www.go-mono.com/docs/index.aspx?link=man%3Amono-service(1) > for more info, and hopefully someone will be able to give more detail than > I have. Well, yes, I've used mono-service a bit, but it seems a bit heavyweight and weird, mostly because Windows's service API is heavyweight and weird. Sometimes you just want to fork. What I'm trying to do here specifically is to start a program, have it open its listening socket, then fork into the background so the parent process can launch *another* process with the certainty that the listening socket is already open. Then I want to be able to kill the process (and all its potential children) safely afterwards. Basically it's for a unit test, so multiple users might be starting/stopping these processes on the same machine simultaneously. It doesn't seem like the heavyweight MS service API is really cut out for this kind of work. Thanks for the link, though. I suppose mono-service is usually the "right" way to fork into the background. Have fun, Avery From robertj at gmx.net Wed Sep 3 04:33:57 2008 From: robertj at gmx.net (Robert Jordan) Date: Wed, 03 Sep 2008 10:33:57 +0200 Subject: [Mono-dev] System.Unix.Native.Syscall.fork is commented out In-Reply-To: <32541b130809022042n497ada2asa0038095637d2794@mail.gmail.com> References: <32541b130809022042n497ada2asa0038095637d2794@mail.gmail.com> Message-ID: Avery Pennarun wrote: > However, I don't understand the rationale here. It seems to me that > fork() has nothing to do with shutdown, and thus cannot possibly > bypass "essential shutdown code." On the other hand, Syscall.execve > is *not* obsolete and *does* bypass shutdown code. Furthermore, the > recommended System.Diagnostics.Process class provides no equivalent to > fork(), so I'm not sure why it's being recommended. > > What's the rationale here? If a child is calling exit() upon termination, parent's handles will be closed as well. This will most likely break parts of the runtime (io-layer, etc.). execve is different because it simply replace the process, thus it can `only' break code that depends upon a clean shutdown. Robert From safknw at gmail.com Wed Sep 3 07:58:25 2008 From: safknw at gmail.com (Sharique uddin Ahmed Farooqui) Date: Wed, 3 Sep 2008 17:28:25 +0530 Subject: [Mono-dev] WinForms or GTK# Forms In-Reply-To: <84776a970809020851h532c0500n6671d2ca5ffd6475@mail.gmail.com> References: <84776a970809020451p14ae0610k439237bc43e60eca@mail.gmail.com> <4da6cf8d0809020719t26b167d2lb7f6e62493445d88@mail.gmail.com> <84776a970809020851h532c0500n6671d2ca5ffd6475@mail.gmail.com> Message-ID: <4da6cf8d0809030458w43963536gb39961e6e7a7a47e@mail.gmail.com> On Tue, Sep 2, 2008 at 9:21 PM, Petit Eric wrote: > 2008/9/2 Sharique uddin Ahmed Farooqui : >> On Tue, Sep 2, 2008 at 5:21 PM, Petit Eric wrote: >>> Hi, >>> Is there an existing tool who convert MS Winforms .Designer.cs class >>> files to Gtk# UI/designer files ? >> AFAIK, there is no such tool. >> Mono 2.0 support winforms 2.0 so u don't need to port to GTk#. > haha , this is the third soft i write by using MS VC to create the > object of the winforms and MD under nix, to write code, but no success > and systematicaly, "why don't use native, GTK", this question take > sense, sur but i can't use GTK# designer and can't complety rewrite > all, just for the UI. > As example, my last soft MonoOSC run fine under linux, i annouce it on > gnome-anouce mailling list, response from moderator/admin ,something > like "Since it use winforms, it as nothing to do with GTK!". Since you have made MonoOSC, than my suggestion that you keep improving that using existing Gui than thinking abt changing gui. > > Perhap's my question should be better with, is there a GTK skin for winforms :-) If u get answer than let me know. I'm also interested in it. >> >>> >>> -- >>> >>> Cordially. >>> >>> Small Eric Quotations of the days: >>> --------------------------------------------------------------------------- >>> If one day one reproaches you that your work is not a work of >>> professional, say you that: >>> Amateurs built the arch of Noah, and professionals the Titanic. >>> --------------------------------------------------------------------------- >>> >>> Few people are done for independence, it is the privilege of the powerful ones. >>> --------------------------------------------------------------------------- >>> >>> No key was wounded during the drafting of this message. >>> _______________________________________________ >>> Mono-devel-list mailing list >>> Mono-devel-list at lists.ximian.com >>> http://lists.ximian.com/mailman/listinfo/mono-devel-list >>> >> >> >> >> -- >> Sharique uddin Ahmed Farooqui >> (C++/C# Developer, IT Consultant) >> http://safknw.blogspot.com/ >> "Peace" is the Ultimate thing we want. >> > > > > -- > > Cordially. > > Small Eric Quotations of the days: > --------------------------------------------------------------------------- > If one day one reproaches you that your work is not a work of > professional, say you that: > Amateurs built the arch of Noah, and professionals the Titanic. > --------------------------------------------------------------------------- > > Few people are done for independence, it is the privilege of the powerful ones. > --------------------------------------------------------------------------- > > No key was wounded during the drafting of this message. > -- Sharique uddin Ahmed Farooqui (C++/C# Developer, IT Consultant) http://safknw.blogspot.com/ "Peace" is the Ultimate thing we want. From dieuzorro at hotmail.com Wed Sep 3 08:23:59 2008 From: dieuzorro at hotmail.com (Dieuzorro) Date: Wed, 3 Sep 2008 05:23:59 -0700 (PDT) Subject: [Mono-dev] Bug In Mono FTP System.Net.FtpWebRequest In-Reply-To: <19272346.post@talk.nabble.com> References: <19272346.post@talk.nabble.com> Message-ID: <19288162.post@talk.nabble.com> With my code I was able to download a file on the server "ftp://ftp-developpez.com/konflor/Latex/formation/FormationLatex.pdf" anonymously. But on my local server when I want to download a file with a loggin and a password, my stream "ResponceStream" is empty and there is no error. On Windows everything works. Have you got an exemple on mono which connect on an private ftp server? But my code works on windows and ftp server! Thanks Dieuzorro wrote: > > > > The code below operates under windwos but not Linux file is created, > but it is empty. > > I think that the bug is in 'Credentials' because I can download files > on server without authentication(Login/Password). > > Sorry for my English I am french > > > > > Sub dl(ByVal remoteFile As String, ByVal localFile As String, ByVal > username As String, ByVal password As String) > > > > '1. Create a request: must be in ftp://hostname format, > > ' not just ftp.myhost.com > > Dim URI As String = remoteFile > > Dim ftp As System.Net.FtpWebRequest = > CType(FtpWebRequest.Create(URI), FtpWebRequest) > > > > > '3. Settings and action > > ftp.KeepAlive = False > > 'we want a binary transfer, not textual data > > ftp.UseBinary = True > > 'Define the action required (in this case, download a file) > > ftp.Method = System.Net.WebRequestMethods.Ftp.DownloadFile > > > '2. Set credentials > if not (username = "" andalso password = "") then > > ftp.Credentials = New NetworkCredential( username, password) > end if > > > '4. If we were using a method that uploads data e.g. UploadFile > > ' we would open the ftp.GetRequestStream here an send the data > > > > '5. Get the response to the Ftp request and the associated stream > > Using response As System.Net.FtpWebResponse = > CType(ftp.GetResponse, System.Net.FtpWebResponse) > > Using responseStream As IO.Stream = response.GetResponseStream > > 'loop to read & write to file > > Using fs As New IO.FileStream(localFile, > IO.FileMode.Create) > > Dim buffer(2047) As Byte > > Dim read As Integer = 0 > > Do > > read = responseStream.Read(buffer, 0, > buffer.Length) > > fs.Write(buffer, 0, read) > > Loop Until read = 0 'see Note(1) > > responseStream.Close() > > fs.Flush() > > fs.Close() > > End Using > > > > End Sub End Using > > responseStream.Close() > > End Using > > response.Close() > > End Using > > > > End Sub > > -- View this message in context: http://www.nabble.com/Bug-In-Mono-FTP-System.Net.FtpWebRequest-tp19272346p19288162.html Sent from the Mono - Dev mailing list archive at Nabble.com. From jonpryor at vt.edu Wed Sep 3 09:30:26 2008 From: jonpryor at vt.edu (Jonathan Pryor) Date: Wed, 03 Sep 2008 09:30:26 -0400 Subject: [Mono-dev] System.Unix.Native.Syscall.fork is commented out In-Reply-To: References: <32541b130809022042n497ada2asa0038095637d2794@mail.gmail.com> Message-ID: <1220448626.29752.24.camel@lina.magi.jprl.com> On Wed, 2008-09-03 at 10:33 +0200, Robert Jordan wrote: > Avery Pennarun wrote: > > However, I don't understand the rationale here. It seems to me that > > fork() has nothing to do with shutdown, and thus cannot possibly > > bypass "essential shutdown code." On the other hand, Syscall.execve > > is *not* obsolete and *does* bypass shutdown code. Furthermore, the > > recommended System.Diagnostics.Process class provides no equivalent to > > fork(), so I'm not sure why it's being recommended. > > > > What's the rationale here? > > If a child is calling exit() upon termination, parent's handles will > be closed as well. This will most likely break parts of the runtime > (io-layer, etc.). > > execve is different because it simply replace the process, thus it > can `only' break code that depends upon a clean shutdown. The other issue with calling fork() is that, to quote an ancient IRC discussion: < lupus> fork is tricky and likely won't work < lupus> anything can happen: the child process is not setup to execute mono code < lupus> an immediate exec may or may not work Alas, I didn't get any further details, but that was enough for me to remove fork() from Syscall: if it can't ever be reliably called, then it shouldn't be callable. My guess is that since Mono is multithreaded, and locks/etc. are required to generate JITed code, it's possible that "during" your fork() call another thread is busy JITing away, holding the JIT lock, and after the fork() call the new process will have only a single thread, and those locks would still be "held" (even though there's no thread holding the locks in the new process), resulting in deadlock when you try to JIT the Syscall.exec() call. This would be Bad, and decidedly non-trivial to debug should this ever happen. - Jon From apenwarr at gmail.com Wed Sep 3 12:23:05 2008 From: apenwarr at gmail.com (Avery Pennarun) Date: Wed, 3 Sep 2008 12:23:05 -0400 Subject: [Mono-dev] System.Unix.Native.Syscall.fork is commented out In-Reply-To: <1220448626.29752.24.camel@lina.magi.jprl.com> References: <32541b130809022042n497ada2asa0038095637d2794@mail.gmail.com> <1220448626.29752.24.camel@lina.magi.jprl.com> Message-ID: <32541b130809030923r4ba30186v18618ea2b07d683d@mail.gmail.com> On Wed, Sep 3, 2008 at 9:30 AM, Jonathan Pryor wrote: > On Wed, 2008-09-03 at 10:33 +0200, Robert Jordan wrote: >> If a child is calling exit() upon termination, parent's handles will >> be closed as well. This will most likely break parts of the runtime >> (io-layer, etc.). >> >> execve is different because it simply replace the process, thus it >> can `only' break code that depends upon a clean shutdown. > > The other issue with calling fork() is that, to quote an ancient IRC > discussion: > > < lupus> fork is tricky and likely won't work > < lupus> anything can happen: the child process is not setup to execute mono code > < lupus> an immediate exec may or may not work > > Alas, I didn't get any further details [...] Hmm, I see the point. From someone's spec for fork() (http://www.opengroup.org/onlinepubs/000095399/functions/fork.html): A process shall be created with a single thread. If a multi-threaded process calls fork(), the new process shall contain a replica of the calling thread and its entire address space, possibly including the states of mutexes and other resources. Consequently, to avoid errors, the child process may only execute async-signal-safe operations until such time as one of the exec functions is called. So, yeah. On the one hand, since fork-then-exec *is* a valid thing to want to do, and execve is available, and execve is almost (thought not quite) entirely useless without being able to also fork(), it seems like maybe fork() should still be available. On the other hand, I wouldn't have read the documentation and found out that my use case wasn't recommended, because I felt I already knew what fork() is supposed to do, so I see your point in removing it :) So my next question then is: is there any way to get mono to *not* use threads unless you explicitly ask it to do so? It seems like just the GC and JIT are threads right now, right? Actually I don't know enough to even describe why the JIT would want to be a thread anyway... An optionally-threadless mono runtime would be a great way to get us one step closer to being able to write real system apps, which sadly must sometimes use fork(). Thanks for clarifying, though. I'll have to find a better alternative. Have fun, Avery From buhochileno at gmail.com Wed Sep 3 14:48:41 2008 From: buhochileno at gmail.com (buhochileno at gmail.com) Date: Wed, 03 Sep 2008 14:48:41 -0400 Subject: [Mono-dev] mono on iPhone In-Reply-To: <1220448626.29752.24.camel@lina.magi.jprl.com> References: <32541b130809022042n497ada2asa0038095637d2794@mail.gmail.com> <1220448626.29752.24.camel@lina.magi.jprl.com> Message-ID: <48BEDC09.9090107@gmail.com> Hi guys: I see a couple of videos on youtube about mono on iphone, I develop with mono/c# app for a couple of years now and my iphone is ready for this!!! (jailbroken), I'm very interesting in develop app for the iphone, but of course don't want to buy a OSx PC to install the iphone-sdk, etc.. so, any tips, sugestions, to build/compile mono for iphone? (i can write a wiki or something if i have general instructions, i have some experience compiling mono...) thanks in advance... Mauricio From aras at unity3d.com Wed Sep 3 15:03:59 2008 From: aras at unity3d.com (Aras Pranckevicius) Date: Wed, 3 Sep 2008 22:03:59 +0300 Subject: [Mono-dev] mono on iPhone In-Reply-To: <48BEDC09.9090107@gmail.com> References: <32541b130809022042n497ada2asa0038095637d2794@mail.gmail.com> <1220448626.29752.24.camel@lina.magi.jprl.com> <48BEDC09.9090107@gmail.com> Message-ID: > I see a couple of videos on youtube about mono on iphone, I develop > with mono/c# app for a couple of years now Mono was easy to get working on iPhone in early betas of the SDK. Starting with some beta, it's hard to get it working due to legal and technical reasons (before that, it was hard to get it working only because of legal reasons). Basically, no runtime code generation (what JIT is all about) is allowed on iPhone; both legally and technically. > iphone, but of course don't want to buy a OSx PC to install the > iphone-sdk, etc.. so, any tips, sugestions, to build/compile mono for > iphone? It's unofficial, unsupported, might not work and could be illegal, but there are ways to get OS X running on regular PC (google for Hackintosh). That said, getting Mono to run on iPhone is still a challenge. -- Aras Pranckevi?ius work: http://unity3d.com home: http://aras-p.info From monoman at gmail.com Thu Sep 4 10:11:10 2008 From: monoman at gmail.com (Rafael Teixeira) Date: Thu, 4 Sep 2008 11:11:10 -0300 Subject: [Mono-dev] Bug In Mono FTP System.Net.FtpWebRequest In-Reply-To: <19288162.post@talk.nabble.com> References: <19272346.post@talk.nabble.com> <19288162.post@talk.nabble.com> Message-ID: Check that the FTP server isn't forcing Windows authentication, which isn't supported by Mono, you need a plain FTP server. MS IIS doesn't behave as a plain FTP server with its default configuration, AFAIK. On Wed, Sep 3, 2008 at 9:23 AM, Dieuzorro wrote: > > With my code I was able to download a file on the server > "ftp://ftp-developpez.com/konflor/Latex/formation/FormationLatex.pdf" > anonymously. But on my local server when I want to download a file with a > loggin and a password, my stream "ResponceStream" is empty and there is no > error. On Windows everything works. > > Have you got an exemple on mono which connect on an private ftp > server? But my code works on windows and ftp server! > > Thanks > > > > Dieuzorro wrote: > > > > > > > > The code below operates under windwos but not Linux file is created, > > but it is empty. > > > > I think that the bug is in 'Credentials' because I can download files > > on server without authentication(Login/Password). > > > > Sorry for my English I am french > > > > > > > > > > Sub dl(ByVal remoteFile As String, ByVal localFile As String, ByVal > > username As String, ByVal password As String) > > > > > > > > '1. Create a request: must be in ftp://hostname format, > > > > ' not just ftp.myhost.com > > > > Dim URI As String = remoteFile > > > > Dim ftp As System.Net.FtpWebRequest = > > CType(FtpWebRequest.Create(URI), FtpWebRequest) > > > > > > > > > > '3. Settings and action > > > > ftp.KeepAlive = False > > > > 'we want a binary transfer, not textual data > > > > ftp.UseBinary = True > > > > 'Define the action required (in this case, download a file) > > > > ftp.Method = System.Net.WebRequestMethods.Ftp.DownloadFile > > > > > > '2. Set credentials > > if not (username = "" andalso password = "") then > > > > ftp.Credentials = New NetworkCredential( username, > password) > > end if > > > > > > '4. If we were using a method that uploads data e.g. UploadFile > > > > ' we would open the ftp.GetRequestStream here an send the data > > > > > > > > '5. Get the response to the Ftp request and the associated stream > > > > Using response As System.Net.FtpWebResponse = > > CType(ftp.GetResponse, System.Net.FtpWebResponse) > > > > Using responseStream As IO.Stream = > response.GetResponseStream > > > > 'loop to read & write to file > > > > Using fs As New IO.FileStream(localFile, > > IO.FileMode.Create) > > > > Dim buffer(2047) As Byte > > > > Dim read As Integer = 0 > > > > Do > > > > read = responseStream.Read(buffer, 0, > > buffer.Length) > > > > fs.Write(buffer, 0, read) > > > > Loop Until read = 0 'see Note(1) > > > > responseStream.Close() > > > > fs.Flush() > > > > fs.Close() > > > > End Using > > > > > > > > End Sub End Using > > > > responseStream.Close() > > > > End Using > > > > response.Close() > > > > End Using > > > > > > > > End Sub > > > > > > -- > View this message in context: > http://www.nabble.com/Bug-In-Mono-FTP-System.Net.FtpWebRequest-tp19272346p19288162.html > Sent from the Mono - Dev mailing list archive at Nabble.com. > > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > -- Rafael "Monoman" Teixeira --------------------------------------- "I myself am made entirely of flaws, stitched together with good intentions." Augusten Burroughs -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080904/530526b6/attachment-0001.html From dieuzorro at hotmail.com Thu Sep 4 10:19:36 2008 From: dieuzorro at hotmail.com (Dieuzorro) Date: Thu, 4 Sep 2008 07:19:36 -0700 (PDT) Subject: [Mono-dev] Bug In Mono FTP System.Net.FtpWebRequest In-Reply-To: <19272346.post@talk.nabble.com> References: <19272346.post@talk.nabble.com> Message-ID: <19309119.post@talk.nabble.com> My FTP server is not under windows! It is in a central acquisition Brand Instrument Ganthner. Solution that I have currently is through a socket with whom I send commands! -- View this message in context: http://www.nabble.com/Bug-In-Mono-FTP-System.Net.FtpWebRequest-tp19272346p19309119.html Sent from the Mono - Dev mailing list archive at Nabble.com. From calberto.cortez at gmail.com Thu Sep 4 10:27:16 2008 From: calberto.cortez at gmail.com (Carlos Alberto Cortez) Date: Thu, 04 Sep 2008 09:27:16 -0500 Subject: [Mono-dev] Bug In Mono FTP System.Net.FtpWebRequest In-Reply-To: <19288162.post@talk.nabble.com> References: <19272346.post@talk.nabble.com> <19288162.post@talk.nabble.com> Message-ID: <1220538437.6877.8.camel@dhcp31.suse.cz> This is mostly an eror. Please fill a bug for it. See http://mono-project.com/Bugs Carlos. El mi?, 03-09-2008 a las 05:23 -0700, Dieuzorro escribi?: > With my code I was able to download a file on the server > "ftp://ftp-developpez.com/konflor/Latex/formation/FormationLatex.pdf" > anonymously. But on my local server when I want to download a file with a > loggin and a password, my stream "ResponceStream" is empty and there is no > error. On Windows everything works. > > Have you got an exemple on mono which connect on an private ftp > server? But my code works on windows and ftp server! > > Thanks > > > > Dieuzorro wrote: > > > > > > > > The code below operates under windwos but not Linux file is created, > > but it is empty. > > > > I think that the bug is in 'Credentials' because I can download files > > on server without authentication(Login/Password). > > > > Sorry for my English I am french > > > > > > > > > > Sub dl(ByVal remoteFile As String, ByVal localFile As String, ByVal > > username As String, ByVal password As String) > > > > > > > > '1. Create a request: must be in ftp://hostname format, > > > > ' not just ftp.myhost.com > > > > Dim URI As String = remoteFile > > > > Dim ftp As System.Net.FtpWebRequest = > > CType(FtpWebRequest.Create(URI), FtpWebRequest) > > > > > > > > > > '3. Settings and action > > > > ftp.KeepAlive = False > > > > 'we want a binary transfer, not textual data > > > > ftp.UseBinary = True > > > > 'Define the action required (in this case, download a file) > > > > ftp.Method = System.Net.WebRequestMethods.Ftp.DownloadFile > > > > > > '2. Set credentials > > if not (username = "" andalso password = "") then > > > > ftp.Credentials = New NetworkCredential( username, password) > > end if > > > > > > '4. If we were using a method that uploads data e.g. UploadFile > > > > ' we would open the ftp.GetRequestStream here an send the data > > > > > > > > '5. Get the response to the Ftp request and the associated stream > > > > Using response As System.Net.FtpWebResponse = > > CType(ftp.GetResponse, System.Net.FtpWebResponse) > > > > Using responseStream As IO.Stream = response.GetResponseStream > > > > 'loop to read & write to file > > > > Using fs As New IO.FileStream(localFile, > > IO.FileMode.Create) > > > > Dim buffer(2047) As Byte > > > > Dim read As Integer = 0 > > > > Do > > > > read = responseStream.Read(buffer, 0, > > buffer.Length) > > > > fs.Write(buffer, 0, read) > > > > Loop Until read = 0 'see Note(1) > > > > responseStream.Close() > > > > fs.Flush() > > > > fs.Close() > > > > End Using > > > > > > > > End Sub End Using > > > > responseStream.Close() > > > > End Using > > > > response.Close() > > > > End Using > > > > > > > > End Sub > > > > > From twiest at novell.com Thu Sep 4 12:50:40 2008 From: twiest at novell.com (Thomas Wiest) Date: Thu, 04 Sep 2008 10:50:40 -0600 Subject: [Mono-dev] Anonymous svn access... Message-ID: <48C011E0.6040901@novell.com> Hey Guys, We recently upgraded anonsvn.mono-project.com and as part of the upgrade we've decided to disable dav_svn access. So, the only ways to access anonsvn now are through svn:// and viewvc. For more information, please see our anonsvn wiki page: http://mono-project.com/AnonSVN Sorry for any inconvenience this may cause, Thomas From ajorgensen at novell.com Thu Sep 4 14:43:59 2008 From: ajorgensen at novell.com (Andrew Jorgensen) Date: Thu, 04 Sep 2008 12:43:59 -0600 Subject: [Mono-dev] Anonymous svn access... Message-ID: <48BFD80F020000400003B82D@lucius.provo.novell.com> It's easy and cheap to switch to svn://, just use svn switch --relocate. I don't have an anonymous checkout to test this on but it should be something like: svn switch --relocate http://anonsvn.mono-project.com/source svn://anonsvn.mono-project.com/source This performs the switch using URL rewriting. It should not muck with any local changes you have. Please see http://svnbook.red-bean.com/en/1.4/svn.ref.svn.c.switch.html for more details. The main rationale for removing dav_svn are security (one less vector) and bandwith / io load. dav_svn is an extremely chatty protocol. In our experience the native svn protocol is much faster and puts less load on the server. We hope the transition will be mostly painless. We understand that some pain is inevitable. >>> Thomas Wiest 09/04/08 10:50 AM >>> Hey Guys, We recently upgraded anonsvn.mono-project.com and as part of the upgrade we've decided to disable dav_svn access. So, the only ways to access anonsvn now are through svn:// and viewvc. For more information, please see our anonsvn wiki page: http://mono-project.com/AnonSVN Sorry for any inconvenience this may cause, Thomas _______________________________________________ Mono-devel-list mailing list Mono-devel-list at lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list From mousse_man at hotmail.com Thu Sep 4 15:07:31 2008 From: mousse_man at hotmail.com (FirstName LastName) Date: Thu, 4 Sep 2008 19:07:31 +0000 Subject: [Mono-dev] Mono on ARM Message-ID: Hi, I?m trying to run mono 1.9.1 on the arm (ARM9). I have an issue when I try to cast a long to a double. It simply does nothing. ? I?m using soft float in FPA (actually, the configure script seems to detect it properly -> it defines ARM_FPU_FPA). ? I?m using GNU EABI. ? When I do a mathematical operation on doubles, it works (Test in C#). ? When I print (Console.WriteLine) a double, it works (Test in C#). ? When I cast an int to a double, it works. ? I tried to define ARM_FPU_NONE and it generates an ExecutionEngineException (so, obviously, I dropped it.) ? I tried to define __ARM_EABI__ and it generates an ExecutionEngineException (so, obviously, I dropped it.) When I cast a long to a double, it doesn?t work. Here is what I do: int i = 1234; long l = 1234; float f = 1234.56; double d = 1234.56; double result = 64; result = (double)i; Console.WriteLine(?Result (cast from int): ? + result); -> It shows me 1234. This is good. result = 64; result = (double)f; Console.WriteLine(?Result (cast from float): ? + result); -> It shows me 1234.56. This is also very good. result = 64; result = (double)I; Console.WriteLine(?Result (cast from long): ? + result); -> It shows me 64 ???? This is not good. Am I missing something? Any other pointers? _________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080904/ee8ee6b6/attachment.html From kumpera at gmail.com Thu Sep 4 15:43:49 2008 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Thu, 4 Sep 2008 16:43:49 -0300 Subject: [Mono-dev] Mono on ARM In-Reply-To: References: Message-ID: <8cca42d80809041243v78fb1ffaq6ddb675d851e1054@mail.gmail.com> A lot of bugs with soft float has been fixed for the 2.0 release and even more work went in the current development branch. Please test with the 2.0 snapshot builds and report your bugs so we can fix then in time for the release. 2008/9/4 FirstName LastName > Hi, > > > > I'm trying to run mono 1.9.1 on the arm (ARM9). I have an issue when I > try to cast a long to a double. It simply does nothing. > > > > ? I'm using soft float in FPA (actually, the configure script > seems to detect it properly -> it defines ARM_FPU_FPA). > > ? I'm using GNU EABI. > > ? When I do a mathematical operation on doubles, it works (Test in > C#). > > ? When I print (Console.WriteLine) a double, it works (Test in > C#). > > ? When I cast an int to a double, it works. > > ? I tried to define ARM_FPU_NONE and it generates an > ExecutionEngineException (so, obviously, I dropped it.) > > ? I tried to define __ARM_EABI__ and it generates an > ExecutionEngineException (so, obviously, I dropped it.) > > > > When I cast a long to a double, it doesn't work. Here is what I do: > > > > int i = 1234; > > long l = 1234; > > float f = 1234.56; > > double d = 1234.56; > > double result = 64; > > > > result = (double)i; > > Console.WriteLine("Result (cast from int): " + result); -> It shows me > 1234. This is good. > > > > result = 64; > > result = (double)f; > > Console.WriteLine("Result (cast from float): " + result); -> It shows me > 1234.56. This is also very good. > > > > result = 64; > > result = (double)I; > > Console.WriteLine("Result (cast from long): " + result); -> It shows me > 64 ???? This is not good. > > > > Am I missing something? Any other pointers? > > > > ------------------------------ > Upgrade to Hotmail Plus and share more photos with bigger attachments. > Click here to find out how Click here to find out how > > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080904/fd65a7ac/attachment-0001.html From mousse_man at hotmail.com Thu Sep 4 16:10:16 2008 From: mousse_man at hotmail.com (FirstName LastName) Date: Thu, 4 Sep 2008 20:10:16 +0000 Subject: [Mono-dev] Mono on ARM In-Reply-To: <8cca42d80809041243v78fb1ffaq6ddb675d851e1054@mail.gmail.com> References: <8cca42d80809041243v78fb1ffaq6ddb675d851e1054@mail.gmail.com> Message-ID: Thanks for the quick response. It is interesting what you say since I was actually going through all the changesets since 1.9.1 and I noticed many fixes regarding th earm, softfloat, ... I will get the latest code and try it out. Thanks. Date: Thu, 4 Sep 2008 16:43:49 -0300From: kumpera at gmail.comTo: mousse_man at hotmail.comSubject: Re: [Mono-dev] Mono on ARMCC: mono-devel-list at lists.ximian.com A lot of bugs with soft float has been fixed for the 2.0 release and even more work went in the current development branch.Please test with the 2.0 snapshot builds and report your bugs so we can fix then in time for the release. 2008/9/4 FirstName LastName Hi, I'm trying to run mono 1.9.1 on the arm (ARM9). I have an issue when I try to cast a long to a double. It simply does nothing. ? I'm using soft float in FPA (actually, the configure script seems to detect it properly -> it defines ARM_FPU_FPA). ? I'm using GNU EABI. ? When I do a mathematical operation on doubles, it works (Test in C#). ? When I print (Console.WriteLine) a double, it works (Test in C#). ? When I cast an int to a double, it works. ? I tried to define ARM_FPU_NONE and it generates an ExecutionEngineException (so, obviously, I dropped it.) ? I tried to define __ARM_EABI__ and it generates an ExecutionEngineException (so, obviously, I dropped it.) When I cast a long to a double, it doesn't work. Here is what I do: int i = 1234; long l = 1234; float f = 1234.56; double d = 1234.56; double result = 64; result = (double)i; Console.WriteLine("Result (cast from int): " + result); -> It shows me 1234. This is good. result = 64; result = (double)f; Console.WriteLine("Result (cast from float): " + result); -> It shows me 1234.56. This is also very good. result = 64; result = (double)I; Console.WriteLine("Result (cast from long): " + result); -> It shows me 64 ???? This is not good. Am I missing something? Any other pointers? Upgrade to Hotmail Plus and share more photos with bigger attachments. Click here to find out how Click here to find out how_______________________________________________Mono-devel-list mailing listMono-devel-list at lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-devel-list _________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080904/134ade2a/attachment.html From kornelpal at gmail.com Thu Sep 4 16:21:53 2008 From: kornelpal at gmail.com (=?ISO-8859-2?Q?Korn=E9l_P=E1l?=) Date: Thu, 04 Sep 2008 22:21:53 +0200 Subject: [Mono-dev] Mono on DD-WRT or OpenWrt Message-ID: <48C04361.6040303@gmail.com> Hi, There are a lot of Broadcom CPU based routers out there and I would like to know if Mono is supported on any of them. Thanks. Korn?l From ltracchia at gmail.com Thu Sep 4 16:27:01 2008 From: ltracchia at gmail.com (lrt) Date: Thu, 4 Sep 2008 13:27:01 -0700 (PDT) Subject: [Mono-dev] error CS0006: cannot find metadata file `System.Data.dll` Message-ID: <1220560021245-839742.post@n2.nabble.com> i'm trying to follow the guide http://www.mono-project.com/MySQL here to connect to a MySql database with C#. I already downloaded the http://dev.mysql.com/downloads/connector/net/5.2.html Connector/NET 5.2 and followed the instructions http://dev.mysql.com/doc/refman/5.0/en/connector-net-installation-unix.html here . when i run, # gacutil -i /etc/mono/1.0/MySql.Data.dll i get "Installed /etc/mono/1.0/MySql.Data.dll into the gac (/usr/lib/mono/gac). so that looks all good. but then i try to run, # gmcs TestExample.cs -r:System.Data.dll -r:/usr/lib/mono/gac/MySql.Data/5.2.3.0_c5687fc88969c44d/MySql.Data.dll (as specified in the guide)-- and i get: # error CS0006: cannot find metadata file `System.Data.dll` i did a 'find' command and, its true, the file is missing. anyone know how i can get this to work? i'm running Mysql 5.0.51a, Ubuntu 8.04, and Mono 1.9.1 -- View this message in context: http://n2.nabble.com/error-CS0006%3A-cannot-find-metadata-file-%60System.Data.dll%60-tp839742p839742.html Sent from the Mono - Dev mailing list archive at Nabble.com. From m.j.hutchinson at gmail.com Thu Sep 4 17:59:49 2008 From: m.j.hutchinson at gmail.com (Michael Hutchinson) Date: Thu, 4 Sep 2008 17:59:49 -0400 Subject: [Mono-dev] error CS0006: cannot find metadata file `System.Data.dll` In-Reply-To: <1220560021245-839742.post@n2.nabble.com> References: <1220560021245-839742.post@n2.nabble.com> Message-ID: On Thu, Sep 4, 2008 at 4:27 PM, lrt wrote: > > i'm trying to follow the guide http://www.mono-project.com/MySQL here to > connect to a MySql database with C#. I already downloaded the > http://dev.mysql.com/downloads/connector/net/5.2.html Connector/NET 5.2 and > followed the instructions > http://dev.mysql.com/doc/refman/5.0/en/connector-net-installation-unix.html > here . > > when i run, # gacutil -i /etc/mono/1.0/MySql.Data.dll i get "Installed > /etc/mono/1.0/MySql.Data.dll into the gac (/usr/lib/mono/gac). so that looks > all good. > > but then i try to run, # gmcs TestExample.cs -r:System.Data.dll > -r:/usr/lib/mono/gac/MySql.Data/5.2.3.0_c5687fc88969c44d/MySql.Data.dll (as > specified in the guide)-- and i get: > # error CS0006: cannot find metadata file `System.Data.dll` > > i did a 'find' command and, its true, the file is missing. > > anyone know how i can get this to work? > > i'm running Mysql 5.0.51a, Ubuntu 8.04, and Mono 1.9.1 Unlike most other distros, Debian/Ubuntu breaks Mono up into many smaller packages. One of them contains the 1.0 System.Data.dll, and another contains the 2.0 System.Data.dll, though I can't remember the package names right now. -- Michael Hutchinson http://mjhutchinson.com From kumpera at gmail.com Thu Sep 4 19:28:22 2008 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Thu, 4 Sep 2008 20:28:22 -0300 Subject: [Mono-dev] Mono on DD-WRT or OpenWrt In-Reply-To: <48C04361.6040303@gmail.com> References: <48C04361.6040303@gmail.com> Message-ID: <8cca42d80809041628r1a01836cs9d599978ae28eca1@mail.gmail.com> What arch are those cpus? 2008/9/4 Korn?l P?l > Hi, > > There are a lot of Broadcom CPU based routers out there and I would like > to know if Mono is supported on any of them. > > Thanks. > > Korn?l > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080904/d8ab155d/attachment.html From kumpera at gmail.com Thu Sep 4 19:42:57 2008 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Thu, 4 Sep 2008 20:42:57 -0300 Subject: [Mono-dev] Mono on DD-WRT or OpenWrt In-Reply-To: <8cca42d80809041628r1a01836cs9d599978ae28eca1@mail.gmail.com> References: <48C04361.6040303@gmail.com> <8cca42d80809041628r1a01836cs9d599978ae28eca1@mail.gmail.com> Message-ID: <8cca42d80809041642g175cbc02u77130e2b4199b0c9@mail.gmail.com> Well, OpenWrt runs mostly or arm based devises, so mono should work. The issue will be building a small enough runtime to fit the flash card. On Thu, Sep 4, 2008 at 8:28 PM, Rodrigo Kumpera wrote: > What arch are those cpus? > > > 2008/9/4 Korn?l P?l > > Hi, >> >> There are a lot of Broadcom CPU based routers out there and I would like >> to know if Mono is supported on any of them. >> >> Thanks. >> >> Korn?l >> _______________________________________________ >> Mono-devel-list mailing list >> Mono-devel-list at lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-devel-list >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080904/33a1f0ed/attachment.html From kornelpal at gmail.com Fri Sep 5 05:11:01 2008 From: kornelpal at gmail.com (=?ISO-8859-1?Q?Korn=E9l_P=E1l?=) Date: Fri, 05 Sep 2008 11:11:01 +0200 Subject: [Mono-dev] Mono on DD-WRT or OpenWrt In-Reply-To: <8cca42d80809041642g175cbc02u77130e2b4199b0c9@mail.gmail.com> References: <48C04361.6040303@gmail.com> <8cca42d80809041628r1a01836cs9d599978ae28eca1@mail.gmail.com> <8cca42d80809041642g175cbc02u77130e2b4199b0c9@mail.gmail.com> Message-ID: <48C0F7A5.70100@gmail.com> Hi, Rodrigo Kumpera wrote: > Well, OpenWrt runs mostly or arm based devises, so mono should work. > > The issue will be building a small enough runtime to fit the flash card. Sorry not mentioning the architecture. The devices I'm interested in use the MIPS32 architecture. I've found few documentation on the status of MIPS support on the home page. The disk space problem can be solved by using an external hard drive connected via USB. (Other solutions involve hardware modification.) Korn?l From ltracchia at gmail.com Fri Sep 5 11:37:43 2008 From: ltracchia at gmail.com (Leandro Tracchia) Date: Fri, 5 Sep 2008 11:37:43 -0400 Subject: [Mono-dev] error CS0006: cannot find metadata file `System.Data.dll` In-Reply-To: References: <1220560021245-839742.post@n2.nabble.com> Message-ID: <837a927a0809050837i5e6b1ee5yddc6134fcbfb7cc@mail.gmail.com> ok i found the package (http://packages.ubuntu.com/search?suite=default§ion=all&arch=any&searchon=contents&keywords=System.Data.dll). i installed both 1.0 and 2.0, but which one am i supposed to use/install??? i also found i have to install this package to get the .exe file to run because i was getting the following error: "Unhandled Exception: System.NotSupportedException: CodePage 1252 not supported" http://packages.ubuntu.com/search?suite=hardy§ion=all&arch=any&searchon=contents&keywords=libmono-i18n2.0-cil http://ubuntuforums.org/showthread.php?t=831409 On Thu, Sep 4, 2008 at 5:59 PM, Michael Hutchinson wrote: > Unlike most other distros, Debian/Ubuntu breaks Mono up into many > smaller packages. One of them contains the 1.0 System.Data.dll, and > another contains the 2.0 System.Data.dll, though I can't remember the > package names right now. > > -- > Michael Hutchinson > http://mjhutchinson.com > From kumpera at gmail.com Fri Sep 5 12:35:10 2008 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Fri, 5 Sep 2008 13:35:10 -0300 Subject: [Mono-dev] Mono on DD-WRT or OpenWrt In-Reply-To: <48C0F7A5.70100@gmail.com> References: <48C04361.6040303@gmail.com> <8cca42d80809041628r1a01836cs9d599978ae28eca1@mail.gmail.com> <8cca42d80809041642g175cbc02u77130e2b4199b0c9@mail.gmail.com> <48C0F7A5.70100@gmail.com> Message-ID: <8cca42d80809050935y5148cf3bs9a1ce136bd4bb291@mail.gmail.com> The MIPS port hasn't received any attention in the past few months, we don't have a continuous build machine and neither a mantainer to not let the others break it. It shouldn't be a lot of work to get it back in shape, thou. On Fri, Sep 5, 2008 at 6:11 AM, Korn?l P?l wrote: > Hi, > > Rodrigo Kumpera wrote: > > Well, OpenWrt runs mostly or arm based devises, so mono should work. > > > > The issue will be building a small enough runtime to fit the flash card. > > Sorry not mentioning the architecture. The devices I'm interested in use > the MIPS32 architecture. I've found few documentation on the status of MIPS > support on the home page. > > The disk space problem can be solved by using an external hard drive > connected via USB. (Other solutions involve hardware modification.) > > Korn?l > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080905/5385ab31/attachment.html From mousse_man at hotmail.com Fri Sep 5 14:03:17 2008 From: mousse_man at hotmail.com (FirstName LastName) Date: Fri, 5 Sep 2008 18:03:17 +0000 Subject: [Mono-dev] Compilation error for ARM Message-ID: Hi, I'm trying to compile the latest code from SVN (rev 112374) because I have some issues with mono 1.9.1 regarding soft float with ARM. I get the following error: CC pedump.oLD pedump../utils/.libs/libmonoutils.a(mono-mmap.o): In function `shared_cleanup':/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:387: undefined reference to `shm_unlink'../utils/.libs/libmonoutils.a(mono-mmap.o): In function `mono_shared_area':/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:409: undefined reference to `shm_open'/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:412: undefined reference to `shm_unlink'/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:413: undefined reference to `shm_open'/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:421: undefined reference to `shm_unlink'/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:426: undefined reference to `shm_unlink'../utils/.libs/libmonoutils.a(mono-mmap.o): In function `mono_shared_area_remove':/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:447: undefined reference to `shm_unlink'../utils/.libs/libmonoutils.a(mono-mmap.o): In function `mono_shared_area_for_pid':/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:464: undefined reference to `shm_open'collect2: ld returned 1 exit statusmake[3]: *** [pedump] Error 1make[3]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-tip/mono/mono/metadata'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-tip/mono/mono'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/ubuntu/Install/cross-arm-mono-tip/mono'make: *** [all] Error 2root at mb-ubuntu:/home/ubuntu/Install/cross-arm-mono-tip/mono# Basically, it doesn't find shm_open and shm_unlink. I'm working with uClibc. I noticed that my librt.a doesn't have these methods. That's why I get this error. However, I didn't have this issue when compiling 1.9.1. Is there a way to configure MONO to not use shared memory? I tried --disable-shared-handles but it doesn't work. _________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080905/38087fae/attachment.html From onelook at volny.cz Thu Sep 4 09:06:56 2008 From: onelook at volny.cz (Onelook) Date: Thu, 4 Sep 2008 06:06:56 -0700 (PDT) Subject: [Mono-dev] System.Drawing.Graphics ignores InterpolationMode In-Reply-To: <43fccf5d.549854e4.7642.0512@mx.gmail.com> References: <43fccf5d.549854e4.7642.0512@mx.gmail.com> Message-ID: <19308997.post@talk.nabble.com> I have similar problem. All resized (downsampled) images by this code: https://bugzilla.novell.com/attachment.cgi?id=169051 have very low quality in compare with MS .NET Framework. How can I generate good quality thumbnails in Mono? Thanks, Onelook Jonathan Resnick wrote: > > When using the System.Drawing.Graphics class, I set the the property > InterpolationMode to InterpolationMode.NearestNeighbor. However, the > image > rendered to the screen still looks as though it has undergone bilinear > interpolation. Running the exact same code on .NET runtime in Windows, > the > image is clearly not interpolated. > > Does anyone know if this is a bug (in which case I can submit a bug > report), > or is the InterpolationMode property simply not yet supported on Linux? > > Thanks, > Jonathan > > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > > -- View this message in context: http://www.nabble.com/System.Drawing.Graphics-ignores-InterpolationMode-tp3078399p19308997.html Sent from the Mono - Dev mailing list archive at Nabble.com. From sebastien.pouliot at gmail.com Fri Sep 5 15:03:55 2008 From: sebastien.pouliot at gmail.com (Sebastien Pouliot) Date: Fri, 05 Sep 2008 15:03:55 -0400 Subject: [Mono-dev] System.Drawing.Graphics ignores InterpolationMode In-Reply-To: <19308997.post@talk.nabble.com> References: <43fccf5d.549854e4.7642.0512@mx.gmail.com> <19308997.post@talk.nabble.com> Message-ID: <1220641435.4613.125.camel@mizar.home> Hello, Cairo, on which libgdiplus depends for graphics, has much less ?interpolation options than MS GDI+ defines in its API. So libgdiplus maps "many to few" options in this case. Cairo is also known not to downscale images very well (but some Cairo people are looking at this). Google cairo's mailing-list if you want to know more about the issues. Sebastien On Thu, 2008-09-04 at 06:06 -0700, Onelook wrote: > I have similar problem. All resized (downsampled) images by this code: > https://bugzilla.novell.com/attachment.cgi?id=169051 > have very low quality in compare with MS .NET Framework. How can I generate > good quality thumbnails in Mono? > > Thanks, > Onelook > > > > Jonathan Resnick wrote: > > > > When using the System.Drawing.Graphics class, I set the the property > > InterpolationMode to InterpolationMode.NearestNeighbor. However, the > > image > > rendered to the screen still looks as though it has undergone bilinear > > interpolation. Running the exact same code on .NET runtime in Windows, > > the > > image is clearly not interpolated. > > > > Does anyone know if this is a bug (in which case I can submit a bug > > report), > > or is the InterpolationMode property simply not yet supported on Linux? > > > > Thanks, > > Jonathan > > > > _______________________________________________ > > Mono-devel-list mailing list > > Mono-devel-list at lists.ximian.com > > http://lists.ximian.com/mailman/listinfo/mono-devel-list > > > > > From kumpera at gmail.com Fri Sep 5 16:30:10 2008 From: kumpera at gmail.com (Rodrigo Kumpera) Date: Fri, 5 Sep 2008 17:30:10 -0300 Subject: [Mono-dev] Compilation error for ARM In-Reply-To: References: Message-ID: <8cca42d80809051330o1a3a7cefqc47bf8934f12efcd@mail.gmail.com> Hi, The functions that uses shm_* exists for making performance counters readable from the outside. But the patch to export performance counters has not yet hit trunk so, for now, you can just comment the offending code. It would be nice, thou, to have a configure option to turn this off once it hits trunk as embedded targets (as yours) might not have proper support. 2008/9/5 FirstName LastName > Hi, > > I'm trying to compile the latest code from SVN (rev 112374) because I have > some issues with mono 1.9.1 regarding soft float with ARM. > > I get the following error: > > CC pedump.o > LD pedump > ../utils/.libs/libmonoutils.a(mono-mmap.o): In function `shared_cleanup': > /home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:387: > undefined reference to `shm_unlink' > ../utils/.libs/libmonoutils.a(mono-mmap.o): In function `mono_shared_area': > /home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:409: > undefined reference to `shm_open' > /home/ubuntu/Install/cross-arm-mono-tip/mono/mono/utils/mono-mmap.c:412: > undefined reference to `shm_unlink' > /home/ubuntu/Install/cross-arm-mono-tip/mono/mono/