Re: [Plplot-devel] qt_example memory management issues (SOLVED!)

2019-01-02 Thread Alan W. Irwin
Hi António: Thanks for your recent replies concerning my Qt5 education and also your successful tests of the previous commit. With commit plplot-5.14.0-16-g02652c9a4 I am virtually positive from valgrind results that I have solved these qt_example memory management issues while still being able

Re: [Plplot-devel] qt_example memory management issues

2019-01-01 Thread António Rodrigues Tomé
On Tue, Jan 1, 2019 at 10:09 PM Alan W. Irwin wrote: > On 2018-12-31 11:44-0800 Alan W. Irwin wrote: > > > On 2018-12-31 11:28-0800 Alan W. Irwin wrote: > > > >> [...] by the following temporary changes to > >> qt_example: > >> > >>argc = 1; > >>QApplication a( argc, argv ); > >>// Mu

Re: [Plplot-devel] qt_example memory management issues

2019-01-01 Thread Alan W. Irwin
On 2018-12-31 11:44-0800 Alan W. Irwin wrote: On 2018-12-31 11:28-0800 Alan W. Irwin wrote: [...] by the following temporary changes to qt_example: argc = 1; QApplication a( argc, argv ); // Must construct an instance of PlotWindow after QApplication. PlotWindow * win = new Plot

Re: [Plplot-devel] qt_example memory management issues

2018-12-31 Thread Alan W. Irwin
On 2018-12-31 11:28-0800 Alan W. Irwin wrote: [...] by the following temporary changes to qt_example: argc = 1; QApplication a( argc, argv ); // Must construct an instance of PlotWindow after QApplication. PlotWindow * win = new PlotWindow( Argc, Argv ); // Clean up Argv now t

[Plplot-devel] qt_example memory management issues

2018-12-31 Thread Alan W. Irwin
On 2018-12-31 16:05- António Rodrigues Tomé wrote: Hi Alan let's do a small change in qt_example. cpp to make it more orthodox. QApplication a( argc, argv ); PlotWindow win ( Argc, Argv ); win.show(); when I do this the program always crashes on close in my system. much likely be