home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.interviews
- Path: sparky!uunet!ukma!darwin.sura.net!max.fiu.edu!kluge!kizakker
- From: kizakker@kluge.fiu.edu (Ranjana Kizakkevariath)
- Subject: I get a core dump when trying to add something to Punidraw
- Organization: Florida International University, Miami
- Date: Sun, 24 Jan 1993 17:26:32 GMT
- Message-ID: <C1DCG8.821@fiu.edu>
- Sender: kizakker@kluge (Ranjana Kizakkevariath)
- Lines: 53
-
- Hi,
-
- I have the following code which creates a core dump when I run the program .
- This compiles fine.
-
- Can somebody help me with this. I am trying to modify the "Punidraw" program to
- put some new GraphicComp in it.
-
- Here is the relevant lines from code....
-
- class PictComp : public GraphicComp {
- ..........................
- .......................
- };
-
- ........................
- class MyComp : public GraphicComps {
- public:
- MyComp() {};
- }
-
-
- .................................
- ...............................
-
- Picture* picture = new Picture();
- GraphicComp* Newcomp = new MyComp();
- GraphicView* view = (GraphicView*) Newcomp->Create(COMPONENT_VIEW);
- Newcomp->Attach(view);
-
- Label* MyLabel = new Label ("New Comp");
- MyLabel->SetTransformer(new Transformer(1, 0, 0, 1, 18, 1.5));
- picture->Append(MyLabel);
- PictComp* pcomp = new PictComp(picture);
- Newcomp->Append(pcomp);
-
- ControlInfo* _VPanelControl_924_info = new ControlInfo(Newcomp, "r", "r
- ");
- Tool* _VPanelControl_924_tool = new GraphicCompTool(_VPanelControl_924_info, (GraphicComp*) Newcomp->Copy());
- VPanelControl* _VPanelControl_924 = new VPanelControl("_instance_521", _VPanelControl_924_info, _curCtrl_0);
- GetKeyMap()->Register(_VPanelControl_924);
-
- .........................
-
-
-
- Am I totally in the wrong track? Is there a better way to do this?
-
- Thank you
- Ranjana
-
-
-
-