Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DES Encryption Pin
jkirkerx16-Dec-11 12:06
professionaljkirkerx16-Dec-11 12:06 
GeneralRe: DES Encryption Pin
Randor 16-Dec-11 13:25
professional Randor 16-Dec-11 13:25 
GeneralRe: DES Encryption Pin
jkirkerx17-Dec-11 8:05
professionaljkirkerx17-Dec-11 8:05 
GeneralRe: DES Encryption Pin
Randor 17-Dec-11 9:47
professional Randor 17-Dec-11 9:47 
GeneralRe: DES Encryption Pin
jkirkerx17-Dec-11 20:49
professionaljkirkerx17-Dec-11 20:49 
GeneralRe: DES Encryption Pin
Randor 18-Dec-11 3:55
professional Randor 18-Dec-11 3:55 
GeneralRe: DES Encryption Pin
jkirkerx18-Dec-11 8:32
professionaljkirkerx18-Dec-11 8:32 
GeneralRe: DES Encryption Pin
Randor 18-Dec-11 11:29
professional Randor 18-Dec-11 11:29 
GeneralRe: DES Encryption Pin
jkirkerx18-Dec-11 14:18
professionaljkirkerx18-Dec-11 14:18 
GeneralRe: DES Encryption Pin
Randor 19-Dec-11 6:19
professional Randor 19-Dec-11 6:19 
GeneralRe: DES Encryption Pin
jkirkerx19-Dec-11 8:06
professionaljkirkerx19-Dec-11 8:06 
GeneralRe: DES Encryption Pin
Randor 19-Dec-11 8:29
professional Randor 19-Dec-11 8:29 
GeneralRe: DES Encryption Pin
jkirkerx19-Dec-11 8:47
professionaljkirkerx19-Dec-11 8:47 
GeneralRe: DES Encryption Pin
jkirkerx19-Dec-11 9:30
professionaljkirkerx19-Dec-11 9:30 
GeneralRe: DES Encryption Pin
Randor 19-Dec-11 10:36
professional Randor 19-Dec-11 10:36 
GeneralRe: DES Encryption Pin
jkirkerx19-Dec-11 10:53
professionaljkirkerx19-Dec-11 10:53 
GeneralPerfect Match! Pin
jkirkerx19-Dec-11 12:13
professionaljkirkerx19-Dec-11 12:13 
GeneralRe: Perfect Match! Pin
Randor 19-Dec-11 14:03
professional Randor 19-Dec-11 14:03 
GeneralRe: Perfect Match! Pin
jkirkerx19-Dec-11 14:49
professionaljkirkerx19-Dec-11 14:49 
GeneralRe: DES Encryption Pin
jkirkerx16-Dec-11 7:59
professionaljkirkerx16-Dec-11 7:59 
AnswerSymmetric-key - Initialization Vector Pin
jkirkerx16-Dec-11 18:04
professionaljkirkerx16-Dec-11 18:04 
GeneralRe: Symmetric-key - Initialization Vector Pin
Chris Losinger17-Dec-11 9:38
professionalChris Losinger17-Dec-11 9:38 
QuestionInterview Preparation Pin
pix_programmer15-Dec-11 18:23
pix_programmer15-Dec-11 18:23 
AnswerRe: Interview Preparation Pin
Chandrasekharan P15-Dec-11 22:07
Chandrasekharan P15-Dec-11 22:07 
Questionmemory leaking in playing video using DirectShow. Pin
Le@rner14-Dec-11 23:48
Le@rner14-Dec-11 23:48 
Hi all,

#define SAFERELEASE( X ) { if( X ) { X->Release(); X = NULL; } }

HRESULT m_objHRsult;
IGraphBuilder* m_objGraphBuilder;
IMediaControl* m_objMediaControl;
IMediaEventEx* m_objMediaEvent;
IVideoWindow* m_objVideownd;
IMediaSeeking* m_objMediaSeeking;

m_objHRsult=CoCreateInstance(CLSID_FilterGraph,NULL,CLSCTX_INPROC_SERVER,IID_IGraphBuilder,(void**)& m_objGraphBuilder);
	
m_objHRsult=m_objGraphBuilder->QueryInterface(IID_IMediaControl,(void**)&m_objMediaControl);
m_objHRsult=m_objGraphBuilder->QueryInterface(IID_IMediaEventEx,(void**)&m_objMediaEvent);
m_objHRsult=m_objGraphBuilder->QueryInterface(IID_IVideoWindow,(void**)&m_objVideownd);
m_objHRsult=m_objGraphBuilder->QueryInterface(IID_IMediaSeeking,(void**)&m_objMediaSeeking);
m_objHRsult=m_objMediaEvent->SetNotifyWindow((OAHWND)main_Dlg->GetSafeHwnd(),WM_GRAPHNOTIFY,0);

m_objGraphBuilder->RenderFile(path,NULL);

m_objMediaControl->Run();

//now release all
if(m_objMediaControl)
		m_objMediaControl->Stop();

	// Release and zero DirectShow interfaces
    SAFERELEASE(m_objMediaEvent);
    SAFERELEASE(m_objMediaControl);
    SAFERELEASE(m_objVideownd);
    SAFERELEASE(m_objGraphBuilder);

//but still memory not rleasing that is occupyuing after RenderFile.


please help me for this.

thanks in advance.

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.