Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: vcredist_x86.exe Pin
Rajesh R Subramanian18-Jul-11 5:40
professionalRajesh R Subramanian18-Jul-11 5:40 
GeneralRe: vcredist_x86.exe Pin
RomTibi18-Jul-11 5:47
RomTibi18-Jul-11 5:47 
QuestionError while fetching null value Pin
Pranit Kothari18-Jul-11 1:02
Pranit Kothari18-Jul-11 1:02 
AnswerRe: Error while fetching null value Pin
dasblinkenlight18-Jul-11 2:44
dasblinkenlight18-Jul-11 2:44 
Questionproblem in setting font to CComboBox in XP? Pin
yogish29317-Jul-11 23:55
yogish29317-Jul-11 23:55 
AnswerRe: problem in setting font to CComboBox in XP? Pin
«_Superman_»18-Jul-11 3:57
professional«_Superman_»18-Jul-11 3:57 
GeneralRe: problem in setting font to CComboBox in XP? Pin
yogish29318-Jul-11 20:41
yogish29318-Jul-11 20:41 
QuestionHow to delete char Array-Memory leak detection Pin
Anu_Bala17-Jul-11 20:55
Anu_Bala17-Jul-11 20:55 
Hi,

Im declaring one char array in dialog Header File.

char *czTagGetVal;


And in one dialog class,im using that array as

void CGraphicsTagDlg:: GetTagLbl(int iLNo)
{
czTagGetVal = new char[50];			
memset(czTagGetVal,0,50);
.
.
.
}


After debugging i get the solution without any error.But when i close the applcaition,in Output window i saw lot of Memory leak detection.

So while closing the application i delete this array as

if(czTagGetVal)
	delete [] czTagGetVal;


But i get the error as

Windows has triggered a breakpoint in GraphicsTag.exe.
This may be due to a corruption of the heap, which indicates a bug in GraphicsTag.exe or any of the DLLs it has loaded.


How can i avoid this error.I used such kind of array in my applcation by using new operator.I want to delete all allocated memory.How can i do that.Pls help me.
Anu

AnswerRe: How to delete char Array-Memory leak detection Pin
CPallini17-Jul-11 21:36
mveCPallini17-Jul-11 21:36 
AnswerRe: How to delete char Array-Memory leak detection Pin
Code-o-mat17-Jul-11 21:55
Code-o-mat17-Jul-11 21:55 
GeneralRe: How to delete char Array-Memory leak detection Pin
Anu_Bala17-Jul-11 22:14
Anu_Bala17-Jul-11 22:14 
GeneralRe: How to delete char Array-Memory leak detection Pin
Code-o-mat17-Jul-11 22:31
Code-o-mat17-Jul-11 22:31 
GeneralRe: How to delete char Array-Memory leak detection Pin
Anu_Bala17-Jul-11 22:39
Anu_Bala17-Jul-11 22:39 
GeneralRe: How to delete char Array-Memory leak detection Pin
Code-o-mat17-Jul-11 22:47
Code-o-mat17-Jul-11 22:47 
GeneralRe: How to delete char Array-Memory leak detection Pin
Stefan_Lang20-Jul-11 1:21
Stefan_Lang20-Jul-11 1:21 
AnswerRe: How to delete char Array-Memory leak detection Pin
Albert Holguin18-Jul-11 5:31
professionalAlbert Holguin18-Jul-11 5:31 
QuestionHow to open and read/write from multiple serial ports at the same time? Pin
Le@rner17-Jul-11 20:42
Le@rner17-Jul-11 20:42 
AnswerRe: How to open and read/write from multiple serial ports at the same time? Pin
Code-o-mat17-Jul-11 20:50
Code-o-mat17-Jul-11 20:50 
GeneralRe: How to open and read/write from multiple serial ports at the same time? Pin
Le@rner17-Jul-11 20:56
Le@rner17-Jul-11 20:56 
GeneralRe: How to open and read/write from multiple serial ports at the same time? Pin
Code-o-mat17-Jul-11 21:36
Code-o-mat17-Jul-11 21:36 
GeneralRe: How to open and read/write from multiple serial ports at the same time? Pin
Le@rner17-Jul-11 21:38
Le@rner17-Jul-11 21:38 
GeneralRe: How to open and read/write from multiple serial ports at the same time? Pin
Code-o-mat17-Jul-11 21:52
Code-o-mat17-Jul-11 21:52 
GeneralRe: How to open and read/write from multiple serial ports at the same time? Pin
Le@rner17-Jul-11 22:05
Le@rner17-Jul-11 22:05 
GeneralRe: How to open and read/write from multiple serial ports at the same time? Pin
Code-o-mat17-Jul-11 22:35
Code-o-mat17-Jul-11 22:35 
GeneralMessage Removed Pin
16-Dec-11 0:14
Le@rner16-Dec-11 0:14 

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.