I tried doing this after a bunch of other things
void Unint() {if( Common.myDevice != NULL) Common.myDevice->Release();if( Text.myDevice != NULL) Text.myDevice->Release();if( myDevice != NULL) myDevice->Release();}
and called uninit before the program ended.
But still getting the same problem, i removed any 2 of the releases(tried different combinations) and it worked.
Could it be that there is really only one myDevice allowed to be called, and the rest are something like pointers. So when one is released, the memory spot is cleared so the rest can find it?
Like the device can have different values etc, but the Release command just releases it all.
[edited by - johnnyBravo on September 2, 2003 9:03:48 AM]