   The power of GDNet!
  Hi!I really wish I could post more to gamedev.....I try, but everytime it runs a little like this:Quote:Hi,I have a whopping memory leak in my code. Can anyone help me spot it?Heres my source:cMyClass::cMyClass(){    x = 0;    y = 2;    m_stuff = new cThing.....DOH! There it is!!!!!Just by the act of attempting to post, my perception clears, and the problem stands out like a fox at a hen party......... The post never hits the web :(Anyone else suffer from the same affliction?Si   
  Exactly the same for me!   ;  Happens to everybody. Often, simply putting a problem in words will clear it up. This is why it's so useful to have a programmer buddy to help you debug stuff, even if all they do is listen.   ;Quote:Original post by SneftelHappens to everybody. Often, simply putting a problem in words will clear it up. This is why it's so useful to have a programmer buddy to help you debug stuff, even if all they do is listen.Amen Brother.My flatmate listens to me babble all the time.   ;  And my therapist keeps on telling me that my imaginary friends aren't good for me.  Screw him.   ;  I must say I feel familiar in your example. That's one of the reasons that a designer document is a sweet thing to have.Quote:Original post by jfclavetteAnd my therapist keeps on telling me that my imaginary friends aren't good for me.  Screw him.My imaginary therapist keeps on telling me that I should stop playing and do some work for a change ^^;  Yeah, all the time, and not just on GDNet.It's amazing how writing your problem down can make the answer obvious. I try to make a habit of writing things down even when I'm not aware of a problem: it often turns out I notice something.   ;  If only I could count the times that I've written a post, clicked "submit" and then realised during the act of typing/posting I'd worked out the answer.Embarassing.Jack   ;Quote:Original post by SneftelHappens to everybody. Often, simply putting a problem in words will clear it up. This is why it's so useful to have a programmer buddy to help you debug stuff, even if all they do is listen.My fiance, who doesn't know anything about programming, helps me solve my bugs this way.  She just keeps asking "what's wrong", then "why", then "how" etc... until I solve it just talking to her.   ;  I've solved a few problems by constructing a post on GDNet. I would start explaining what is going on and what I want to do, then come up with an idea and work on the project. If it didn't work I'd continue explaining it then come up with another idea and sometimes I end up solving it and don't get to post my question.It ruins my post count and 90% of my posts end up end the lounge thanks to this. And people like Drew_Benton and Zahlman hog all the newbie's questions so I can't get a ratings boost [flaming] [grin].Usually when friends ask me questions about something, after sending me the code they figure it out right before I message them about the problem. Maybe it is something telepathic or something [smile].   