Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 617479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:26:25+00:00 2026-05-13T18:26:25+00:00

I have recently been messing around with SFML , a multimedia library. I use

  • 0

I have recently been messing around with SFML, a multimedia library. I use C# so naturally I went for the .Net binding, which you can fetch from the SVN in the latest 2.0 version. After a while of messing around I noticed that my application would sometimes hang up when using the Text object, an object used to draw texture fonts.

Further investigation by using profilers and the almighty Windows task manager revealed that a simple application using Text seemed to be somehow leaking memory. I then made a thread on the SFML forums about it (the thread). However, the main dev of SFML was unable to reproduce the bug on his machine. Thinking I couldn’t be crazy, I sent it to a friend and he reported that he indeed saw it happening.

I made an example for Laurent, the dev of SFML, but he still couldn’t reproduce the bug. Thinking this might be OS related, I sent the file to everyone I could and queried about their OSes. Here are my results:

http://spreadsheets.google.com/ccc?key=0AhcHeJlLGEVUdG1TTi1mTkFxeFlHYVRISXhjbFBDUmc&hl=en

As you can see, Turc and K7 both have the same OS but it doesn’t crash on K7’s (The table is incomplete where the test candidates didn’t haven’t repoted in yet). Anyways, this tells me that clearly it isn’t an OS issue.

So my actual question is, what other factors but the OS or the architecture can influence bugs like this, that only appear on certain systems?

For reference, here is the file I sent my friends:
http://dl.dropbox.com/u/3310651/MemLeak2.rar

And a screenshot of the profiling I did:
http://dl.dropbox.com/u/3310651/sfml_memleak.png

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:26:25+00:00Added an answer on May 13, 2026 at 6:26 pm

    I figured it out after a while of talking on IRC and guys helping me out. The native library wasn’t thread safe, so there were issues with allocating and deallocating referred objects at the same time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently taken the plunge into DirectX and have been messing around a little
I've been toying around with the Parallel library in .NET 4.0. Recently, I developed
Have recently been given a project to complete which uses XML quite extensively.Am looking
I have recently been put in charge of debugging two different programs which will
Yeah so I've been messing around with javascript a while but only recently got
I have been searching on the web to see if I can use GoogleMaps
I have recently been doing a bit of investigation into the different types of
I have recently been thinking about the difference between the two ways of defining
I have recently been working with Python using Komodo Edit and other simpler editors
I have recently been exposed to naked objects. It looks like a pretty decent

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.