I'm stumped. My prog is crashing in the release version but not
the debug version and I can't figure out the problem.

I've narrowed it down to one line.

Code:
CString strReplace = "";
CListBox::GetText( nIndex, strReplace );
After i get strReplace from the ListBox, i cast it to a LPCTSTR
and send it to a function that expects a LPCTSTR as a parameter.

For some reason though, it crashes and says the memory can't
be read. Any ideas?