Hi Alessandro, When you delete your objects, do: delete ec; delete dialog; Rene Brun On Tue, 20 May 2003, Alessandro Thea wrote: > Hi rooters, > I'm tryng to create a dialog box with an embedded canvas inside but I > get an error message that puzzles me. > I'm following the code of RootShower example, and I have used > essentially these commands: > > { > TGWindow *main = gClient->GetRoot(); > TGTransientFrame *dialog = new TGTransientFrame(main, main,100,100); > TRootEmbeddedCanvas *ec = new TRootEmbeddedCanvas("cx", dialog, 100, > 100); > dialog->AddFrame(ec); > dialog->MapSubwindows(); > dialog->Resize(120,120); > dialog->MapWindow(); > } > > And in root prompt I get: > > root [0] .x MyDialog.C > (the windows appears, I close it and then...) > root [1] > root [1] Error in <RootX11ErrorHandler>: BadDrawable (invalid Pixmap or > Window parameter) (XID: 41943346, XREQ: 62) > > I can't understand if I am making some kind of mistake or simply, it is > not possible to use TRootEmbeddedCanvas in this way. > > Any suggestion? > > Thanks, > Alessandro. > > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET