Search found 12 matches

by GracefulComet
July 31st, 2017, 1:29 pm
Forum: Everything
Topic: Climbing out of Pointer Hell
Replies: 17
Views: 5642

Re: Climbing out of Pointer Hell

So, i love the how clean you made everything look with your cosmetic changes. did you run the code through a linter? i do that sometimes when i make it too crazy like i did. your code shows how big the gap is between your skill and mine is lol. i need lots more practice. i learned a few things from ...
by GracefulComet
July 29th, 2017, 2:36 pm
Forum: Everything
Topic: Climbing out of Pointer Hell
Replies: 17
Views: 5642

Re: Climbing out of Pointer Hell

Damn it. i hate my dyslexia. i meant the vice versa of what i said. owned a MSGreciever instead of a MSGreciever*. i mis-match the heap and the stack all the time. it will happen again and it will confuse me and everyone as well. im sorry. i will just call it dynamic and non dynamic to keep my inten...
by GracefulComet
July 28th, 2017, 12:58 pm
Forum: Everything
Topic: Climbing out of Pointer Hell
Replies: 17
Views: 5642

Re: Climbing out of Pointer Hell

okay i figured it out... Sprite owns a Heap allocated MSGreceiver that a Copy Assignment is deleteing. but that reference is handed out as a pointer to something else that dereference. simply replacing a heap allocated MSGreciever for a Stack allocated one fixed it. and now no more heap Corruption. ...
by GracefulComet
July 26th, 2017, 6:54 pm
Forum: Everything
Topic: Climbing out of Pointer Hell
Replies: 17
Views: 5642

Re: Climbing out of Pointer Hell

Lot to Absorb but, but all Very Helpful information. I think most/all of your observations are Close or are absolutely correct. Gonna Review some of my code some more with these points in mind. :shock: I can Have Const& of pure virtual objects!?!!?!? :!: :?: :!: *mind Blown* i might need a few momen...
by GracefulComet
July 26th, 2017, 1:05 pm
Forum: Everything
Topic: Climbing out of Pointer Hell
Replies: 17
Views: 5642

Re: Climbing out of Pointer Hell

Yes i am using Linux :). I did attempt to get it working is VS 2015 for the sake of simplicity for everyone. i guess its just a case of "works on my machine" and the effort didn't seem to work for you. :( Sorry if that was any trouble just trying to get it to work/open. :oops: I technically have no ...
by GracefulComet
July 24th, 2017, 7:27 pm
Forum: Everything
Topic: Climbing out of Pointer Hell
Replies: 17
Views: 5642

Re: Climbing out of Pointer Hell

Thanks. <child> fixed that portion. looks like all this effort has not fixed the memory leak. still appears i am de-referencing a null_ptr. one less obstacle in my way. feeling kind of stupid because im pretty sure i had it as <child> instead of <parent> but after running into an error i saw someone...
by GracefulComet
July 24th, 2017, 5:20 pm
Forum: Everything
Topic: Nice Open Source C++ Game
Replies: 2
Views: 1807

Re: Nice Open Source C++ Game

Very Nice! good find. this sounds exactly like what i am trying to create lol. but probably alot better. this should help me learn alot.
by GracefulComet
July 24th, 2017, 4:50 pm
Forum: Everything
Topic: Climbing out of Pointer Hell
Replies: 17
Views: 5642

Climbing out of Pointer Hell

So im trying to update some code in an attempt to fix a memory leak i introduced( real bad i know) after failing to find a normal solution with new and delete I found something called smart pointers so i thought maybe those could help me fix this memory leak. i might have more than one :( The code i...
by GracefulComet
July 17th, 2017, 12:06 pm
Forum: Everything
Topic: Comparison operater ( <= and >= )
Replies: 9
Views: 3811

Re: Comparison operater ( <= and >= )

AlbinoPapa You are exactly right that is Exactly What i am Trying to do. :D then i was going to move onto check if a rectangle has any 4 points of another rectangle inside of it as some cheap collision detection. ( after some deep thinking i now am not sure if this is the best possible answer. for e...
by GracefulComet
July 17th, 2017, 6:03 am
Forum: Everything
Topic: Comparison operater ( <= and >= )
Replies: 9
Views: 3811

Re: Comparison operater ( <= and >= )

That perfectly answers my question 8-) . looks like now i can A. understand why in class fits my needs perfectly. B. if i need to expand to work with other types that are not Left side Vec2Df how to fix it by useing there operator overload as a global. I appreciate the time. and explanation. i was h...