Re: [Plplot-devel] wxPLplotDemo.cpp -- linux build error

2016-12-18 Thread p.d.rosenberg
Hi Alan, Pedro Yes Alan, that is what I intended. Sorry, that doesn't compile. I was on my way to bed when I sent the email and was doing it from memory. I will try to find a moment today to fix this. I'm not sure what your one line fix is. Feel free to elaborate. wxYield() basically exits the

Re: [Plplot-devel] Comprehensive testing

2016-12-18 Thread Arjen Markus
Hi Alan, > -Original Message- > From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca] > Sent: Saturday, December 17, 2016 4:00 AM > To: Arjen Markus; PLplot development list > Subject: RE: [Plplot-devel] Comprehensive testing > > Thanks for this additional test on MinGW-w64/MSYS2 with you

Re: [Plplot-devel] wxPLplotDemo.cpp -- linux build error

2016-12-18 Thread Alan W. Irwin
On 2016-12-18 23:27- Phil Rosenberg wrote: > The error is in the wxplplotdemo code, not in the wxplplotwindow. In > the demo we must simply wait for the OnCreate message to arrive and be > processed before we grab the stream in Plot(). We may be able to do > that with > while(!m_created) > w

[Plplot-devel] New way to generate wxwidgets debug output

2016-12-18 Thread Alan W. Irwin
I have recently (commit 3c4e6be) implemented a new way for users to optionally obtain wxwidgets debug output. The principal change is you must use the CMake option -DPLPLOT_WX_DEBUG_OUTPUT=ON to get any debug output at all. There is also now an experimental option -DPLPLOT_WX_NANOSEC=ON which you

Re: [Plplot-devel] wxPLplotDemo.cpp -- linux build error

2016-12-18 Thread Pedro Vicente
Hi Phil >This is because there is no > requirement to call Show() immediately after window creation. that's true. but if a user wants to see the plot, he *has* to create Show() at some time, because Show() displays the window on screen. when he does, then that is the time to create the stream.

Re: [Plplot-devel] wxPLplotDemo.cpp -- linux build error

2016-12-18 Thread Phil Rosenberg
Hi Pedro Ah, I had assumed that the OnCreate event was not being triggered at all. I now understand what is happening. Or at least I think I do ;-) Actually now you have pointed out the issue I am surprised the code works on any platform. The error is in the wxplplotdemo code, not in the wxplplotw

Re: [Plplot-devel] The pls NULL fix for some Linux platforms

2016-12-18 Thread Alan W. Irwin
On 2016-12-18 15:01-0500 Pedro Vicente wrote: > to summarize, there are 3 options > > 1) Make the stream creation call happen *only* in > frame->Show(); > delete the function > wxPLplotwindow::OnCreate > > this makes the stream creation to always happen in Show(); only > > 2) Leave the code like i

Re: [Plplot-devel] The pls NULL fix for some Linux platforms

2016-12-18 Thread Pedro Vicente
Hi Alan >> In fact I just did a google search for the terms > event> and there did seem to be a lot of help given on that topic I am still looking at this. > What bothers me about these results is there seems to be two > CreateStream calls in both cases where I suspect (although I don't > know

Re: [Plplot-devel] Cmake generation with wxWidgets on Windows

2016-12-18 Thread Pedro Vicente
Hi Alan >My point is CMake find commands only look for a certain tiny subset of a >given >installation, and if you haven't clobbered anything in that subset it won't >detect >anything wrong. But of course when you try and build and run with >Visual Studio, the missing .lib files were detected.

Re: [Plplot-devel] The pls NULL fix for some Linux platforms

2016-12-18 Thread Alan W. Irwin
On 2016-12-17 00:38-0800 Alan W. Irwin wrote: [...] > So if that is a good summary of the problem (the timing for when the > OnCreate event fires is not deterministic which your debug output > seems to have proved again and again) doesn't wxwidgets have a decent > way to wait for that event to fir