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.


Messages - Kalishir

Pages: [1]
1
DotNet / Re: SFML.Text memory leak (?)
« on: June 07, 2013, 06:46:07 pm »
So you did. I should learn to read. I assumed that you had used the font deconstructor as he said his issue was with Text objects not being cleaned up.

2
DotNet / Re: SFML.Text memory leak (?)
« on: June 07, 2013, 04:49:49 am »
I'm pretty sure this problem exists with the Texture deconstructor too, which would make sense being they both use the ObjectBase deconstructor.

I had the same problem when not calling texture.Dispose(), but only using Windows XP. The error did not occur on my Win8 machine. Both machines are using VS2010Express.

3
DotNet / Re: Comparing Texture Objects
« on: June 06, 2013, 07:19:22 pm »
Yeah, I had considered that, but I was hoping to not have the overhead of a Dictionary. Not to mention its troubles when you have a lot of inserts/deletions.

If that's the best way though, so be it.

4
DotNet / Comparing Texture Objects
« on: June 06, 2013, 06:20:33 pm »
Am I correct in thinking there is no way to compare two texture objects to determine if they were constructed from the same file?

I am attempting to create a content manager that will help me minimize the number of duplicate textures by returning one from a list if it already exists. However I cannot seem to build a predicate function that returns properly.

Taking a quick look at the source files I did see that Equals and GetHashCode for Textures has not been overridden; which is what I was initially using to compare the objects. (This will, of course, return false).

Has anyone else had any luck doing something similar to what I am attempting.

Pages: [1]
anything