Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VCPP2017] Runtime crash due to dynamic_cast of m_dynamicsWorld #23

Closed
lhog opened this issue Nov 24, 2018 · 1 comment
Closed

[VCPP2017] Runtime crash due to dynamic_cast of m_dynamicsWorld #23

lhog opened this issue Nov 24, 2018 · 1 comment

Comments

@lhog
Copy link

lhog commented Nov 24, 2018

Hi!

I'm trying to run Microverse and getting runtime crush in attempt to execute
auto softDynamicsWorld = dynamic_cast<btSoftRigidDynamicsWorld *>(m_dynamicsWorld.get()); in ScenePhysics::ScenePhysics() :. Crash message is the following:
Exception thrown at 0x00007FF8448C6727 (vcruntime140d.dll) in Microverse.exe: 0xC0000005: Access violation reading location 0x0000000000000004.

If I replacedynamic_cast with static_cast here and in the body of void ScenePhysics::SetAirDensity(const float &airDensity) I'm able to run the game successfully.

Is this a known issue?

@mattparks
Copy link
Member

I have no idea why it needs to use a static_cast for m_dynamicsWorld, but is fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants