Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Changing the font stly in CView Pin
Sunayna24-Sep-08 19:38
Sunayna24-Sep-08 19:38 
GeneralRe: Changing the font stly in CView Pin
santhoshv8424-Sep-08 20:05
santhoshv8424-Sep-08 20:05 
Questionback ground color of groupbox caption Pin
anilaabc24-Sep-08 17:56
anilaabc24-Sep-08 17:56 
AnswerRe: back ground color of groupbox caption Pin
Naveen24-Sep-08 18:15
Naveen24-Sep-08 18:15 
GeneralRe: back ground color of groupbox caption Pin
santhoshv8424-Sep-08 19:16
santhoshv8424-Sep-08 19:16 
GeneralRe: back ground color of groupbox caption Pin
Hamid_RT24-Sep-08 19:23
Hamid_RT24-Sep-08 19:23 
JokeRe: back ground color of groupbox caption Pin
ThatsAlok24-Sep-08 19:53
ThatsAlok24-Sep-08 19:53 
Question"This may be due to a corruption of the heap" Question. [modified] Pin
monsieur_jj24-Sep-08 15:34
monsieur_jj24-Sep-08 15:34 
Hi all,

I got this error:

Windows has triggered a breakpoint in UpdateService.exe.

This may be due to a corruption of the heap, and indicates a bug in UpdateService.exe
or any of the DLLs it has loaded.

The output window may have more diagnostic information.

and this is my code:

USES_CONVERSION;

	pDoCheckForProductUpdates->productName = new std::string(W2A(prd->m_Name.c_str()));
	pDoCheckForProductUpdates->productVersion = new std::string(W2A(prd->m_VersionNo.c_str()));
	pDoCheckForProductUpdates->serialNumber = new std::string(W2A(prd->m_SerialNo.c_str()));
	pDoCheckForProductUpdates->siteCode = new std::string(W2A(prd->m_SiteCode.c_str()));
	_ns1__DoGetLatestProduct				*pDoGetLatestProduct;
	_ns1__DoGetLatestProductResponse		*pDoGetLatestProductResponse;

	pDoGetLatestProduct	= InstantiateGetProduct();
	pDoGetLatestProductResponse = InstantiateGetProductResponse();
	iRet = m_pWebServiceSoap->__ns2__DoCheckForProductUpdates(pDoCheckForProductUpdates,pDoCheckForProductUpdatesResponse);


The error happens at the bold part. going to this part of atlsimpstr.h


#if _SECURE_ATL
        CopyChars( PXSTR( pNewData->data() ), nCharsToCopy, 
			PCXSTR( pOldData->data() ), nCharsToCopy );
#else
        CopyChars( PXSTR( pNewData->data() ), PCXSTR( pOldData->data() ), nCharsToCopy );
#endif
		pNewData->nDataLength = nOldLength;
		pOldData->Release();
		Attach( pNewData );
	}


Whats wrong with my code?

This error doesnt happen before but when i used "Use Standard Windows Libraries" but due to certain changes i encountered this error: fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]

Now i used Use MFC in a Shared DLL to solve that error now i encounter the above error.


Thanks,
Jayjay

modified on Wednesday, September 24, 2008 10:43 PM

QuestionAnyone used the CShareLockNH Methods documented in MSDN Pin
Blake Miller24-Sep-08 12:32
Blake Miller24-Sep-08 12:32 
AnswerRe: Anyone used the CShareLockNH Methods documented in MSDN Pin
Mark Salsbery24-Sep-08 13:23
Mark Salsbery24-Sep-08 13:23 
GeneralRe: Anyone used the CShareLockNH Methods documented in MSDN Pin
Blake Miller25-Sep-08 7:47
Blake Miller25-Sep-08 7:47 
QuestionC++ heap allocation question Pin
KellyR24-Sep-08 10:57
KellyR24-Sep-08 10:57 
AnswerRe: C++ heap allocation question Pin
Mark Salsbery24-Sep-08 11:12
Mark Salsbery24-Sep-08 11:12 
AnswerRe: C++ heap allocation question Pin
Joe Woodbury24-Sep-08 11:51
professionalJoe Woodbury24-Sep-08 11:51 
GeneralRe: C++ heap allocation question Pin
Mark Salsbery24-Sep-08 11:56
Mark Salsbery24-Sep-08 11:56 
GeneralRe: C++ heap allocation question Pin
Joe Woodbury24-Sep-08 11:58
professionalJoe Woodbury24-Sep-08 11:58 
QuestionLibtorrent Pin
Pwnagedo24-Sep-08 10:29
Pwnagedo24-Sep-08 10:29 
QuestionThreads and Memory Allocation Pin
Ylno24-Sep-08 8:10
Ylno24-Sep-08 8:10 
GeneralRe: Threads and Memory Allocation Pin
Perspx24-Sep-08 8:32
Perspx24-Sep-08 8:32 
AnswerRe: Threads and Memory Allocation Pin
Mark Salsbery24-Sep-08 9:37
Mark Salsbery24-Sep-08 9:37 
GeneralRe: Threads and Memory Allocation Pin
Ylno24-Sep-08 10:30
Ylno24-Sep-08 10:30 
GeneralRe: Threads and Memory Allocation Pin
Mark Salsbery24-Sep-08 10:49
Mark Salsbery24-Sep-08 10:49 
GeneralRe: Threads and Memory Allocation Pin
Ylno24-Sep-08 11:23
Ylno24-Sep-08 11:23 
AnswerRe: Threads and Memory Allocation Pin
Ylno24-Sep-08 11:48
Ylno24-Sep-08 11:48 
GeneralRe: Threads and Memory Allocation Pin
Mark Salsbery24-Sep-08 11:58
Mark Salsbery24-Sep-08 11:58 

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.