void ConfigureStuff() { CMyObject ** left = 0; // update, what should I be doing here? CMyObject ** right = 0; // update, recently tried this and it crashes here as well // so I must be doing something wrong above *left = 0; // crashes *right = 0; FindLeftAndRight( left, right ); } void FindLeftAndRight( CMyObject ** left, CMyObject ** right ) { CMyObject * searchObjectLeft = 0; CMyObject * searchObjectRight = 0; //... // code that finds left and right //... if ( bFoundObjects ) { *left = searchObjectLeft; // update, crashed here *right = searchObjectRight; } }
void ConfigureStuff() { CMyObject * left = 0; CMyObject * right = 0; FindLeftAndRight( &left, &right ); }
null
//...
void
FindLeftAndRight
function
ConfigureStuff
CMyObject
bFoundObjects
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)