• Advertisement
Sign in to follow this  

SFML troubles

This topic is 1846 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey everyone, happy holidays!

First off, I'm sort of a beginner in programming, but since I got bored of the usual high school assignments of reading and writing to text files, I decided to try my luck with sfml, but I run into a problem which I guess is not that common (couldn't find the answer on the internet). So the solution was obvious, I decided to ask a question on the forum I am always stalking :)

The problem:

After compiling the code and running it, I only get an empty console window and nothing else (i copied the code from the sfml website, which is supposed to output a green circle in a new window). I tried marking lines with the great red dot, but when debugging it doesn't let me jump to other lines, seems like the program itself is just stuck. I am using visual studio 11, I get the same thing while using visual c++ 2010 though.

Looking forward to your replies

Share this post


Link to post
Share on other sites
Advertisement

The problem was myself, I was so anxious to get going and didn't wait the 30 seconds the program needed to open a window(for me at least), i guess this was a little unexpected since i came from doing very small stuff that loads instantly.

Share this post


Link to post
Share on other sites

I don't know why it takes that long, I'm not really loading that much(i assume that you mean there's a lot of code or objects being created, correct me if I misunderstood you).

Share this post


Link to post
Share on other sites

Just curious about what's going on prior to the ShowWindow() call. I don't know how you're implementing anything, but that seems like a long time to get a window open.

Share this post


Link to post
Share on other sites

I think we'd be interested in seeing the code you have because it does seem really odd it'd take 30 seconds for a window to show up just to do what you are doing.

Share this post


Link to post
Share on other sites

Could you please post your code to the issue you had because, even though you solved that one another issue might have presented itself (a general rule of thumb in the ever-progressing world of coding).

 

It is interesting as it only ever takes me a couple of seconds (max) from Console to Main window. I am curious to the specs of your machine also, if you wouldn't mind providing this?

 

Another thing: did you use the basic "Get a window to show" tutorial provided on the official website, or use the API without reference?

 

Regards,

 

Stitchs.

Share this post


Link to post
Share on other sites

Yes, sure, it was the basic "Get a window to show" tutorial(the part that only deals with opening a window) in their "Tutorials" section (It was SFML 2.0 by the way, kind of forgot to mention that)

 

My computer's:

Processor: Intel Core 2 Quad 2.5Ghz
32bit OS
Ram: 3.25Gb
Graphics card: GF 9800GT

My computer is really old, almost 4 years, so I guess that's the problem
 

Share this post


Link to post
Share on other sites
Yes, sure, it was the basic "Get a window to show" tutorial(the part that only deals with opening a window) in their "Tutorials" section (It was SFML 2.0 by the way, kind of forgot to mention that)
 
My computer's:

Processor: Intel Core 2 Quad 2.5Ghz
32bit OS
Ram: 3.25Gb
Graphics card: GF 9800GT

My computer is really old, almost 4 years, so I guess that's the problem
 

No, I guarantee that's not the problem. It's something else. If you wold just paste your code on this board, we cold probably point out what's wrong, but since you won't we can't help you.

Or, you can go to the dev-sfml.org forums and ask them

Share this post


Link to post
Share on other sites

[quote name='BeerNutts' timestamp='1357154849' post='5016800']
If you wold just paste your code on this board, we cold probably point out what's wrong, but since you won't we can't help you.
[/quote][quote name='big-green' timestamp='1356962316' post='5016057']
Yes, sure, it was the basic "Get a window to show" tutorial(the part that only deals with opening a window) in their "Tutorials" section
[/quote]

 

I think the poster assumes this answers the "show your code" request, but as I'd like to point out to the OP from my own experience: if the tutorial works for people, but not for you, there's a change you made somewhere that's causing the discrepancy.  If you quite literally pasted the tutorial in whole-sale, then it might have to do with your compiler/IDE settings.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement