Sign in to follow this  
Guest zip

C++ Runtime Library Buffer Overrun

Recommended Posts

Hi,I have written a gauge in GDI+ that compiles and runs fine. I kept adding things to draw, arrays of points, etc until I recieved a BufferOverrun message from FS9.exe when loading my gauge. After this, I proceeded to delete half of the drawing code, leaving me with far less code and arrays then were executed on previous successful executions of the gauge. Any ideas as to how to correct this?-Jon

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Sounds like either a wild pointer, or a GDI memory leak somewhere. Make sure you free all GDI resources you allocate, preferably as soon as you're done with them (don't instantiate across callbacks.

Share this post


Link to post
Share on other sites

I did a quick check and confirmed that if you have a null pointer assignment in a gauge, you will trigger this error within FS9.

Share this post


Link to post
Share on other sites

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