Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

why this code dosen't free all memory even i use

if(pMe->pISoundPlayer)
{
ISOUNDPLAYER_Stop(pMe->pISoundPlayer);
ISOUNDPLAYER_Release(pMe->pISoundPlayer);
pMe->pISoundPlayer=NULL;
}

/*************code ************************/

if(SUCCESS==ISHELL_CreateInstance(pMe->pApp.m_pIShell, AEECLSID_SOUNDPLAYER,(void **)&pMe->pISoundPlayer));
{
pMe->PlayerInfo.pData = (AEEResBlob *)ISHELL_LoadResDataEx(pMe->pApp.m_pIShell,SUBMARINE_RES_FILE,START, RESTYPE_IMAGE, NULL,&pMe->PlayerInfo.dwSize);
pMe->PlayerInfo.eInput = SDT_BUFFER;
pMe->PlayerInfo.pData = RESBLOB_DATA((AEEResBlob *)(pMe->PlayerInfo.pData));
ISOUNDPLAYER_SetInfo(pMe->pISoundPlayer,&pMe->PlayerInfo);
ISOUNDPLAYER_Play(pMe->pISoundPlayer);
}
/*******************************************/

vikrant_du wrote:why this code dosen't free all memory even i use
pMe->PlayerInfo.pData = (AEEResBlob *)ISHELL_LoadResDataEx(pMe->pApp.m_pIShell,SUBMARINE_RES_FILE,START, RESTYPE_IMAGE, NULL,&pMe->PlayerInfo.dwSize);
Are you releasing the image pointer -- pMe->PlayerInfo.pData --some where else in the code or free function of the app??/

vikrant_du wrote:why this code dosen't free all memory even i use
pMe->PlayerInfo.pData = (AEEResBlob *)ISHELL_LoadResDataEx(pMe->pApp.m_pIShell,SUBMARINE_RES_FILE,START, RESTYPE_IMAGE, NULL,&pMe->PlayerInfo.dwSize);
Are you releasing the image pointer -- pMe->PlayerInfo.pData --some where else in the code or free function of the app??/

Oceans eleven wrote:Are you releasing the image pointer -- pMe->PlayerInfo.pData --some where else in the code or free function of the app??/
actually i am taking sound from resource file and in 2.0 only image type is supported so i am converting this.there is no nconcept of images.

Oceans eleven wrote:Are you releasing the image pointer -- pMe->PlayerInfo.pData --some where else in the code or free function of the app??/
actually i am taking sound from resource file and in 2.0 only image type is supported so i am converting this.there is no nconcept of images.