I found out some more on my C++ delete problem.

I am linking to the delete function defined in rtl_cpp.h.
A simple delete can work from a RTLinux thread.

BUT 
the following does not work....

class AbstractBaseClass
{
 public :
  AbstractBaseClass() {}
  virtual ~AbstractBaseClass() {}

  virtual void do_sth() = 0;
};

class ChildClass : public AbstractBaseClass
{
  public :
  ChildClass() {}
  virtual ~ChildClass() {}

  void do_sth() {}
};

void main()
{
  AbstractBaseClass* a = new ChildClass;

  delete a;
}

i.e. Something to do with dynamic resolution of function call.
David
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to