User Breapoint called from code at 0x77f9180c !
-
Here is a error throw out when debug my program. I know this question was asked for many times! And I have search it and seen it. I use several method which I get from web . I select Edit==>Breakpoints And find none breakpoint there! And I ReSetup a new project with same name . copy all .h .cpp .rc files into the new project. but the error throwed out yet! I don't know why! each time when the error occured,it stoped at NTDLL! 77f9180c() there are a part of code as follow:
m_pStillImage=new CxImage(); if(m_pStillImage==NULL) return false; if(!m_pStillImage->Load(strFilePathName,ExtType)) { return false; } ........//some operation if((m_TotalFrame=m_pStillImage->GetNumFrames())>1) { m_MoviePicDelay=m_pStillImage->GetFrameDelay(); m_pMovieImage=new CxImage[m_TotalFrame]; for(int i=0;idelete m_pStillImage; //when run to here ,the error occured //in fact,if I want to delete m_pStillImage //the error will throwed out m_pStillImage=NULL; } }
anybody!please help me! :) Don't look at me in that way! -
Here is a error throw out when debug my program. I know this question was asked for many times! And I have search it and seen it. I use several method which I get from web . I select Edit==>Breakpoints And find none breakpoint there! And I ReSetup a new project with same name . copy all .h .cpp .rc files into the new project. but the error throwed out yet! I don't know why! each time when the error occured,it stoped at NTDLL! 77f9180c() there are a part of code as follow:
m_pStillImage=new CxImage(); if(m_pStillImage==NULL) return false; if(!m_pStillImage->Load(strFilePathName,ExtType)) { return false; } ........//some operation if((m_TotalFrame=m_pStillImage->GetNumFrames())>1) { m_MoviePicDelay=m_pStillImage->GetFrameDelay(); m_pMovieImage=new CxImage[m_TotalFrame]; for(int i=0;idelete m_pStillImage; //when run to here ,the error occured //in fact,if I want to delete m_pStillImage //the error will throwed out m_pStillImage=NULL; } }
anybody!please help me! :) Don't look at me in that way!Try:- 1. looking at the call stack when the error occurs 2.
m_pStillImage->Destroy()
beforedelete m_pStillImage
3.CxImage m_StillImage
instead, if this fails then you probably have something like a memory overwrite, use of an invalid pointer etc. in some part of your code
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676