View Single Post
Re: SWDS.dll Crashes.
Old
  (#15)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: SWDS.dll Crashes. - 22-08-2004

Quote:
Originally Posted by voogru
Problem with doing that is the mod might try to access it and think its cbaseentity, when its not.
That's precisely my point. The point is of course not to build a fully featured instance of CBaseEntity by hand, but not to let the mod land on an unitialized pointer. If all the mod does is just checking/setting two or three CBaseEntity member values in this area, it'll read zeroes and set random stuff (which we don't care so far), but at least it won't produce an access violation error, which might be sufficient to prevent it to crash.

Once this runs you can then trace manually to figure out what the mod reads and writes there and you'll understand why it needs this CBaseEntity pointer. You will then be able to provide it with better failsafe mechanisms.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote