Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ Address-of nullchecking

Name: Anonymous 2008-10-24 3:39

Impl& impl;

That little motherfucking line of code in a header is pissing me off.  Why?  Because it eventually causes an access violation at the line:

if(!impl.mProcessTimer.checkExpirationAndReset(SECS_BETWEEN_PROCESS))

And I have no idea how to check for nulls in an address-of situation.  Regular pointers?  Sure, but whenever I try if(!impl) or some other more convoluted variation of that, MSVC screams about invalid operators. 

Halp plz.

Name: Anonymous 2008-10-24 15:35

Thing is, it's not my code.  I'm modding Second Life in order to bypass hardware bans, and >>1 is fresh out of their trunk SVN.  This is released software, too, so I don't get wtf is going on.

Compiling with Visual C++ 2005 Express since cross-compiling on Lunix fails for some reason.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List