Re: [Mono-list] What do I do with my images...
Hi José. Sorry to reply only to you, it was clearly a mistake. It's a bit later here in Spain, so tomorrow I will give you some tips and hints so you can get back the images from resources. It is not needed to have paths, simply get a stream to the resource a read it back. Cheers, David Anes. 2007/3/4, José Pablo Fernández <[EMAIL PROTECTED]>: Hello David, Thank you for your reply, I hope you don't mind that I put the thread back into the mailing list, I believe this can be useful for other people (or myself, in a couple of months when I won't have this mail anymore and it'll be in the archives). On Saturday March 3 2007 16:21, David Anes wrote: > Hi Pablo, > Embed the images into the assembly as resources, I believe I have already done that. I've added the images as deployable resources in MonoDevelop. When I have to pick an icon for example, I can click in the Resources tab and see my images there. Is that enough? > and load back the images at runtime. Can you give me any hints about how this is done? Note: the images are SVG and are loaded my own code (wrapper around Cairo and Rsvg). Having a class/method resolving the absolute path having only a relative path (like "images/blah.svg") would be the best, but if I can get the file as a kind of object, then I'll figure it out how to use that object. I've played a bit with ResourceManager because I understand that is the class for this, but I couldn't get anywhere. Thank you. -- José Pablo Fernández <[EMAIL PROTECTED]> (http://pupeno.com) ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] What do I do with my images...
Hello David, Thank you for your reply, I hope you don't mind that I put the thread back into the mailing list, I believe this can be useful for other people (or myself, in a couple of months when I won't have this mail anymore and it'll be in the archives). On Saturday March 3 2007 16:21, David Anes wrote: > Hi Pablo, > Embed the images into the assembly as resources, I believe I have already done that. I've added the images as deployable resources in MonoDevelop. When I have to pick an icon for example, I can click in the Resources tab and see my images there. Is that enough? > and load back the images at runtime. Can you give me any hints about how this is done? Note: the images are SVG and are loaded my own code (wrapper around Cairo and Rsvg). Having a class/method resolving the absolute path having only a relative path (like "images/blah.svg") would be the best, but if I can get the file as a kind of object, then I'll figure it out how to use that object. I've played a bit with ResourceManager because I understand that is the class for this, but I couldn't get anywhere. Thank you. -- José Pablo Fernández <[EMAIL PROTECTED]> (http://pupeno.com) pgpqty18EkFYY.pgp Description: PGP signature ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] running mono under Linux without shm
Hi, I need to run mono in a very restricted environment. It's a Linux box without SysV IPC (no shm). Also there's no possibility to create temporary files (like ".wapi" subdirectory in user's home directory). It _did_ manage to do it with an old version of mono (1.0.x) - mono displayed warnings about nod being able to create shared memory segments, but it worked just fine anyway. However, lately I wanted to upgrade to a current version and 1.2.2.1, mono ("gmcs" without any parameters, exactly) exits with: -- 8< -- ** (/usr/lib/mono/2.0/gmcs.exe:3100): CRITICAL **: _wapi_shm_file_open: shared file [/root/.wapi/shared_data-noix.tornado.lan-Linux-i686-312-11-0] open error: No such file or directory ** (/usr/lib/mono/2.0/gmcs.exe:3100): CRITICAL **: _wapi_shm_attach: shared file [/root/.wapi/shared_data-noix.tornado.lan-Linux-i686-312-11-0] open error ** ERROR **: file shared.c: line 312 (_wapi_shm_semaphores_init): assertion failed: (tmp_shared != NULL) aborting... -- 8< -- Is there some way to run mono anyway, under such conditions? If not - what was the last version which worked without shm? Thanks in advance, Noix ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Gtk-sharp-2.10.0.0 for MS Windows
Well, that discussion was actually in the gtk# mailing list, I've forgot to mention this. David Anes. 2007/3/3, David Anes <[EMAIL PROTECTED]>: Hi Adam. As far as I know, Gtk# 2.10 for Windows has some bugs and so there is no current version available. Recently has been a discussion about that in the list. I C&P the explanation that gave Cody recently: Hi Matteo, I'm also from Medsphere, and I just want to point out that this is actually gtk# 2.8, but it's GTK+ 2.10.7 underneath that. There seems to be a bug currently in gtk# 2.10 that is preventing us from using it: http://bugzilla.ximian.com/show_bug.cgi?id=79993 / Cody We are all awaiting the release of gtk# 2.10 for Win :( David Anes. 2007/3/3, Adam Wood < [EMAIL PROTECTED] >: > > Hi, > > Can anyone please tell me where I can download the gtk-sharp runtime for > > windows version 2.10.0.0. > > I can only find 2.8.3 and I've looked everywhere I can think of. > > Thanks in advance for any help. > > Adam Wood > ___ > Mono-list maillist - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Gtk-sharp-2.10.0.0 for MS Windows
Hi Adam. As far as I know, Gtk# 2.10 for Windows has some bugs and so there is no current version available. Recently has been a discussion about that in the list. I C&P the explanation that gave Cody recently: Hi Matteo, I'm also from Medsphere, and I just want to point out that this is actually gtk# 2.8, but it's GTK+ 2.10.7 underneath that. There seems to be a bug currently in gtk# 2.10 that is preventing us from using it: http://bugzilla.ximian.com/show_bug.cgi?id=79993 / Cody We are all awaiting the release of gtk# 2.10 for Win :( David Anes. 2007/3/3, Adam Wood <[EMAIL PROTECTED] >: Hi, Can anyone please tell me where I can download the gtk-sharp runtime for windows version 2.10.0.0. I can only find 2.8.3 and I've looked everywhere I can think of. Thanks in advance for any help. Adam Wood ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Gtk-sharp-2.10.0.0 for MS Windows
Hi, Can anyone please tell me where I can download the gtk-sharp runtime for windows version 2.10.0.0. I can only find 2.8.3 and I've looked everywhere I can think of. Thanks in advance for any help. Adam Wood ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] What do I do with my images...
Hello, I am just starting to develop an application in C# using Mono and MonoDevelop. The application has some data files. They are images in SVG format. I've already handled the opening and rendering of them[1], but so far I am using absolute paths: /home/pupeno/myproject/images/img.svg. Of course that's bad and I want to improve that, but, what should I do? Should I put my images as resources somehow? Should I build an absolute path with the help of some class? I don't even know where these images would end up being installed? Well, I hope that by now you see how lost I am in solving this problem. In C++/KDE I just made a Makefile to put my files in $prefix/share/myapp/ and then there where a class that would know about the correct $prefix and give me the right path to get the file. Any hints are appreciated! Thank you. -- José Pablo Fernández <[EMAIL PROTECTED]> (http://pupeno.com) [1] I'll publish how in my blog soon: http://pupeno.com. pgprxvTOLkOO4.pgp Description: PGP signature ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Sqlite database
Hello, I've been wondering around to find out how to create a sqlite database in Mono and CSharp. There is one example on mono-project.com but it's not very helpful of the database creation, and tables creation, and adding data to the tables and so on... Can someone show me a example of it, or anything else, cause I really need this. Also, if you can find anything more like for MySQL databases it would be great too! Thanks! ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list