[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: EXC_BAD_ACCESS [was: persistent listeners]
From: |
logari81 |
Subject: |
Re: EXC_BAD_ACCESS [was: persistent listeners] |
Date: |
Sun, 13 Mar 2011 16:31:42 +0100 |
On Sun, 2011-03-13 at 11:20 -0400, Ben Abbott wrote:
> On Mar 12, 2011, at 5:06 PM, logari81 wrote:
>
> > Yes your last change would cancel my intention in my previous change.
> > The idea is that the lines:
> >
> > || if (uimenu->items_to_show ())
> > || show_menubar ();
> > || else
> > || hide_menubar ();
> >
> > should be before the first allocation of the canvas:
> >
> > || // This allows us to have a valid OpenGL context right away.
> > || canvas->mode (FL_DEPTH | FL_DOUBLE );
> > || if (fp.is_visible ())
> > || {
> > || show ();
> > || if (fp.get_currentaxes ().ok())
> > || show_canvas ();
> > || else
> > || hide_canvas ();
> > || }
> >
> > otherwise, at least with my fltk version, the first time anything is
> > plotted is vertically shifted by the menu bar height which was very
> > annoying.
> >
> > So we have to find some other solution. Maybe Shai could give us a hint.
> >
> > Kostas
>
> I'm not certain, but it sounds like a problem I have seen on MacOS.
>
> In my case, I was unable to see the menu bar and the status bar at the same
> time. In each of these cases, the plot was shifted vertically.
>
> I was able to fix this by uninstalling fltk-aqua-1.1.10. The package for
> fltk-aqua-shlibs-1.1.10 remains installed.
>
> Ben
hmm, should I revert the first half of my problematic changeset in hg
until we find a better solution?
Unfortunately I do not have a deep understanding of how fltk+OpenGL
works so that I can propose a reliable way for fixing these canvas
initialization issues.
Kostas
- Re: EXC_BAD_ACCESS [was: persistent listeners], (continued)
- Re: EXC_BAD_ACCESS [was: persistent listeners], Ben Abbott, 2011/03/12
- Re: EXC_BAD_ACCESS [was: persistent listeners], Ben Abbott, 2011/03/12
- Re: EXC_BAD_ACCESS [was: persistent listeners], Ben Abbott, 2011/03/12
- Re: EXC_BAD_ACCESS [was: persistent listeners], logari81, 2011/03/12
- Re: EXC_BAD_ACCESS [was: persistent listeners], Michael D Godfrey, 2011/03/12
- Re: EXC_BAD_ACCESS [was: persistent listeners], Ben Abbott, 2011/03/12
- Re: EXC_BAD_ACCESS [was: persistent listeners], logari81, 2011/03/12
- Re: EXC_BAD_ACCESS [was: persistent listeners], Søren Hauberg, 2011/03/13
- Re: EXC_BAD_ACCESS [was: persistent listeners], Ben Abbott, 2011/03/13
- Re: EXC_BAD_ACCESS [was: persistent listeners], Ben Abbott, 2011/03/13
- Re: EXC_BAD_ACCESS [was: persistent listeners],
logari81 <=
- Re: EXC_BAD_ACCESS [was: persistent listeners], Ben Abbott, 2011/03/13
- Re: EXC_BAD_ACCESS [was: persistent listeners], logari81, 2011/03/13
- Re: EXC_BAD_ACCESS [was: persistent listeners], Ben Abbott, 2011/03/13