SFML community forums
Help => General => Topic started by: CalledMaster on October 05, 2013, 01:41:34 pm
-
Hey guys,
first of all, i'm using SFMl.net, so all the code in the project is written in C#.
Here's the link to my project: https://dl.dropboxusercontent.com/u/64239360/Ze2D.zip (https://dl.dropboxusercontent.com/u/64239360/Ze2D.zip).
Now to my problem:
I'm using a simple menu system that allows the user to enter a Game-Menu when pressing ESC during a Game-Session (start the project, it'll explain it). This normally looks like this:
---
(https://dl.dropboxusercontent.com/u/64239360/gamemenu.png)
---
When you click on "Resume", the Game-Session is active again and the Game-Menu closes and you can enter it with ESC again.
When i repeat this several times, this happens:
---
(https://dl.dropboxusercontent.com/u/64239360/gamemenu_bugged.png)
---
(https://dl.dropboxusercontent.com/u/64239360/gamemenu_bugged2.png)
---
Or even more crazy results...
Even the Main-Menu is affected after the bug appeared once.
---
(https://dl.dropboxusercontent.com/u/64239360/mainmenu_bugged.png)
---
I have no idea why this happens, so i don't know if i didn't understand how to use the API correctly or if it's just a bug or anything else.
I'm using VisualStudio 2010 Ultimate on Windows 7 HP 64bit.
Please help me. :'(
Thank you,
Andi
-
Apparently you are not drawing something correctly. So I suggest you write a complete and minimal example that shows the problem.
-
Please take a look at the project code.
-
Please take a look at the project code.
I don't have time to dig through your entire project. (http://en.sfml-dev.org/forums/index.php?topic=5559.msg36368#msg36368)
-
The drawing works fine on startup, only when i dispose and recreate some SFML-objects a few times, the bug appears.
-
Please debug yourself or post a minimal example as described in the forum rules (link by zsbzsb). It's not our task to find the errors in your project...