RE: Drawing area - example - code



> Subject: Re: Drawing area - example - code
> From: murrayc murrayc com
> To: b_grottier hotmail com
> CC: gtkmm-list gnome org
> Date: Sun, 16 Mar 2008 12:04:28 +0100
>
>
> On Sun, 2008-03-16 at 08:45 +0000, Bertrand Grottier wrote:
> > Hello,
> >
> > I compiled the simple example provided in the gtkmm documentation
> > dealing with Drawing areas
> > (http://www.gtkmm.org/docs/gtkmm-2.4/...ing-lines.html)
> >
> > When I run the program, quickly dragging the window out of the screen
> > and back always triggers a crash.
> >
> > My environment is the following:
> > - OS : Windows XP,
> > - EDI : Visual Studio 2008 Express Edition.
> >
> > Has somebody encountered the same problem ?
>
> I can't reproduce this on Linux, though I see now way to drag the whole
> window completely off the screen.
Yes, you are right: I drag the window just partially off the screen.


> Could you get a backtrace for the crash from your debugger?
Unfortunately, in debug mode, the program crashes at the very beginning with the following message:

File: f:\\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c
Line: 1317
_expression_: _CrtIsValidHeapPointer(pUserData)

Here is the call stack :
test.exe!Cairo::RefPtr<Cairo::Context>::unref() Line 210 + 0x18 octets
test.exe!Cairo::RefPtr<Cairo::Context>::~RefPtr<Cairo::Context>() Line 193
test.exe!MyArea:on_expose_event(_GdkEventExpose * event=0x0012fa08)  Line 38
gtkmm-2.4.dll!Gtk::Widget_Class::expose_event_callback(_GtkWidget* self=0x011ff398, _GdkEventExpose * p0=0x0012fa08) Line 4494 + 0x13 octets

May the problem come from the fact that I am using the 2008 version of Visual Studio instead of the 2005 version ?

Best regards,

Benoît


Windows Live Messenger 2008 vient de sortir, encore plus de fun ! Téléchargez gratuitement Messenger 2008


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]