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

static GroundCallback problem #213

Closed
SummersRain opened this issue Aug 20, 2019 · 2 comments
Closed

static GroundCallback problem #213

SummersRain opened this issue Aug 20, 2019 · 2 comments

Comments

@SummersRain
Copy link

I created multiple FGFDMExec Pointers in the same process for multiple airplanes. Since GroundCallback in the FGLocation class is a static pointer, SetGroundCallback(0) is called when FGFDMExec objects are destructed, which causes other FGFDMExec objects to crash when destructed. On the other hand, when simulating multiple aircraft, a call to SetTerrainGeoCentRadius for the GroundCallback of one aircraft affects the others.

@seanmcleod
Copy link
Member

This is a known issue, take a look at - #201

@bcoconni
Copy link
Member

This is a known issue, take a look at - #201

Agreed, I suggest to continue the discussion in the issue #201 and this is issue is closed as a duplicate.

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

No branches or pull requests

3 participants