Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Sep 03, 2014 10:38 am 
Offline

Joined: Wed Sep 03, 2014 10:30 am
Posts: 1
Hi all,
I may miss something, but it seems to me a little bug that btGeneric6DofConstraint doesn't have a virtual destructor.
It causes problem when compiled using vs2010:

Sample Code:

Code:
btGeneric6DofSpringConstraint* con = new btGeneric6DofSpringConstraint(*(body),
         btTransform::getIdentity(),
         false);
btTypedConstraint* tc = dynamic_cast<btTypedConstraint*>(con); //fine
dynamic_cast<btGeneric6DofSpringConstraint*>(tc); //crash


May anyone help? thanks a lot.
best,


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], maiklof and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group