Sign in to follow this  

passing a pointer multiple times (directx but prob not specific))

This topic is 4244 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

ok im not entirely sure if this is possible or even a good idea for that matter but my main program initialises the device and the window it then initialises a class to manage objects within the scene, this manage a number of other objects such as my XfileLoading class all of which require pointers to my applications device passing the pointers multiple times causes program crashes prior to writing the object manager all calls to the Xfile loading class where handled by the main program and worked fine

Share this post


Link to post
Share on other sites
Quote:
Original post by Stowelly
ok im not entirely sure if this is possible or even a good idea for that matter but

my main program initialises the device and the window it then initialises a class to manage objects within the scene, this manage a number of other objects such as my XfileLoading class all of which require pointers to my applications device

passing the pointers multiple times causes program crashes

prior to writing the object manager all calls to the Xfile loading class where handled by the main program and worked fine


There's nothing wrong with passing a pointer around. You're probably trying to use it after the object it points to has been deleted or before it was created.

Share this post


Link to post
Share on other sites

This topic is 4244 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this