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 fo
Valgrind for most of it. However, be warned, if you have a
multi-threaded application and you're trying to debug a
multi-threading issue, Valgrind is not going to work for you.
Valgrind does some hocus-pocus to simulate multi-threading, but you
will not get the same conditions as when your applica
>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
ema
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
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.ex
would work.
Thanks,
Michael
On 21/11/2007, Michael Lamothe <[EMAIL PROTECTED]> wrote:
> Have you tried,
>
> gboolean ii=g_spawn_comand_line_async ("C:/Archivos de
> programa/GlobalMapper8/global_mapper8.exe",&error);
>
> Thanks,
>
> Michael
>
> On 21/
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 ii=g_spa
orks but if i call it i have
> 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
ogram change a part of the
> GUI or you can tell to me what use 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 puni
ECTED]>:
> >
> > > yes.
> > > gdk_threads_enter()
> > > function();
> > > gdk_threads_leave()
> > >
> > > Have you a complete example? Only a small piace of code where there is
> an GUI's update.
> > >
> > > Than
uot;, name.machine);
Thanks,
Michael
On 05/11/2007, 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
o create a box with two labels inside:
>
> 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@
>
&
n
> order to know the output width size, i gotta insert a while 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()
nals of GLIB 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 sam
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
> > thre
the same thing to AlannY. It's 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 wro
AIL PROTECTED]>
> > Subject: Re: Don't understand valgrind output
> > To: Michael Lamothe <[EMAIL PROTECTED]>
> > Cc: gtk-app-devel-list@gnome.org
> > Message-ID:
> > <[EMAIL PROTECTED]>
> > Content-Type: TEXT/PLAIN; charset=US-ASCII
> >
line
gtk_do_something();
gtk_do_something_else();
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 mai
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 r
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?
Sho
20 matches
Mail list logo