[pdp-discuss] 'Operation: delete not defined for type: (void)' error

Randall C. O'Reilly Randy.OReilly at colorado.edu
Tue Oct 24 21:28:44 MDT 2006


you declared but did not define the constructor function (TesterCtrl()) -- not 
sure why it fails only in some contexts, and clearly the error message should 
be better...

- Randy

On Tuesday 24 October 2006 07:24, Richard Jones wrote:
> I've written one of those handy ctrl scripts that is used so much in
> the book examples.  It's giving me some odd problems.   The entire
> .css file is shown below.  When I try to autorun it, the program
> crashes with the following error:
>
>      bp++> Operation: delete not defined for type: (void)
>      ./Tester_Ctrl.css
>
>      >0
>
>      PDP++ saving recover file(s) and exiting from signal:
> segmentation violation
>      Segmentation fault
>
>
> If I load the same file at the css prompt, however:
>
>      bp++>load "/Tester_Ctrl.css"
>
> and then do:
>
>      bp++>EditObj(tester_ctrl)
>
> it works fine.  No 'delete not defined' error, no core dump.
> Interestingly, if I've comment out the next-to-last line in the css
> file that instantiates the tester_ctrl instance, do the load at the
> prompt, and then do:
>
>      bp++>Tester_Ctrl tester_ctrl;
>
> I get the dump and error.   What is the error telling me and what
> should I do about it?
>
> Many thanks.


More information about the PDP-Discuss mailing list