Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 14 Dec 2009
Offline Last Active Dec 22 2013 08:55 AM

#5011227 program performance

Posted by on 16 December 2012 - 05:09 AM

Always go for clear and readable code first, and only do micro-optimizations when you know for certain you need it, preferibly when your profiler tells you that it is indeed a performance bottleneck.

#5011112 How long should i study a programming language before moving on to libraries?

Posted by on 15 December 2012 - 06:39 PM

Also, how do i motivate myself to program every day?

Work on something that intrests you would be my suggestion, it has worked well for me at least.

#4797869 Strange Memoryleak

Posted by on 13 April 2011 - 03:21 AM

I'm well aware that it's not exatcly well written, I'm still in the process of learning. Rewriting large parts of it might be in order...

Does guiImage's default constructor call createObject (meaning it's called twice when constructing a guiButton)? What does that function do?

It does, and there was the cause. Thank you. It was a while since I last wrote it, I was sure it did do nothing but apparently it did call create object which copies a source string into a new, dynamically allocated, string. If you call it twice, the old one never gets deleted...

Thanks a lot for the help!