Re: Valgrind and GTK libraries

2010-01-04 Thread Dan Kegel
Erik de Castro Lopo wrote: >  ==12528== 27,300 bytes in 175 blocks are still reachable in loss record > 11,194 of 11,196 >  ==12528==    at 0x4024C1C: malloc (vg_replace_malloc.c:195) >  ==12528==    by 0x4B342E3: g_malloc (gmem.c:131) >  ==12528==    by 0x4B4A418: g_slice_alloc (gslice.c:824) >

Re: Valgrind and GTK libraries

2010-01-04 Thread Dan Kegel
On Sat, Jan 2, 2010 at 4:20 AM, wrote: > 2010/1/1 Erik de Castro Lopo : >>  - How does one go about teasing out the difference between my memory >>   leaks and GTK stuff I have no control over? > > I usually run my app twice: once with just startup/shutdown and once > with startup/run for a while

Re: [semi-OT] gdb backtrace on windows

2009-10-19 Thread Dan Kegel
On Mon, Oct 19, 2009 at 12:52 PM, Tor Lillqvist wrote: > The most likely cause for weird errors is heap corruption. Does your > program run on Linux? Have you tried running it under valgrind to find > heap corruption errors? (See http://live.gnome.org/Valgrind for > instructions, in particular the

Re: Simulating mouse input with gdk_event_put()?

2009-10-01 Thread Dan Kegel
On Sun, Jun 28, 2009 at 8:20 AM, Dan Kegel wrote: > I have figured out how to inject synthetic, or fake, keyboard events > using gdk_event_put(), but I'm having trouble generating mock > mouse events.  The function I'm trying to implement should take > the X and Y co

Simulating mouse input with gdk_event_put()?

2009-06-28 Thread Dan Kegel
I have figured out how to inject synthetic, or fake, keyboard events using gdk_event_put(), but I'm having trouble generating mock mouse events. The function I'm trying to implement should take the X and Y coordinates of the click relative to the app's window, and generate a click sufficient to ac

Re: "portable" applications

2009-06-24 Thread Dan Kegel
On Wed, Jun 24, 2009 at 5:41 AM, John Zavgren wrote: > Greetings: > I wrote a Glade-3/GTK2/G++ application on a ubuntu machine, and the > application works great. In fact it works so well that my colleagues want to > use it. Ujnfortunately, they are not using ubuntu (and neither was I until I > sta