Jump to content
Sign in to follow this  
Guest zip

C++ Runtime Library Buffer Overrun

Recommended Posts

Guest Jon_Gibbs

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
Guest zip

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
Guest zip

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...