The CGrowableArray template(dxutmisc.h, line 24) may exist with a slight BUG. This copy constructor not initialize three data members, so if you use this copy constructor, your program will crash!
Solve it very simple! Modify it as follow:
CGrowableArray( const CGrowableArray<TYPE>& a ) : m_pData (0),
m_nSize(0), m_nMaxSize(0)
{
for( int i=0; i < a.m_nSize; i++ ) Add( a.m_pData
);
}
I wish next edition of DirectX SDK has solved it.
My home language is chinese, my Englist is not too very good, and honestly hope you understand what I said.

Might it be a BUG within DXUT?
bronco lane
Paul Nystrom - MSFT
Reza Bemanian
The April 2006 version of the SDK already contains the fix:
CGrowableArray(
const CGrowableArray<TYPE>& a ) : m_pData (0), m_nSize(0), m_nMaxSize(0) { for( int i=0; i < a.m_nSize; i++ ) Add( a.m_pDataThanks!
Brian A
Hi!
Hm, because nobody has made a comment to this, I do. :)
Yes, seems like a bug, because the Add(..) function uses the uninitialized size member.