Need the wrapper class for CMap using the STL map(Because i have some problems using CMap i want the same functionality of CMap but internally i have to use map)
Hi this Ravinder
Need the wrapper class for CMap using the STL map(Because i have some problems using CMap i want the same functionality of CMap but internally i have to use map)
Hi this Ravinder
i need alternative code for CMap is it possible to implement my own CMap wrapper Class using the STL::map
Hi this Ravinder
Its very Urgent for me In my program CString is not Releasing the memory in Release mode in vc6.0 only it's working fine in debug mode and later versions of visual studio here i am sending a sample application can any one send replay its very urgent for me. #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; 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[]) { AfxMessageBox("Start "); test(); AfxMessageBox("End"); return 1; }
Hi this Ravinder
Hello Friends i am facing a problem of CString Memory Leaks in VC6.0 in the Release mode i need some patches to ovvercome the Error. How to Fix The Bug Without changing my application
Hi this Ravinder
yeh., Exactly its working in vs2003 and later but not vc6.0 my applications all are in vc6.0. i need patches without changing my application
Hi this Ravinder
Actually i am using CString in my application more than 10k times and my apllication will run for days in this cases memory is not releasing thats the problem i have given a sample code only but it is working fine in Debug mode not in release mode ?
Hi this Ravinder
if i go for more number of CString calls it returns memory leak errors(no memory) is there any patches available for this? i need very urgent.
Hi this Ravinder
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