Click here to Skip to main content
15,881,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: help needed Pin
MailtoGops19-Sep-05 5:14
MailtoGops19-Sep-05 5:14 
GeneralRe: help needed Pin
David Crow19-Sep-05 7:55
David Crow19-Sep-05 7:55 
GeneralRe: help needed Pin
Laffis19-Sep-05 10:40
Laffis19-Sep-05 10:40 
QuestionGet Font Path Pin
RamL19-Sep-05 3:16
RamL19-Sep-05 3:16 
AnswerRe: Get Font Path Pin
Graham Bradshaw19-Sep-05 6:39
Graham Bradshaw19-Sep-05 6:39 
QuestionCOM address independence? Pin
Anonymous19-Sep-05 2:42
Anonymous19-Sep-05 2:42 
AnswerRe: COM address independence? Pin
RChin19-Sep-05 3:32
RChin19-Sep-05 3:32 
Questionhow to delete a socket Pin
jianxin080519-Sep-05 2:41
jianxin080519-Sep-05 2:41 
//onaccept i do like this

CUserSocket *usersocket;
usersocket=new CUserSocket(this);
if(Accept(*usersocket))
{

m_usersocketlist.AddTail(usersocket);
}

//I delete all the usersockets

POSITION pos;

pos=m_usersocketlist.GetHeadPosition();
while(pos!=NULL)
{
CUserSocket* pa;
pa=(CUserSocket*)m_usersocketlist.GetNext(pos);//save pointer
delete pa;//accert here
}
m_usersocketlist.RemoveAll();


when i delete pa
it give an accert in dbgheap.c Expression:_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
how can i delete a socket and free the memeory

-- modified at 9:20 Monday 19th September, 2005
QuestionPrinting files using MS Word automation Pin
Member 64506719-Sep-05 2:18
Member 64506719-Sep-05 2:18 
QuestionMoving Strings To Resource Pin
abhi_code19-Sep-05 1:26
abhi_code19-Sep-05 1:26 
AnswerRe: Moving Strings To Resource Pin
Maximilien19-Sep-05 2:47
Maximilien19-Sep-05 2:47 
QuestionMoving Strings To Resource Pin
abhi_code19-Sep-05 1:24
abhi_code19-Sep-05 1:24 
QuestionMinimize application on taskbar click Pin
razorbladez19-Sep-05 0:14
razorbladez19-Sep-05 0:14 
AnswerRe: Minimize application on taskbar click Pin
bugDanny19-Sep-05 3:24
bugDanny19-Sep-05 3:24 
GeneralRe: Minimize application on taskbar click Pin
razorbladez19-Sep-05 3:30
razorbladez19-Sep-05 3:30 
GeneralRe: Minimize application on taskbar click Pin
bugDanny19-Sep-05 4:04
bugDanny19-Sep-05 4:04 
GeneralRe: Minimize application on taskbar click Pin
razorbladez19-Sep-05 4:17
razorbladez19-Sep-05 4:17 
QuestionPeekMessage and Sleep in a multi-thread environment Pin
almc19-Sep-05 0:08
almc19-Sep-05 0:08 
AnswerRe: PeekMessage and Sleep in a multi-thread environment Pin
Hans Ruck19-Sep-05 0:50
Hans Ruck19-Sep-05 0:50 
GeneralRe: PeekMessage and Sleep in a multi-thread environment Pin
almc19-Sep-05 1:34
almc19-Sep-05 1:34 
GeneralRe: PeekMessage and Sleep in a multi-thread environment Pin
Hans Ruck19-Sep-05 2:42
Hans Ruck19-Sep-05 2:42 
GeneralRe: PeekMessage and Sleep in a multi-thread environment Pin
almc19-Sep-05 3:40
almc19-Sep-05 3:40 
GeneralRe: PeekMessage and Sleep in a multi-thread environment Pin
Hans Ruck19-Sep-05 4:17
Hans Ruck19-Sep-05 4:17 
AnswerRe: PeekMessage and Sleep in a multi-thread environment Pin
Bob Stanneveld19-Sep-05 1:10
Bob Stanneveld19-Sep-05 1:10 
GeneralRe: PeekMessage and Sleep in a multi-thread environment Pin
almc19-Sep-05 1:37
almc19-Sep-05 1:37 

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.