Click here to Skip to main content
15,917,582 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to sort a CArray with minimum effort Pin
Iain Clarke, Warrior Programmer16-Sep-08 1:22
Iain Clarke, Warrior Programmer16-Sep-08 1:22 
AnswerRe: How to sort a CArray with minimum effort Pin
Matthew Faithfull16-Sep-08 2:01
Matthew Faithfull16-Sep-08 2:01 
GeneralRe: How to sort a CArray with minimum effort Pin
Iain Clarke, Warrior Programmer16-Sep-08 2:13
Iain Clarke, Warrior Programmer16-Sep-08 2:13 
GeneralRe: How to sort a CArray with minimum effort Pin
Matthew Faithfull16-Sep-08 2:26
Matthew Faithfull16-Sep-08 2:26 
JokeRe: How to sort a CArray with minimum effort Pin
CPallini16-Sep-08 2:54
mveCPallini16-Sep-08 2:54 
GeneralRe: How to sort a CArray with minimum effort Pin
Iain Clarke, Warrior Programmer16-Sep-08 3:02
Iain Clarke, Warrior Programmer16-Sep-08 3:02 
AnswerRe: How to sort a CArray with minimum effort Pin
Joe Woodbury17-Sep-08 10:56
professionalJoe Woodbury17-Sep-08 10:56 
QuestionCan anyone see memory leak in this code? Pin
SRKSHOME16-Sep-08 0:42
SRKSHOME16-Sep-08 0:42 
HI,
Could anyone see memory leak in following code? When I used some debugging tool, it is telling me 'Memory Leak due to reassignment:Address 0x10084 allocated by global_operator_new'.

static const char DEFAULT_DATE_FORMAT[] = "US";

DSLoginConfigurationImplementation::DSLoginConfigurationImplementation(const char *CategoryPath):m_ImportDateFormat(NULL)
{
Restore(CategoryPath);/*This function will call below function*/
}

void DSLoginConfigurationImplementation::SetInputDateFormat(const char* ImportDateFormat)
{
if(!DSAccessConfigurationImplementation::GetInUse())
{
if(m_ImportDateFormat!=NULL)
{
delete [] m_ImportDateFormat;
m_ImportDateFormat=NULL;
}
if(ImportDateFormat!=NULL && strlen(ImportDateFormat))
{
m_ImportDateFormat=new char[strlen(ImportDateFormat)+1];/* debugger is pointing here showing memory leak*/
strcpy(m_ImportDateFormat,ImportDateFormat);
}
}
}

Please help.
Thanks in advance.
AnswerRe: Can anyone see memory leak in this code? Pin
Matthew Faithfull16-Sep-08 2:03
Matthew Faithfull16-Sep-08 2:03 
GeneralRe: Can anyone see memory leak in this code? Pin
SRKSHOME16-Sep-08 2:45
SRKSHOME16-Sep-08 2:45 
GeneralRe: Can anyone see memory leak in this code? Pin
Iain Clarke, Warrior Programmer16-Sep-08 3:08
Iain Clarke, Warrior Programmer16-Sep-08 3:08 
GeneralRe: Can anyone see memory leak in this code? Pin
SRKSHOME16-Sep-08 19:17
SRKSHOME16-Sep-08 19:17 
GeneralRe: Can anyone see memory leak in this code? Pin
Iain Clarke, Warrior Programmer16-Sep-08 21:41
Iain Clarke, Warrior Programmer16-Sep-08 21:41 
GeneralRe: Can anyone see memory leak in this code? Pin
SRKSHOME17-Sep-08 2:51
SRKSHOME17-Sep-08 2:51 
GeneralRe: Can anyone see memory leak in this code? Pin
Matthew Faithfull16-Sep-08 3:20
Matthew Faithfull16-Sep-08 3:20 
GeneralRe: Can anyone see memory leak in this code? Pin
SRKSHOME16-Sep-08 19:20
SRKSHOME16-Sep-08 19:20 
QuestionDevice name from the devicemanager Pin
hariakuthota15-Sep-08 23:50
hariakuthota15-Sep-08 23:50 
QuestionRe: Device name from the devicemanager [modified] Pin
Roger Stoltz16-Sep-08 0:02
Roger Stoltz16-Sep-08 0:02 
AnswerRe: Device name from the devicemanager Pin
cmk16-Sep-08 9:34
cmk16-Sep-08 9:34 
AnswerRe: Device name from the devicemanager Pin
Roger Stoltz16-Sep-08 20:40
Roger Stoltz16-Sep-08 20:40 
AnswerRe: Device name from the devicemanager Pin
Sarath C16-Sep-08 1:12
Sarath C16-Sep-08 1:12 
QuestionPermanent Handle Map problem Pin
Electronic7515-Sep-08 23:12
Electronic7515-Sep-08 23:12 
QuestionRe: Permanent Handle Map problem Pin
Mark Salsbery16-Sep-08 7:54
Mark Salsbery16-Sep-08 7:54 
AnswerRe: Permanent Handle Map problem Pin
Electronic7516-Sep-08 17:13
Electronic7516-Sep-08 17:13 
AnswerRe: Permanent Handle Map problem Pin
Electronic7516-Sep-08 19:33
Electronic7516-Sep-08 19:33 

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.