Click here to Skip to main content
16,010,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMicrosoft Data Grid Control V6.0 Pin
RobJones8-May-01 13:22
RobJones8-May-01 13:22 
GeneralDetect when browser closes. Pin
8-May-01 10:03
suss8-May-01 10:03 
GeneralRe: Detect when browser closes. Pin
Christian Graus8-May-01 13:06
protectorChristian Graus8-May-01 13:06 
Generalchanging directory Pin
8-May-01 9:49
suss8-May-01 9:49 
GeneralRe: Seems to be interesting, but... Pin
Masaaki Onishi8-May-01 16:03
Masaaki Onishi8-May-01 16:03 
GeneralRe: Seems to be interesting, but... Pin
Christian Graus8-May-01 16:27
protectorChristian Graus8-May-01 16:27 
GeneralRe: Seems to be interesting, but... Pin
l a u r e n8-May-01 21:19
l a u r e n8-May-01 21:19 
QuestionObjects left active. What does it mean? Pin
8-May-01 8:18
suss8-May-01 8:18 
Hi all,
I am developing an MDI app using DirectDraw objects. However the following message pops up every time I exit the application:

ASSERT Failed
Executable: myDX.exe Pid 970 Tid a78. Module quartz.dll, 393 objects left active!
At line 341 of d:\nt_chk\multimedia\published\dxmdev\dshowdev\base\dllentry.cpp
Continue?

The variables used (declared as private):
LPDIRECTDRAWSURFACE pDDSPrimarySurface;
bool bFileLoaded;
HWND hWnd;
IDirectDraw *pDD;
IDirectDrawSurface *pOffscreenSurface1;
IMultiMediaStream *pMMStream;
IMediaStream *pPrimaryVidStream;
IDirectDrawMediaStream *pDDStream;
IDirectDrawStreamSample *pSample;
RECT rect;

I declared most of them in OnInitialUpdate.
and here is my ~myDXView()
{
AfxMessageBox("start");

if( pMMStream != NULL )
{
pMMStream->Release();
pMMStream = NULL;
}

if( pSample != NULL )
{
pSample->Release();
pSample = NULL;
}

if( pDDStream != NULL )
{
pDDStream->Release();
pDDStream = NULL;
}

if( pPrimaryVidStream != NULL )
{
pPrimaryVidStream->Release();
pPrimaryVidStream = NULL;
}

if( pDDSPrimarySurface != NULL )
{
pDDSPrimarySurface->Release();
pDDSPrimarySurface = NULL;
}

if( pOffscreenSurface1 != NULL )
{
pOffscreenSurface1->Release();
pOffscreenSurface1 = NULL;
}

if( pDD != NULL )
{
pDD->Release();
pDD = NULL;
}

CoUninitialize();
AfxMessageBox("end");
}

The error message pops up after the AfxMessageBox("end");
I thought it is because I didn't release some objects, but shouldn't the code above takes care of that part?

Anyone has any idea or hints? Thanks a lot in advance.
AnswerRe: Objects left active. What does it mean? Pin
Christian Graus8-May-01 12:51
protectorChristian Graus8-May-01 12:51 
GeneralRe: Objects left active. What does it mean? Pin
Tomasz Sowinski9-May-01 1:12
Tomasz Sowinski9-May-01 1:12 
GeneralCopy files to A:\ Pin
Gerry8-May-01 3:02
Gerry8-May-01 3:02 
GeneralRe: Copy files to A:\ Pin
Tomasz Sowinski8-May-01 3:06
Tomasz Sowinski8-May-01 3:06 
GeneralDirectShow help needed! Pin
8-May-01 2:27
suss8-May-01 2:27 
Generaldrawing a circle Pin
imran8-May-01 2:09
imran8-May-01 2:09 
GeneralRe: drawing a circle Pin
Chris Losinger8-May-01 2:28
professionalChris Losinger8-May-01 2:28 
GeneralRe: drawing a circle Pin
Christian Graus8-May-01 13:00
protectorChristian Graus8-May-01 13:00 
AnswerRe: drawing a circle Pin
mohini19893-Mar-09 21:10
mohini19893-Mar-09 21:10 
QuestionHow to display captured data? Pin
8-May-01 1:23
suss8-May-01 1:23 
AnswerRe: How to display captured data? Pin
Christian Graus8-May-01 1:40
protectorChristian Graus8-May-01 1:40 
GeneralRe: How to Enable/Disable menu items in SDI projects? Pin
Christian Graus8-May-01 0:00
protectorChristian Graus8-May-01 0:00 
GeneralThanks... but you are not right. I am sorry... Pin
8-May-01 0:19
suss8-May-01 0:19 
GeneralRe: Thanks... but you are not right. I am sorry... Pin
Christian Graus8-May-01 0:37
protectorChristian Graus8-May-01 0:37 
QuestionHas anyone sample code for managing the WH_CALLWNDPROC macro?? Pin
7-May-01 22:50
suss7-May-01 22:50 
GeneralConverting RTF <--> HTML Pin
7-May-01 22:41
suss7-May-01 22:41 
GeneralLoading exe's Pin
7-May-01 21:59
suss7-May-01 21:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.