SFML community forums

Help => General => Topic started by: CalledMaster on October 05, 2013, 01:41:34 pm

Title: Drawing problem / bug?
Post 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
Title: Re: Drawing problem / bug?
Post by: zsbzsb on October 05, 2013, 02:23:15 pm
Apparently you are not drawing something correctly. So I suggest you write a complete and minimal example that shows the problem.
Title: Re: Drawing problem / bug?
Post by: CalledMaster on October 05, 2013, 05:04:44 pm
Please take a look at the project code.
Title: Re: Drawing problem / bug?
Post by: zsbzsb on October 05, 2013, 05:52:16 pm
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)
Title: Re: Drawing problem / bug?
Post by: CalledMaster on October 16, 2013, 06:00:37 pm
The drawing works fine on startup, only when i dispose and recreate some SFML-objects a few times, the bug appears.
Title: Re: Drawing problem / bug?
Post by: Nexus on October 16, 2013, 06:23:14 pm
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...