Werner Smekal <smekal@...> writes:
> Hi Alessandro,
> On 6/18/10 4:17 AM, Alessandro Piras wrote:
>> I compiled PlPlot and wXWidgets following the instructions in the plplot
>> PlPlot version: 5.9.6
>> wxWidgets version: 2.8.9, shared, unicode, gdi+
>> (as in http://www.miscdebris.net/plplot_wiki/index.php?title=WxWidgets )
>> Agg version: 2.4
>> Platform: Windows 7 64bit
>> Compiled with Visual Studio 2008 tools (32bit).
>> The example programs terminate correctly when selecting other drivers.
>> The same problem arises with the common lisp bindings (cl-plplot) at
>> least on sbcl (32 bit).
>> I tried running some wxWidgets demos and they seem to work correctly.
>> Any idea what's wrong?
> That's a "known" problem, but I'm just unable to solve it. Problem here
> is, that since plplot is a shared library and wxWidgets driver as well
> (dynamic driver) gdi+ (also shared) is opened during initialisation of
> the wxWidgets driver. So far so good, but if you want to quit your
> program and therefore also close the dlls (plplot, wxWidgets) gdi+ needs
> to be closed also, BUT this never happens, the program "hangs". There is
> some race condition when which library should be closed first, and
> obviously there is something going wrong - when you read the last lines,
> you'll see that I don't really have the knowledge what's going on and
> how to solve this.
> AFAIR the problem doesn't occur if you disable the dynamic drivers, i.e.
> plplot can still be shared, but the drivers must be linked into the
> plplot library. You achieve this via the cmake option
> You get then a "big" plplot shared library - for your program nothing
> really changes.
> Please try this and write back to the list, if this solves your problems.
Thanks for the tip.
It solved the problem for the C examples, but after closing the window,
when I try to do another plot, my lisp complains about access violation,
and will afterwards die.
It seems the most reliable interactive driver so far is wingcc, that
seems to works well if I close the window using the mouse. Closing it
with the keyboard (was it space? or maybe RET or ESC) won't close the
window, that will stay there frozen.
Control is anyway returned to the lisp repl, but after some plots, I get
memory corruption/access violation errors and my lisp dies on me. It
doesn't seem to happen when I close the window with the mouse.
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit. See the prize list and enter to win:
>> Plplot-general mailing list