Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debug assertion failed Pin
Rage18-Jun-02 23:36
professionalRage18-Jun-02 23:36 
GeneralRe: Debug assertion failed Pin
Prem Kumar18-Jun-02 23:45
Prem Kumar18-Jun-02 23:45 
GeneralRe: Debug assertion failed Pin
Rsh19-Jun-02 0:00
Rsh19-Jun-02 0:00 
GeneralRe: Debug assertion failed Pin
Prem Kumar19-Jun-02 0:06
Prem Kumar19-Jun-02 0:06 
GeneralRe: Debug assertion failed Pin
Rsh19-Jun-02 0:16
Rsh19-Jun-02 0:16 
GeneralRe: Debug assertion failed Pin
Rage19-Jun-02 2:09
professionalRage19-Jun-02 2:09 
GeneralRe: Debug assertion failed Pin
Chad Koehler19-Jun-02 7:28
Chad Koehler19-Jun-02 7:28 
GeneralRe: Debug assertion failed Pin
Rsh19-Jun-02 21:37
Rsh19-Jun-02 21:37 
what exactly i want is, to read the elemnts from the headposition in Clist and immediately after reading,would like to delete the already read element from the list & also release the memory that was associated with the deleted element.
Can anybody pls. elaborate on this
The code is as follows
void CPLayerApp::LockIt()
{
unsigned char data[10],mCnt,mMid;
unsigned char *ptr;
CMessage* pMess;
CMessage* delMess;
CSingleLock singleLock(&m_SyncLock.m_mutex);
CString str="";
while(1)
{
if(m_messList.GetCount() != 0)
{
singleLock.Lock();
pMess = &m_messList.GetAt(m_messList.GetHeadPosition());

mCnt = pMess->m_cnt;
mMid = pMess->m_mid;
pMess->GetData(data);
//POSITION pos = m_messList.GetHeadPosition();
m_messList.RemoveHead();
delMess= &m_messList.RemoveHead();
//pMess=(CMessage*)m_messList.RemoveHead();
delete delMess;

singleLock.Unlock();
if(data[0] == 0x10)
{
str.Format("%0x",data[0]);
AfxMessageBox(str);
break;
}
}
Sleep(200);

}Frown | :(

Rsh
QuestionFloating CMDIChildFrame? Pin
Jimmy_H18-Jun-02 22:28
Jimmy_H18-Jun-02 22:28 
AnswerRe: Floating CMDIChildFrame? Pin
Jon Newman18-Jun-02 23:12
Jon Newman18-Jun-02 23:12 
GeneralRe: Floating CMDIChildFrame? Pin
Jimmy_H18-Jun-02 23:39
Jimmy_H18-Jun-02 23:39 
GeneralRe: Floating CMDIChildFrame? Pin
Jon Newman19-Jun-02 8:08
Jon Newman19-Jun-02 8:08 
GeneralRe: passing variables from VC to VB Pin
Christian Graus18-Jun-02 22:07
protectorChristian Graus18-Jun-02 22:07 
GeneralRe: passing variables from VC to VB Pin
Ghazi H. Wadi18-Jun-02 22:22
Ghazi H. Wadi18-Jun-02 22:22 
GeneralRe: passing variables from VC to VB Pin
Michael P Butler18-Jun-02 22:39
Michael P Butler18-Jun-02 22:39 
GeneralRe: passing variables from VC to VB Pin
Nish Nishant18-Jun-02 23:16
sitebuilderNish Nishant18-Jun-02 23:16 
GeneralRe: passing variables from VC to VB Pin
Michael P Butler19-Jun-02 0:07
Michael P Butler19-Jun-02 0:07 
GeneralRe: passing variables from VC to VB Pin
Nish Nishant19-Jun-02 0:20
sitebuilderNish Nishant19-Jun-02 0:20 
GeneralRe: passing variables from VC to VB Pin
Michael P Butler19-Jun-02 0:26
Michael P Butler19-Jun-02 0:26 
General*.cda files under XP (and W2K ?) Pin
Phil.Benson18-Jun-02 21:24
professionalPhil.Benson18-Jun-02 21:24 
GeneralRe: *.cda files under XP (and W2K ?) Pin
Jon Newman18-Jun-02 23:10
Jon Newman18-Jun-02 23:10 
GeneralRe: *.cda files under XP (and W2K ?) Pin
Phil.Benson19-Jun-02 7:55
professionalPhil.Benson19-Jun-02 7:55 
GeneralZippping and unzipping Pin
Kristian3318-Jun-02 21:17
Kristian3318-Jun-02 21:17 
GeneralRe: Zippping and unzipping Pin
Christian Graus18-Jun-02 22:08
protectorChristian Graus18-Jun-02 22:08 
GeneralRe: Zippping and unzipping Pin
-Dy18-Jun-02 23:05
-Dy18-Jun-02 23:05 

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.