Hi Alessandro, On 6/18/10 4:17 AM, Alessandro Piras wrote: > I compiled PlPlot and wXWidgets following the instructions in the plplot > wiki. > 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 -DENABLE_DYNDRIVERS=OFF. 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. Regards, Werner > __ > Alessandro > > > ------------------------------------------------------------------------------ > 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: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Plplot-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/plplot-general -- Dr. Werner Smekal Institut fuer Angewandte Physik Technische Universitaet Wien Wiedner Hauptstr 8-10/134 A-1040 Wien Austria DVR-Nr: 0005886 email: [email protected] (GPG: EDCAF4A79) web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office) +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 ------------------------------------------------------------------------------ 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: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Plplot-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-general
