Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Drawing problem / bug?  (Read 1966 times)

0 Members and 1 Guest are viewing this topic.

CalledMaster

  • Newbie
  • *
  • Posts: 4
    • View Profile
Drawing problem / bug?
« 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.

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:

---

---

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:
---

---

---

Or even more crazy results...

Even the Main-Menu is affected after the bug appeared once.

---

---

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
« Last Edit: October 05, 2013, 01:44:32 pm by CalledMaster »

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Drawing problem / bug?
« Reply #1 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.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

CalledMaster

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Drawing problem / bug?
« Reply #2 on: October 05, 2013, 05:04:44 pm »
Please take a look at the project code.

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Drawing problem / bug?
« Reply #3 on: October 05, 2013, 05:52:16 pm »
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

CalledMaster

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Drawing problem / bug?
« Reply #4 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.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Drawing problem / bug?
« Reply #5 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...
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything