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

Pages: [1]
1
DotNet / SFML.Text memory leak (?)
« on: June 06, 2013, 12:17:02 am »
I called the following code segment once per frame:

Text txt = new Text("sometext", font);
txt.Position = new Vector2f(0, 30);
window.Draw(txt);

And I received a massive memory leak (~600kb/sec at 60 fps) that didnt get cleaned up by the garbage collector. Commenting the code out or moving the creation of txt outside of the loop resolved the memory usage increase. I think there might be some problem with the constructor (as the memory obviously doesnt get cleaned up afterwards). You might want to look into this?

bye, CBenni

2
General / Linker doesn't create libs
« on: September 25, 2010, 10:36:19 am »
Hy,

Wanting to update my SFML-2.0 build, I updated using the branch-repository.
Compiling with Visual Studio 2010 worked, but the linker threw the warning MSB8012 if I built the DLLs, followed by a weird Text.

In addition it didn't build the .lib files (e.g. sfml2-system(-d).lib), eventhough the Incremental Linker Files (.ilk) and the DLLs were generated.

Part of the Build Log:
Code: [Select]
C:\Programme\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(C:\Programme\SFML\SFML-2.0 Data\build\vc2008\..\..\Temp\vc2008\sfml-system\Debug DLL\sfml-system.dll) does not match the Linker's OutputFile property value (C:\Programme\SFML\SFML-2.0 Data\lib\vc2008\sfml2-system-d.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).

C:\Programme\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(sfml-system) does not match the Linker's OutputFile property value (sfml2-system-d). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).

Link:
Creating library C:\Programme\SFML\SFML-2.0 Data\build\vc2008\..\..\Temp\vc2008\sfml-system\Debug DLL\sfml-system.lib and object C:\Programme\SFML\SFML-2.0 Data\build\vc2008\..\..\Temp\vc2008\sfml-system\Debug DLL\sfml-system.exp

LinkEmbedManifest:
Creating library C:\Programme\SFML\SFML-2.0 Data\build\vc2008\..\..\Temp\vc2008\sfml-system\Debug DLL\sfml-system.lib and object C:\Programme\SFML\SFML-2.0 Data\build\vc2008\..\..\Temp\vc2008\sfml-system\Debug DLL\sfml-system.exp

sfml-system.vcxproj -> C:\Programme\SFML\SFML-2.0 Data\build\vc2008\..\..\Temp\vc2008\sfml-system\Debug DLL\sfml-system.dll

FinalizeBuildStatus:
Deleting file "C:\Programme\SFML\SFML-2.0 Data\build\vc2008\..\..\Temp\vc2008\sfml-system\Debug DLL\sfml-system.unsuccessfulbuild".

Touching "C:\Programme\SFML\SFML-2.0 Data\build\vc2008\..\..\Temp\vc2008\sfml-system\Debug DLL\sfml-system.lastbuildstate".

Build succeeded.

Time Elapsed 00:00:03.31
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========


Hope you can do something with this information ;)

What can I do? Is this an Error of SFML or me?
I have compiled SFML in VS2010 before and never had problems, how come this revision doesn't work?

thanks for your help,
CBenni::O

3
Graphics / Changes in sf::Renderwindow?
« on: July 19, 2010, 10:03:40 pm »
Hy

After Laurent built the new Revision of SFML 2.0, including the Text-bug-fix, I tried to recompile my Project, and suddenly the code (using sf::Renderimage for the GUI-Elems) which had worked for weeks producing this:
Working Program

looks like this:
Not Working Program
 :shock:

What happened here? I didn't change my Code at all :?
Is it an Error in my Code or an SFML Bug?

bye,
CBenni::O

4
Graphics / Problems with sf::Text
« on: July 16, 2010, 03:37:28 pm »
Hy,

I'm building some kind of GUI Framework using SFML 2.0 (quite a new revision, less than a week old) and had several Problems with drawing sf::Texts:

These Pictures show the Bug:
Pict1 (Starting Situation)
and Pict2 (After some Text Input)

Problem (as you can probably see) is that the fontsize isn't updated correctly. I haven't been able to Isolate some kind of minimal code reproducing this, I can Upload my code on request.

Has anyone ever have a similar Problem, is it a Bug in SFML 2.0 or what can I do about it?

Thanks ;)

bye, CBenni::O

5
General / Using SFML in Borland C++ Builder 6
« on: May 21, 2010, 01:00:31 pm »
Hy,

I have been trying to install the SFML(2.0)-Graphics-part in Borland C++ Builder 6

I have found this german thread where I found out how to convert the SFML libs correctly.

But now I get lots and lots of compiler errors:
Quote
E2478 Too many template parameters were declared for template 'Utf<8>'


Double-clicking on the error leads me to Utf.inl...

This is what I included:
Code: [Select]
#pragma comment(lib, "sfml-systemB.lib")
#pragma comment(lib, "sfml-graphicsB.lib")
#pragma comment(lib, "sfml-mainB.lib")
#include "SFML/Graphics.hpp"
#include "SFML/System.hpp"


I do not hava a clue how to resolve this, I haven't changed anything of SFML exept for the .lib files...

Thanks for every Help ;)

bye, CBenni::O

6
General discussions / SFML 2.0 & Memory Leaks
« on: March 12, 2010, 10:37:16 pm »
Hy,

I was playing a bit with the vld (Visual Leak Detector) and SFML, and this piece of Code (taken from the example Code) Throws 83 Memory Leaks!

Code: [Select]
#include <vld.h>
#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>

int main()
{
// Create the main window
sf::RenderWindow App(sf::VideoMode(800, 600), "SFML window");
 
// Load a sprite to display
sf::Image Image;
if (!Image.LoadFromFile("cute_image.jpg"))
return EXIT_FAILURE;
sf::Sprite Sprite(Image);
 
// Create a graphical string to display
sf::Font Arial;
if (!Arial.LoadFromFile("arial.ttf"))
return EXIT_FAILURE;
sf::Text Text("Hello SFML", Arial, 50);
 
// Load a music to play
sf::Music Music;
if (!Music.OpenFromFile("nice_music.ogg"))
return EXIT_FAILURE;

// Play the music
Music.Play();
 
// Start the game loop
while (App.IsOpened())
{
// Process events
sf::Event Event;
while (App.GetEvent(Event))
{
// Close window : exit
if (Event.Type == sf::Event::Closed)
App.Close();
}
 
// Clear screen
App.Clear();
 
// Draw the sprite
App.Draw(Sprite);
 
// Draw the string
App.Draw(Text);
 
// Update the window
App.Display();
}
 
return EXIT_SUCCESS;

}


Whats the matter? Most of them appear to be inside of sf::Drawable...
bye, CBenni::O

7
Audio / Problems with sf::SoundBuffer
« on: March 05, 2010, 08:36:06 pm »
Hy,

Why doesn't this code work:

Code: [Select]
int main()
{
sf::SoundBuffer MSB;
MSB.LoadFromFile("nice_music.ogg");
sf::Sound MySound2(MSB);
MySound2.Play();
if(MySound2.GetStatus() != sf::Sound::Playing)
{
// Debugging shows that this spot is executed...
}
sf::Sleep(10.0f);
return 0;
};

I am using the SFML 2.0 from the trunk...

Is it because I dont create a Window, or why else?

bye, CBenni::O

8
General / Program crashes on exit inside of openal.dll
« on: March 03, 2010, 10:18:46 pm »
Hy!

I'm trying to build some kind of resource Manager with  SFML 2.0 (from the SVN). I got quite far all right, and it worked perfectly for sf::Image,
but as soon as I load an sf::Music, sf::Sound or sf::SoundBuffer, the Program displays an uncaught exeption after leaving the main function.
Even the destructor of my ResourceManager is left before I get the Exeption.

But it says that there is no Code availeable for the Spot where the exeption comes from, disassembly leads my into somewhere inside OpenAL.dll.

The "funny" thing is, I haven't been able to recreate the problem in a shorter context. Does someone have a Clue what is going on here?

If you need some Code, I can insert a download for the Complete Source

Thanks in advance.

bye, CBenni::O

Pages: [1]