Re: Weird problems: C library programs crashing in combination with GTK UI

2008-01-22 Thread Michael Lamothe
Hi, Alternatively, you can use the new gdk_threads_add_timeout() available in GTK 2.12. It's a GDK thread safe drop-in-replacement for g_timeout_add(). Thanks, Michael On 23/01/2008, Tristan Van Berkom [EMAIL PROTECTED] wrote: 2008/1/22 [EMAIL PROTECTED]: [...] Pseudo code for my call

Re: memory leak in gtk

2007-11-23 Thread Michael Lamothe
From what I've heard about memory leaking, this is not unique to the GTK library. If the rumours are correct, applications like `ls` are notorious for leaking memory, safe in the knowledge that the OS will clean up after them. Excellent work on the enable-debug switch, I'll have to keep this

Re: memory leak in gtk

2007-11-21 Thread Michael Lamothe
I'm no master profiler but I think that you'll want to put a gtk_widget_destroy(mainWindow); after the gtk_main();. You really don't need to do this because it will be destroyed when the application terminates 0.01 seconds after that line. But if you feel you must then go for it. I also like to

Re: GUI problem.

2007-11-20 Thread Michael Lamothe
insted the thread. Maybe will be better. Thanks 2007/11/20, Michael Lamothe [EMAIL PROTECTED]: Hi Alberto, Sorry, I've accidentally not replied to all. But to punish myself for doing this again I'll answer your question myself. In general, what happens when you write a multi

Re: GUI problem.

2007-11-20 Thread Michael Lamothe
the problem. Before the calling i should call gdk_thread_enter()? Type and example please. Thanks for all! 2007/11/20, Michael Lamothe [EMAIL PROTECTED]: Hi Alberto, Sorry, I'm not sure that I follow you. I think that you are saying that you want to write the C file by yourself. I

Re: exec application in windows

2007-11-20 Thread Michael Lamothe
Have you tried, gboolean ii=g_spawn_comand_line_async (C:/Archivos de programa/GlobalMapper8/global_mapper8.exe,error); Thanks, Michael On 21/11/2007, Martin (OpenGeoMap) [EMAIL PROTECTED] wrote: Hi: I am trying exec a exe in windows like this: GError *error; gboolean

Re: exec application in windows

2007-11-20 Thread Michael Lamothe
If you want to put a quote in in your string you should be using \, right? Not . Also try, gboolean ii=g_spawn_comand_line_async (\C:/Archivos de programa/GlobalMapper8/global_mapper8.exe\,error); I would've thought that one of those would work. Thanks, Michael On 21/11/2007, Michael

Re: exec application in windows

2007-11-20 Thread Michael Lamothe
Ohhh ... my bad, never tried it. Apologies, Michael On 21/11/2007, Tomas Carnecky [EMAIL PROTECTED] wrote: Michael Lamothe wrote: gboolean ii=g_spawn_comand_line_async (C:/Archivos de programa/GlobalMapper8/global_mapper8.exe,error); gboolean ii=g_spawn_comand_line_async (C

Re: Fwd: gnome applet w/ bash

2007-11-05 Thread Michael Lamothe
: one createt with label = gtk_label_new (foo); and the other created with label = gtk_label_new (std_output); i got the foo one middle aligned and the second placed on the top of the row.. am i wrong? M@ On Mon, 2007-11-05 at 22:06 +1100, Michael Lamothe wrote: Your pseudo makes

Re: Fwd: gnome applet w/ bash

2007-11-05 Thread Michael Lamothe
, Matteo Landi [EMAIL PROTECTED] wrote: On Mon, 2007-11-05 at 22:55 +1100, Michael Lamothe wrote: Hi Matteo, I'm not following. What box? A GtkBox? What row? they are just examples Have you thought of using Glade to do your UI work? the fact is that i've started working with gtk

Fwd: gnome applet w/ bash

2007-11-04 Thread Michael Lamothe
that overload the applet isn't it? tnx in advance for the help M@ On Sun, 2007-11-04 at 13:33 +1100, Michael Lamothe wrote: Hi Matteo, Look at g_timeout_add() or the new gdk_threads_add_timeout(). Thanks, Michael On 04/11/2007, Matteo Landi [EMAIL PROTECTED] wrote: hi all i'm

Re: gtk_message_dialog problem

2007-11-03 Thread Michael Lamothe
and GTK. But I need to get better in that department. On 11/4/07, Michael Lamothe [EMAIL PROTECTED] wrote: Hi Jordan, I'll ask the obvious, is your application a multi-threaded application? Mine did exactly the same thing when I tried to do this from a different thread. Thanks

Re: TreeView scrolling and threads

2007-11-02 Thread Michael Lamothe
Did your thread modify any GTK UI? Sometimes you can just get lucky, Thanks, Michael On 03/11/2007, Yura [EMAIL PROTECTED] wrote: Michael Lamothe wrote: Hi Yura, Look at the new gdk_threads_add_timeout() instead of creating a thread. If you're not familiar with the threading model

Re: Don't understand valgrind output

2007-10-21 Thread Michael Lamothe
just easier. Unfortunately, libxine creates many threads to process the media stream so I have no choice. Thanks all for your help, Michael On 22/10/2007, Chris Vine [EMAIL PROTECTED] wrote: On Sun, 2007-10-21 at 13:58 +1000, Michael Lamothe wrote: Thanks for the excellent responses. I

Re: Don't understand valgrind output

2007-10-20 Thread Michael Lamothe
To: Michael Lamothe [EMAIL PROTECTED] Cc: gtk-app-devel-list@gnome.org Message-ID: [EMAIL PROTECTED] Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 13 Oct 2007, Michael Lamothe wrote: I have been struggling with application freezes in my application for about 2 months

Re: GtkTextBuffer crashes

2007-10-15 Thread Michael Lamothe
Hi AlannY, I'm new to this mail thread but I think that I know what your issue is. Basically, GTK/GDK is not designed to be called from multiple at the same time. Doing so causes all kinds of strange issues such as the ones that you are seeing. There are many ways to get around this issue but

Re: GtkTextBuffer crashes

2007-10-15 Thread Michael Lamothe
(); gdk_threads_leave (); // Add this line Do NOT wrap GTK calls in the main thread, only in the second thread On 15/10/2007, AlannY [EMAIL PROTECTED] wrote: Michael Lamothe wrote: Hi AlannY, I'm new to this mail thread but I think that I know what your issue is. Basically, GTK/GDK

Don't understand valgrind output

2007-10-13 Thread Michael Lamothe
Hi People, I have been struggling with application freezes in my application for about 2 months and I was hoping that I could get some help. I've been cleaning the application up with errors reported by valgrind but can't seem to work out what this means. Can anyone shed some light on this?