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

Author Topic: [Visual C++ 2008] Command Prompt not shutting down  (Read 3809 times)

0 Members and 1 Guest are viewing this topic.

Adam Eldemire

  • Newbie
  • *
  • Posts: 5
    • View Profile
[Visual C++ 2008] Command Prompt not shutting down
« on: August 05, 2009, 10:59:31 pm »
For my first SFML application ( a simple test app), as soon as I call
Code: [Select]
window->Close();
the console window closes immediatly. However, in my new project, I am forced to close the consloe window automatically. This causes some errors with my file logging system.

Is there a function that I have to add, or is my memory just foggy?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
[Visual C++ 2008] Command Prompt not shutting down
« Reply #1 on: August 05, 2009, 11:04:46 pm »
Can you show a minimal example that reproduces the problem?
Laurent Gomila - SFML developer

Adam Eldemire

  • Newbie
  • *
  • Posts: 5
    • View Profile
[Visual C++ 2008] Command Prompt not shutting down
« Reply #2 on: August 05, 2009, 11:38:30 pm »
It seems to happen whenever the render window is created outside of int main(). That seems to be all I can glean.

Oz1571

  • Newbie
  • *
  • Posts: 28
    • View Profile
[Visual C++ 2008] Command Prompt not shutting down
« Reply #3 on: August 06, 2009, 02:49:20 pm »
My render window is created outside of int main(), and I don't have that issue, so it has to be something else. I'm running SFML 1.5.