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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - zac

Pages: 1 [2]
16
System / Sf::Thread
« on: June 04, 2008, 12:31:02 pm »
I am writing a little file shredding program (Linux and Windows).
The file shred class sets up a thread to do the work, while the main thread still should be able to display the main window (updating the status information and so on).

Now I am encountering a problem with threads:
Thread.Launch() does not even return before the shredding thread finished, though I even use Sleep() in the shredding function to force a task switch thus making other Threads possible to work. This is surely not the purpose of threads, is it?

I have often enough implemented threads by CreateThread in Windows to know it should be working (at least in Windows) like I planned...
The shredding functions are all working properly (in Windows I even reversed my own code to check if it works correctly).

17
Graphics / sf::Sprite::GetWidth/sf::Sprite::GetHeight
« on: May 06, 2008, 06:46:34 pm »
Why on earth have these functions been deleted?
In one situation, I really need those functions, otherwise I had to save the values globally, and this would be far more work.
I would even prefer a "GetRect()" as it exists for sf::String...

Pages: 1 [2]