home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / intervie / 3621 < prev    next >
Encoding:
Text File  |  1993-01-24  |  1.7 KB  |  64 lines

  1. Newsgroups: comp.windows.interviews
  2. Path: sparky!uunet!ukma!darwin.sura.net!max.fiu.edu!kluge!kizakker
  3. From: kizakker@kluge.fiu.edu (Ranjana Kizakkevariath)
  4. Subject: I get a core dump when trying to add something to Punidraw
  5. Organization: Florida International University, Miami
  6. Date: Sun, 24 Jan 1993 17:26:32 GMT
  7. Message-ID: <C1DCG8.821@fiu.edu>
  8. Sender: kizakker@kluge (Ranjana Kizakkevariath)
  9. Lines: 53
  10.  
  11. Hi,
  12.  
  13. I have the following code which creates a core dump when I run the program . 
  14. This compiles fine.
  15.  
  16. Can somebody help me with this. I am trying to modify the "Punidraw" program to 
  17. put some new GraphicComp in it.
  18.  
  19. Here is the relevant lines from code....
  20.  
  21. class PictComp : public GraphicComp {
  22.  ..........................
  23.  .......................
  24.  };
  25.  
  26.  ........................
  27.  class MyComp : public GraphicComps {
  28.  public:
  29.        MyComp() {};
  30.        }
  31.  
  32.  
  33. .................................
  34. ...............................
  35.  
  36. Picture* picture = new Picture();
  37. GraphicComp* Newcomp = new MyComp();
  38. GraphicView* view = (GraphicView*) Newcomp->Create(COMPONENT_VIEW);
  39. Newcomp->Attach(view);
  40.  
  41. Label* MyLabel = new Label ("New Comp");
  42. MyLabel->SetTransformer(new Transformer(1, 0, 0, 1, 18, 1.5));
  43. picture->Append(MyLabel);
  44. PictComp* pcomp = new PictComp(picture);
  45. Newcomp->Append(pcomp);
  46.  
  47. ControlInfo* _VPanelControl_924_info = new ControlInfo(Newcomp, "r", "r
  48.   ");
  49. Tool* _VPanelControl_924_tool = new GraphicCompTool(_VPanelControl_924_info, (GraphicComp*) Newcomp->Copy());
  50. VPanelControl* _VPanelControl_924 = new VPanelControl("_instance_521", _VPanelControl_924_info, _curCtrl_0);
  51. GetKeyMap()->Register(_VPanelControl_924);
  52.  
  53. .........................
  54.  
  55.  
  56.  
  57.  Am I totally in the wrong track? Is there a better way to do this?
  58.  
  59.  Thank you
  60.  Ranjana
  61.  
  62.  
  63.  
  64.