It is currently Fri Apr 28, 2017 2:51 pm

All times are UTC - 5 hours




 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Ghost VMK 8 - Bug Fix
PostPosted: Wed Sep 03, 2008 2:45 pm 
Site Admin

Joined: Sun Feb 11, 2007 8:59 am
Posts: 1094
Location: Ontario Canada
I have been trying to maintain the philosophy of developing the entire game engine and ghost toast game on screen. Meaning everything that I do you will see in the video's.

I was recently notified of a bug in the game engine ... a bad one that goes back to VMK31. So I've made this video to show how to fix it plus another one more recently introduced when updating the GUIText class.


Offline
 Profile  
 
 Post subject: Alternative fix
PostPosted: Mon Oct 25, 2010 12:39 pm 

Joined: Wed Dec 24, 2008 4:25 pm
Posts: 16
I'm enjoying the GhostToast series even more than I enjoyed the GameEngine series, since it fixes a lot of stuff I made notes on as I was going through that series. This memset() bug is one I already handled in a more general way. Without forcing the user of the findKeyword() function to allocate a large (256) return buffer, I do the following memset call:

memset(szName, 0, indexB - indexA - strlen(szKeyWord) + 1);

This clears only enough space to hold the return value, and allocating enough space for the return value is the user's responsibility.

That's just a different option that I thought I'd pass along.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

cron