Hi everyone,
I have an error, 0x80040206, An unexpected internal error was detected?
I am working on a digital signal broadcasting project. At solution there are 6 projects and huge numbers of file(cpp,header). So i will write about the function where the error is produced.If anyone ask i can post all the file or project.
The function that gives error;
HRESULT __fastcall CAceRfManagerBda::ParseDvbServices(ACE_DVB_BOUQUET_INFO *pInfo)
{
HRESULT hr = S_OK;
pInfo->lNumServices = 0;
if(!m_pIMpeg2Data)
return E_UNEXPECTED;
DWORD dwServices = 0;
WORD wNumSections = 0;
CComPtr<isectionlist> cpISectionList;
Sleep(100);
CDvbServicesList* pTSList = new CDvbServicesList;
if(!pTSList)
return E_OUTOFMEMORY;
DWORD dwTimeout = 10000;
hr = m_pIMpeg2Data->GetTable(0x10, 0x40, NULL, dwTimeout, &cpISectionList);
if(FAILED(hr))
{
DBG_PRINT("ParseServices GetNumberOfSections error %08X", hr);
delete pTSList;
return hr;
}
}
hr does not return S_OK and function returns the metioned error.
The line that gives error is:
hr = m_pIMpeg2Data->GetTable(0x10, 0x40, NULL, dwTimeout, &cpISectionList);
The GetTable function is a function of system header file named mpeg2data.h (plz look:
https://github.com/ofTheo/videoInput/blob/master/videoInputSrcAndDemos/libs/DShow/Include/mpeg2data.h[
^]
Does anyone advise me how can i managed to solve the problem.
If there is any misunderstanding please comment
Thanks