Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ikanreed

Pages: [1]
1
Server Status /
« on: November 06, 2005, 10:08:20 pm »
Quote
Originally posted by DivineLight
Seems like most of our crashes are due to bad pointers. I\'ve updated the CVS docs, to include guide lines and precautions.

The lesson is that we should test the pointer returned by a function before using it for NULL, if there\'s a chance of it being NULL.


what have been deemed \"proper\" C coding practices suggest checking for Null on any returned pointer.  games should only make an exception on a case such as incredibly time sensitive operations.

edit:
not that I\'m an expert.  That\'s just what has been pretty much accepted.  even if the NULL is supposed to be propogated up the return stack, the conditional statement will set asside the possibility for any programmer reading the same code later on without the need for confusing comments.

Pages: [1]