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

Author Topic: Window not opening on another computer  (Read 3826 times)

0 Members and 1 Guest are viewing this topic.

dukeofgaming

  • Newbie
  • *
  • Posts: 1
    • View Profile
Window not opening on another computer
« on: November 16, 2009, 04:47:00 am »
Hi,

I just converted a linux application from freeglut to SFML and everything is running fine... on my virtual instance of Ubuntu 9.10. The problem is when I try to execute it on the native Ubuntu 9.10 instance of my netbook, the window closes almost immediately.

I tried debugging the project in my netbook and found that after the first iteration in my main loop, the line "this->application.IsOpened()" (line 60) returns false and then exits the program.

You can see the code over here: http://bitbucket.org/dukeofgaming/datadrift/src/tip/GApplication.h#cl-60

I tried changing the thing to plain "true" and same thing, window disappears after the first iteration (it never really shows, it just shows the taskbar button, and then disappears).

Thought there might be something wrong with the compilation on my netbook, so I emailed the executable to myself (chmoded +x of course), ran it... same thing.

Btw, I have compiz running on my netbook and not in my virtual instance... I tried deactivating compiz... and same thing.

I am using libsfml 1.4.

Hope you can help me, thanks in advance.

David

Edit: Just solved it... it was something extremely stupid: I left some copied code that closed the window when resized, and on the netbook for some reason the window resized itself automatically *facepalm*.