Menu

Dangerous warnings?

2005-02-02
2013-03-07
  • Mark Junker

    Mark Junker - 2005-02-02

    Hi,

    during compilation, I got the following warning multiple times:

    include/taoDatatype.h: In destructor `virtual TaoFreeType::~TaoFreeType()':
    include/taoDatatype.h:246: warning: deleting `void*' is undefined

    When TaoFreeType holds objects that requires their constructors to be called, this might be a serious bug.

    Regards,
    Mark

     
    • Limin Fu

      Limin Fu - 2005-02-15

      Sorry for the delay, I didn't notice there is a new message in the forum. In the first page of this project, it always says there is "4 messages in 2 forums", so I thought there is no new message :-(.

      Yes the problem you pointed out is a little bit trouble, because it is intended to hold objects created in loaded C/C++ modules. So their types are unknown in compiling time. Maybe clever compilers can handle this properly. Do you know if there is other way to avoid this problem? Thanks.

      Regards,

      Limin

       

Log in to post a comment.