Hi,
I have got a programm in C++ with wxwidgets using plplot on windows 7. i
want to save my plplot graph in a fucntion called FenetreHistogramme::Plot :
plotwindow->SavePlot(wxString("svg"),wxString("tt.svg"));
plotwindow->SavePlot(wxString("xfig"),wxString("tt.xfig"));
plotwindow->SavePlot(wxString("ps"),wxString("tt.ps"));
plotwindow->SavePlot(wxString("wxpng"),wxString("tt.png"));
svg, xfig and ps files are saved. With png my program because OnInit is
called twice. Stack trace is
> wxOpenCV.exe!wxOsgApp::OnInit() Ligne 498 C++
wxbase30ud_vc_custom.dll!wxAppConsoleBase::CallOnInit() Ligne 93
C++
wxwidgets.dll!install_buffer(PLStream * pls) Ligne 1301 C++
wxwidgets.dll!plD_line_wxwidgets(PLStream * pls, short x1a, short
y1a, short x2a, short y2a) Ligne 630 C++
plplotd.dll!grline(short * x, short * y, int UNUSED_npts) Ligne 1272
C
plplotd.dll!plP_pllclp(int * x, int * y, int npts, int xmin, int
xmax, int ymin, int ymax, void (short *, short *, int) * draw) Ligne 680
C
plplotd.dll!plP_line(short * x, short * y) Ligne 382 C
plplotd.dll!rdbuf_line(PLStream * pls) Ligne 481 C
plplotd.dll!plbuf_control(PLStream * pls, unsigned char c) Ligne 1035
C
plplotd.dll!plRemakePlot(PLStream * pls) Ligne 993 C
plplotd.dll!c_plreplot() Ligne 3361 C
plplotwxwidgetsd.dll!wxPLplotwindow::SavePlot(const wxString &
devname, const wxString & filename) Ligne 179 C++
wxOpenCV.exe!FenetreHistogramme::Plot(char fenetreActive) Ligne 544
C++
How can I avoid this second call of OnInit?
Thanks for yours answers
------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel