From: Pedro V. <ped...@sp...> - 2016-12-15 16:24:42
|
Hi Alan Success The solution is to override the Show() function of the window, that is called in the demo. So no need to modify the demo at all with a custom function call. in wxPLplotwindow.h I just added this function template<class WXWINDOW> bool wxPLplotwindow<WXWINDOW>::Show(bool show) { wxLogDebug("wxPLplotwindow::Show"); CreateStream(); WXWINDOW::Show(show); } where CreateStream(); is a new internal function of the class that contains the code that is now in OnCreate() the 2 files are attached they contain a couple of debug messages this is the sequence I get 11:13:52: Debug: wxPLplotwindow 11:13:52: Debug: frame->Create 11:13:52: Debug: wxPLplotwindow::Show 11:13:52: Debug: wxPLplotwindow::CreateStream 11:13:52: Debug: wxPLplotwindow::RenewPlot 11:13:52: Debug: Plot() 11:13:52: Debug: wxPLplotwindow::RenewPlot 11:13:52: Debug: wxPLplotwindow::RenewPlot 11:13:52: Debug: wxPLplotwindow::OnCreate 11:13:52: Debug: wxPLplotwindow::CreateStream 11:13:52: Debug: wxPLplotwindow::OnErase as you can see the stream is NOT NULL when we get at 11:13:52: Debug: Plot() -Pedro On 2016-12-15 10:22, Pedro Vicente wrote: > Hi Alan > > I installed the latest from the debian site, here > > https://www.debian.org/distrib/ > > it's not surprising that I got the same results in ubuntu because I > used the same package > > sudo apt-get install libwxgtk3.0-dev > > > > On 2016-12-15 04:32, Alan W. Irwin wrote: >> On 2016-12-15 01:11-0500 Pedro Vicente wrote: >> >>> Hi Alan >>> >>> I just installed the latest debian on VirtualBox, and I get the >>> same >>> errors. >>> the results are attached, same thing that I did for ubuntu. >> >> Hi Pedro: >> >> Just for the record, what version of Debian? >> >> Currently Jessie = stable (a largely frozen release from two years >> ago), Stretch = testing (a rolling release not as stable as stable), >> and Sid = unstable (another rolling release not as stable as >> testing). >> Stretch has turned or will turn soon into a frozen distribution >> similar to Jessie but two years more modern and be designated stable >> likely sometime in 2017. Jessie will be redesignated as oldstable >> at >> that Debian release epoch, and Sid is always going to be unstable. >> :-) >> >> So if you installed Jessie, I would be officially amazed you cannot >> replicate my good results there. But if Stretch or Sid, then those >> are quite different, and all bets are off. >> >>> it seems that something on your debian is preventing this error, >>> but you should be able to verify this by just installing a new >>> debian (or any linux , it seems) on VirtualBox. >> >> Half my computer memory fried itself a year or so ago so my computer >> (already 9 years old but with ASUS motherboard, Intel CPU's, new >> disks, and new power supply still doing pretty well) is a little >> short >> of memory. Thus, I don't plan to look at VirtualBox at the moment, >> but >> when (if?) one of my motherboard, CPU's, or remaining RAM die so >> that >> I really do have to replace all three, I intend to buy a huge amount >> of memory for the new system so I can play with VirtualBox with >> ease. >> >> Alan >> __________________________ >> Alan W. Irwin >> >> Astronomical research affiliation with Department of Physics and >> Astronomy, >> University of Victoria (astrowww.phys.uvic.ca). >> >> Programming affiliations with the FreeEOS equation-of-state >> implementation for stellar interiors (freeeos.sf.net); the Time >> Ephemerides project (timeephem.sf.net); PLplot scientific plotting >> software package (plplot.sf.net); the libLASi project >> (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); >> and the Linux Brochure Project (lbproject.sf.net). >> __________________________ >> >> Linux-powered Science >> __________________________ > > -- > Pedro Vicente > ped...@sp... > http://www.space-research.org/ > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Plplot-devel mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-devel -- Pedro Vicente ped...@sp... http://www.space-research.org/ |