On Wed, Nov 30, 2011 at 10:53:28PM -0500, Rafaël Carré wrote : > > + memset(static_cast<NPClass*>(this), 0, sizeof(NPClass)); > > Why is that needed, doesn't C++ have default constructors? > NPClass, as its name says, is a struct. -- Jean-Baptiste Kempf http://www.jbkempf.com/ - +33 672 704 734 Sent from my Electronic Device