Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: keyboard event Pin
Stuart Dootson3-Feb-09 2:06
professionalStuart Dootson3-Feb-09 2:06 
AnswerRe: keyboard event Pin
Nibu babu thomas3-Feb-09 2:03
Nibu babu thomas3-Feb-09 2:03 
GeneralRe: keyboard event Pin
hrishiS3-Feb-09 2:42
hrishiS3-Feb-09 2:42 
QuestionPlatform SDK: Get domain name Pin
Stefan Spenz3-Feb-09 1:18
Stefan Spenz3-Feb-09 1:18 
AnswerRe: Platform SDK: Get domain name Pin
Supriya Tonape3-Feb-09 1:43
Supriya Tonape3-Feb-09 1:43 
AnswerRe: Platform SDK: Get domain name Pin
Stuart Dootson3-Feb-09 1:59
professionalStuart Dootson3-Feb-09 1:59 
AnswerRe: Platform SDK: Get domain name Pin
krmed3-Feb-09 2:01
krmed3-Feb-09 2:01 
QuestionMemory Leaks With CString in vc6.0 in Release mode Pin
Ramasani3-Feb-09 1:05
Ramasani3-Feb-09 1:05 
I am facing a run time problem with the CString in Release builds in vc6.0
i observed that the memory wont be released for cstring object i checked in the task manager can any one help for this here i posted the code also


#include "stdafx.h"
#include "afx.h"
#include "afxwin.h"

#include <windows.h>
#include "fixalloc.h"


#pragma warning (disable:4786)
#pragma warning (disable:4503)
#include<list>
#include<string>
#include<vector>

using namespace std;

#include <afxtempl.h>


void test()
{
vector<CString> stldmlist;
CString a;

FILE *fp=fopen("E:\\log1.txt","r");
char str[1000];

while(!feof(fp))
{
fscanf(fp,"%s\n",str);
a=str;
stldmlist.push_back(a);
}
fclose(fp);

AfxMessageBox("Memory");
}

UINT32 main(int argc, char* argv[])
{
CString obj;
AfxMessageBox("Start ");
test();
AfxMessageBox("End");
return 1;
}

Hi this Ravinder

AnswerRe: Memory Leaks With CString in vc6.0 in Release mode Pin
Stuart Dootson3-Feb-09 1:12
professionalStuart Dootson3-Feb-09 1:12 
GeneralRe: Memory Leaks With CString in vc6.0 in Release mode Pin
Ramasani3-Feb-09 1:21
Ramasani3-Feb-09 1:21 
GeneralRe: Memory Leaks With CString in vc6.0 in Release mode Pin
Stuart Dootson3-Feb-09 2:03
professionalStuart Dootson3-Feb-09 2:03 
GeneralRe: Memory Leaks With CString in vc6.0 in Release mode Pin
Ramasani3-Feb-09 2:10
Ramasani3-Feb-09 2:10 
GeneralRe: Memory Leaks With CString in vc6.0 in Release mode Pin
Stuart Dootson3-Feb-09 2:37
professionalStuart Dootson3-Feb-09 2:37 
GeneralRe: Memory Leaks With CString in vc6.0 in Release mode Pin
Ramasani3-Feb-09 2:43
Ramasani3-Feb-09 2:43 
QuestionRe: Memory Leaks With CString in vc6.0 in Release mode Pin
David Crow3-Feb-09 4:36
David Crow3-Feb-09 4:36 
QuestionListBox with Images Pin
hemlat3-Feb-09 0:42
hemlat3-Feb-09 0:42 
AnswerRe: ListBox with Images Pin
Maximilien3-Feb-09 0:46
Maximilien3-Feb-09 0:46 
AnswerRe: ListBox with Images Pin
Sarath C3-Feb-09 1:01
Sarath C3-Feb-09 1:01 
GeneralRe: ListBox with Images Pin
hemlat3-Feb-09 1:40
hemlat3-Feb-09 1:40 
GeneralRe: ListBox with Images Pin
Sarath C3-Feb-09 8:52
Sarath C3-Feb-09 8:52 
GeneralRe: ListBox with Images Pin
hemlat3-Feb-09 17:58
hemlat3-Feb-09 17:58 
AnswerRe: ListBox with Images Pin
Hamid_RT3-Feb-09 20:54
Hamid_RT3-Feb-09 20:54 
QuestionCtoolbar button problem Pin
gopalraja3-Feb-09 0:37
gopalraja3-Feb-09 0:37 
AnswerRe: Ctoolbar button problem Pin
Stuart Dootson3-Feb-09 0:58
professionalStuart Dootson3-Feb-09 0:58 
QuestionDT_CALCRECT with DT_WORDBREAK Pin
_T("No name")3-Feb-09 0:18
_T("No name")3-Feb-09 0:18 

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.