Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: While running my application , Machine (PC) gets slow Pin
zahid_ash29-Jun-06 20:42
zahid_ash29-Jun-06 20:42 
GeneralRe: While running my application , Machine (PC) gets slow Pin
Stephen Hewitt29-Jun-06 20:45
Stephen Hewitt29-Jun-06 20:45 
GeneralCPU usage is more - While running my application , Machine (PC) gets slow Pin
zahid_ash29-Jun-06 20:59
zahid_ash29-Jun-06 20:59 
GeneralRe: CPU usage is more - While running my application , Machine (PC) gets slow Pin
Stephen Hewitt29-Jun-06 21:06
Stephen Hewitt29-Jun-06 21:06 
GeneralRe: CPU usage is more - While running my application , Machine (PC) gets slow Pin
zahid_ash29-Jun-06 21:18
zahid_ash29-Jun-06 21:18 
GeneralRe: CPU usage is more - While running my application , Machine (PC) gets slow Pin
blue_rabbit29-Jun-06 21:41
blue_rabbit29-Jun-06 21:41 
GeneralRe: CPU usage is more - While running my application , Machine (PC) gets slow Pin
Stephen Hewitt30-Jun-06 3:51
Stephen Hewitt30-Jun-06 3:51 
Questionproblem in STL list erase method Pin
Raj Prathap29-Jun-06 20:15
Raj Prathap29-Jun-06 20:15 
hi ,
I'm facing severe problem in erase method of STL in vc++6.0.
The code looks like below:

list<items> listItems;
list<items>::iterator iteBeg, iteEnd, itePrev;
getItems(listItems); //The function is defined in a DLL

for(iteBeg = listItems.begin(); iteEnd != listItems.end(); )
{
/*** processing ***/
//----more processing..

if(listItems.id == clientId)
{
itePrev = iteBeg;
iteBeg ++;
listItem.erase(itePrev); //=========== HERE IS THE ERROR "unhandled exception"
break;
}
//Some more processing;
iteBeg++;
}


I'm facing the erase method of the list class.
The list is filled by a function which is defined in a dll.
In debug mode, no problem at all. But I'm facing problem in release mode. I'm sure the dll (where getList() is defined) is also built in relase mode.
please correct my code, if somewhere I'm going wrong.

And in the msdn forums they specified STL in vc6 is terrible, and third party extensions are availlable. Please suggest me if any of such.
Thanks in advance.




Raja Pratap
AnswerRe: problem in STL list erase method Pin
Michael Dunn29-Jun-06 20:59
sitebuilderMichael Dunn29-Jun-06 20:59 
GeneralRe: problem in STL list erase method Pin
Raj Prathap29-Jun-06 21:19
Raj Prathap29-Jun-06 21:19 
AnswerRe: problem in STL list erase method Pin
Stephen Hewitt29-Jun-06 21:01
Stephen Hewitt29-Jun-06 21:01 
GeneralRe: problem in STL list erase method Pin
Raj Prathap29-Jun-06 21:09
Raj Prathap29-Jun-06 21:09 
Questionabout Ctime Pin
vasusree29-Jun-06 20:12
vasusree29-Jun-06 20:12 
AnswerRe: about Ctime Pin
_AnsHUMAN_ 29-Jun-06 21:08
_AnsHUMAN_ 29-Jun-06 21:08 
GeneralRe: about Ctime Pin
happy_ram29-Jun-06 21:11
happy_ram29-Jun-06 21:11 
QuestionRe: about Ctime Pin
David Crow30-Jun-06 3:04
David Crow30-Jun-06 3:04 
Questionplease help.. urgent [modified] Pin
sriv_1829-Jun-06 20:02
sriv_1829-Jun-06 20:02 
AnswerRe: please help.. urgent Pin
Cedric Moonen29-Jun-06 20:31
Cedric Moonen29-Jun-06 20:31 
GeneralRe: please help.. urgent Pin
sriv_1830-Jun-06 23:23
sriv_1830-Jun-06 23:23 
GeneralRe: please help.. urgent Pin
Cedric Moonen1-Jul-06 2:03
Cedric Moonen1-Jul-06 2:03 
AnswerRe: please help.. urgent Pin
Hamid_RT29-Jun-06 20:43
Hamid_RT29-Jun-06 20:43 
QuestionSave button and encryption.... [modified] Pin
we3Guy29-Jun-06 19:55
we3Guy29-Jun-06 19:55 
QuestionMSMQ Sample App Pin
Rinu_Raj29-Jun-06 19:38
Rinu_Raj29-Jun-06 19:38 
AnswerRe: MSMQ Sample App Pin
Hamid_RT29-Jun-06 20:16
Hamid_RT29-Jun-06 20:16 
QuestionSizeOfResource () problem using String Table Pin
sach!!29-Jun-06 19:06
sach!!29-Jun-06 19:06 

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.