Code Monkey home page Code Monkey logo

Comments (6)

AndresTraks avatar AndresTraks commented on July 28, 2024

This can happen if you update the BulletSharp reference in one project, but not another. The runtime expects the newer type, but sees the old type or vice versa. Try rebuilding the entire solution and check that only the newest BulletSharp is referenced everywhere.

You can also check if the VehicleDemo (in demos/Generic) works. I couldn't reproduce the exception.

from bulletsharp.

mifwarior avatar mifwarior commented on July 28, 2024

Ok, in visual studio it works ok, but when i run builded file alone - have exception
Perhaps it's my fault, I was wrong to build "BulletSharp.dll". I build it for "generic".
I traced the error. It is called from RigidBody_GetUnmanagedConstructionInfo in
RigidBodyConstructionInfo::RigidBodyConstructionInfo(btScalar mass, BulletSharp::MotionState^ motionState, BulletSharp::CollisionShape^ collisionShape)

from bulletsharp.

mifwarior avatar mifwarior commented on July 28, 2024

I make a test. Build BulletSharp.dll release and debug mode. Debug mode - work clearly, Release - don't work with exception

from bulletsharp.

mifwarior avatar mifwarior commented on July 28, 2024

I found a solution:
Since running a separate (without studio) application displays more information about the error, I got an error AccessViolation.

Google helped:
https://code.google.com/p/bulletsharp/issues/detail?id=52
http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?t=8180

i change BulletSharp in RaycastVehicle.cpp (line 85), at static RaycastVehicle::RaycastVehicle()
original: RigidBodyConstructionInfo^ info = gcnew RigidBodyConstructionInfo(0, nullptr, nullptr);
by: RigidBodyConstructionInfo^ info = gcnew RigidBodyConstructionInfo(0, nullptr, nullptr,Vector3_Zero);
and all works!

from bulletsharp.

AndresTraks avatar AndresTraks commented on July 28, 2024

I added tests for the RigidBodyConstructionInfo constructor, but couldn't get the access violation. I do remember this issue popping up every now and then.

Can you tell me what your CPU model is? I'm wondering if it could be because of missing SSE support.

from bulletsharp.

mifwarior avatar mifwarior commented on July 28, 2024

https://gist.github.com/mifwarior/6591954f8a48b128e2cf

I'm certainly not the master of C ++, but I have a suspicion that it was not related to the SSE, but it is my guess.
I have 2 computers, one is new, the other one is old and was obtained on both the error. The problem occurs every start.

from bulletsharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.