[QUOTE=andersonmat;20129798]Well, it is .NET. :v:
[editline]lol[/editline]
Awwww yeah, rate me dumb. It is .NET. It's considerably slower, bulky and Microsoft made it. :downs:[/QUOTE]
back to the web programming forum you go.
[QUOTE=blankthemuffin;20129905]Well what is the bug Xeon06?[/QUOTE]
[QUOTE=Xeon06;20108333]I need some help folks, currently trying to hammer down a memory leak bug in SFML.Net 2.0 and I would like it if you guys could try this app out and tell me if it crashes or hangs up, and if so, at how many Text instances were you. I also need to know what OS you are running (if Win7 what build) and what architecture (x86, x64). This would help me greatly folks.
[url]http://dl.dropbox.com/u/3310651/Memleak2.rar[/url][/QUOTE]
I gave a better explanation over at SO:
[url]http://stackoverflow.com/questions/2232002/system-specific-bug-hunting[/url]
And here is the link to the SFML thread:
[url]http://www.sfml-dev.org/forum/viewtopic.php?t=2084[/url]
I can't figure it out for the life of me.
[QUOTE=Xeon06;20128792]Still trying to hammer that bug, I ruled out OS and architecture as a problem, what else could cause a .Net application to have a bug on only certain machines?[/QUOTE]
It doesn't work for me. I'll look at it if you PM me the source.
[QUOTE=Ortzinator;20131067]It doesn't work for me. I'll look at it if you PM me the source.[/QUOTE]
Thanks, I really appreciate the help. No need to PM, it's no big secret, it's only that:
[code]
using System;
using SFML.Window;
using SFML.Graphics;
using System.Diagnostics;
namespace SFML1
{
class Game
{
static void Main()
{
//NOTE: Compile targeting the x86 architecture if you get Bad Image Format Exceptions
RenderWindow app = new RenderWindow(new VideoMode(500, 500, 32), "SFML1");
app.Closed += new EventHandler(OnClosed);
while (app.IsOpened())
{
app.DispatchEvents();
app.Clear();
Text t = new Text("Text object instances: " + Text.Count);
app.Draw(t);
app.Display();
}
}
static void OnClosed(object sender, EventArgs e)
{
((Window)sender).Close();
if (System.Diagnostics.Debugger.IsAttached) //Hotfix for app crashing in Debug mode when closing if using Text
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
}
}
[/code]
I modified the .Net bindings slightly, adding the ObjectCount property to the Text object. It's only a static counter that I increment in the constructor and decrement in the destructor.
Well I meant send me the solution so I can debug it.
[QUOTE=majorlazer;20130791]back to the web programming forum you go.[/QUOTE]
^
Seriously, what are you doing out of the web programming forum?
[QUOTE=Xeon06;20128792]Still trying to hammer that bug, I ruled out OS and architecture as a problem, what else could cause a .Net application to have a bug on only certain machines?[/QUOTE]
What's the bug? Have you considered log spam? As well, is the bug a crash bug? You might be able to use AppDomain.CurrentDomain.UnhandledException to write a crash dump.
:downs:
[quote=andersonmat;20131341]oh hardy harr harr mr. 2010.[/quote]
2006*
but nice attempt at a join date attack, literally the highest form of trolling!
[QUOTE=majorlazer;20131393]2006*
but nice attempt at a join date attack, literally the highest form of trolling![/QUOTE]
I'm not attacking anything, it's a joke bud, get over yourself. Just because you think your opinion is greater than mine doesn't mean you have to "shew" me to the Web Programming forum.
[QUOTE=Xeon06;20130792]I gave a better explanation over at SO:
[url]http://stackoverflow.com/questions/2232002/system-specific-bug-hunting[/url]
And here is the link to the SFML thread:
[url]http://www.sfml-dev.org/forum/viewtopic.php?t=2084[/url]
I can't figure it out for the life of me.[/QUOTE]
[cpp]Text t = new Text("Text object instances: " + Text.Count);
[/cpp]
You are creating an object every frame :\.
Also because of the way .net works. It wont be deleted every iteration. It will wait until the garabage collector gets it.
[QUOTE=andersonmat;20130229]Douche.[/QUOTE]
And this is coming from the person making completely invalid arguments against specific frameworks. "Microsoft made it" is not an argument, and saying so just makes you look like a complete idiot.
[QUOTE=zyxxyz;20133321]And this is coming from the person making completely invalid arguments against specific frameworks. "Microsoft made it" is not an argument, and saying so just makes you look like a complete idiot.[/QUOTE]
That was simply a joke, I like to have a good time and joke. There were other things that preceded that statement that were true about .NET. Furthermore, a "Fuck Off" smiley face isn't much of an argument either.
So it's a fact that it's considerably slower and bulky? Compared to?
[QUOTE=efeX;20133761]So it's a fact that it's considerably slower and bulky? Compared to?[/QUOTE]
Not using a framework?
DirectX is horrid. Is does what OpenGL has been able to do for ages and works on one system. Rate me boxes.
[highlight](User was banned for this post ("troll" - garry))[/highlight]
Hmm is there a mail server that allows plugins? If not, what protocol would be best for checking for new emails constantly?
[QUOTE=Eleventeen;20134003]DirectX is horrid. Is does what OpenGL has been able to do for ages and works on one system. Rate me boxes.[/QUOTE]
Well, as much as your point may be valid. I have no idea how this is related to anything, nor do I think you have any idea why it's valid. I'm pretty sure you have no real experience of either API and you're just talking a load of crap you read on the internet.
blah blah blah, welcome back flamewars. :sigh:
As for actual development, I've just finished writing a high-score manager class for my game. I wasn't sure about the best way to store the format so I just went for a custom binary-format, and that seems to be working quite well. So far it doesn't have sorting, but that's just about to be added.
[editline]07:25PM[/editline]
Actually, a quick question for you all. In my high-score manager, I have it opening the file in the constructor, loading the data and leaving the handle open until you close it yourself or destroy the object. Is this an acceptable way of doing it, or should I be loading the data and then closing the handle?
As it currently stands, leaving it open means when I write it I need to close the handle, open it in output mode, output my stuff and then reopen it in input mode. :/
[QUOTE=high;20134276]Hmm is there a mail server that allows plugins? If not, what protocol would be best for checking for new emails constantly?[/QUOTE]
With gmail for example, you can use SMTP, POP3 and IMAP, all SSL/TLS enabled. POP3 sucks though, if you want to be instantly notified of new mail, use IMAP.
[QUOTE=mechanarchy;20134818]blah blah blah, welcome back flamewars. :sigh:
As for actual development, I've just finished writing a high-score manager class for my game. I wasn't sure about the best way to store the format so I just went for a custom binary-format, and that seems to be working quite well. So far it doesn't have sorting, but that's just about to be added.
[editline]07:25PM[/editline]
Actually, a quick question for you all. In my high-score manager, I have it opening the file in the constructor, loading the data and leaving the handle open until you close it yourself or destroy the object. Is this an acceptable way of doing it, or should I be loading the data and then closing the handle?
As it currently stands, leaving it open means when I write it I need to close the handle, open it in output mode, output my stuff and then reopen it in input mode. :/[/QUOTE]
Is there no way to open it in both reading and writing mode? You could do it in python but I am not sure about other langauges.
[QUOTE=Jallen;20126350]Wierd... I made a random paths program, and rand from stdlib.h, no matter what the seed (I seed it with time(NULL) at the beginning of the program) always ends up giving me the same strange shape...
Here's a picture of this strange shape:
[img_thumb]http://i50.tinypic.com/15r0ais.jpg[/img_thumb]
Holy fucking shit it's symetrical on the line y = -x
THIS IS FUCKING TERRIFYING.
And here's an image of the program behaving nicely.
[img_thumb]http://i45.tinypic.com/53sih4.jpg[/img_thumb][/QUOTE]
Judging by reactions below your post, maybe you should call this app Rorschach 2.0.
[QUOTE=blankthemuffin;20134786]Well, as much as your point may be valid. I have no idea how this is related to anything, nor do I think you have any idea why it's valid. I'm pretty sure you have no real experience of either API and you're just talking a load of crap you read on the internet.[/QUOTE]
same thing he does when he bashes microsoft/windows
[QUOTE=iPope;20135464]Is there no way to open it in both reading and writing mode? You could do it in python but I am not sure about other langauges.[/QUOTE]
... Whoa. Maybe I just completely misread that page I was looking at before, or it was just plain wrong, but apparently std::ios::out [b]doesn't[/b] have strange side-effects (like file truncation). Good old cplusplus.com to the rescue!
Thank you for making me question my own stupidity :smile:
[QUOTE=high;20131697][cpp]Text t = new Text("Text object instances: " + Text.Count);
[/cpp]
You are creating an object every frame :\.
Also because of the way .net works. It wont be deleted every iteration. It will wait until the garabage collector gets it.[/QUOTE]
Indeed, but this is still the correct way of doing it, I don't need to declare my objects before my function (according to the SFML.Net dev anyways). The problem is that since this object uses unmanaged memory, it's sometimes just hangs up when it arrives at GC for some reason.
The real problem IMO is in the way SFML does stuff. It shouldn't require objects to draw, but merely method calls, ie: DrawText(string text) instead of Draw(Text text).
[QUOTE=Xeon06;20128792]Still trying to hammer that bug, I ruled out OS and architecture as a problem, what else could cause a .Net application to have a bug on only certain machines?[/QUOTE]
What bug exactly? Highly doubt its .Net.
[cpp]Text t = new Text("Text object instances: " + Text.Count + 1);[/cpp]
Fixed :smug:
[QUOTE=streeter;20135905]What bug exactly? Highly doubt its .Net.[/QUOTE]
It eventually hangs up on certain systems when there are enough string instances instead of garbage collecting them.
[QUOTE=r4nk_;20135912][cpp]Text t = new Text("Text object instances: " + Text.Count + 1);[/cpp]
Fixed :smug:[/QUOTE]
That's negligible.
[QUOTE=efeX;20133761]So it's a fact that it's considerably slower and bulky? Compared to?[/QUOTE]
C? C++? D? Don't tell me you've never felt a few seconds of a .NET application loading before.
Who comes to this thread just to look at pretty pictures of other peoples awesome creations and only wishes you had the capacity to do it yourself?
I genuinely am impressed some of the stuff you guys can do and I love reading up about but I do tend to scroll over the big code parts and look for more screenshots :p
Keep it up guys!
Sorry, you need to Log In to post a reply to this thread.