Click here to Skip to main content
15,891,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Extract Enum value from Enum symbol String. Pin
Stuart Dootson26-Jan-09 23:06
professionalStuart Dootson26-Jan-09 23:06 
GeneralRe: Extract Enum value from Enum symbol String. Pin
Comp_Users27-Jan-09 0:55
Comp_Users27-Jan-09 0:55 
GeneralRe: Extract Enum value from Enum symbol String. Pin
CPallini27-Jan-09 3:27
mveCPallini27-Jan-09 3:27 
GeneralRe: Extract Enum value from Enum symbol String. Pin
Stuart Dootson27-Jan-09 5:54
professionalStuart Dootson27-Jan-09 5:54 
AnswerRe: Extract Enum value from Enum symbol String. Pin
Nishad S27-Jan-09 2:03
Nishad S27-Jan-09 2:03 
Questionerror in COM object Pin
a_kiani26-Jan-09 20:59
a_kiani26-Jan-09 20:59 
QuestionUnhandled exception Pin
MsmVc26-Jan-09 19:41
MsmVc26-Jan-09 19:41 
AnswerRe: Unhandled exception Pin
aks.26-Jan-09 20:31
aks.26-Jan-09 20:31 
The message "Access violation reading location 0x00000000." means that you are accessing a pointer variable without assigning a memory.

Could you please check the pointers in CStringData* pOldData = GetData(); and CStringData* pNewData = pOldData->pStringMgr->Clone()->Allocate( nLength, sizeof( XCHAR ) ); lines.
( My suggestion is to check all pointers in CStringData* pNewData = pOldData->pStringMgr->Clone()->Allocate( nLength, sizeof( XCHAR ) ); )

In the debug mode, debugger is allocating and controlling memory access. If you use an unallocated pointer, the output will be undefined. Sometimes it will show exception/assertion or sometimes works fine. So it's better to check the pointers before use.

aks

QuestionOLE container - server with new MFC fearure Pack 2008 Pin
Member 364042826-Jan-09 19:33
Member 364042826-Jan-09 19:33 
QuestionPlz Help to Solve an Error Pin
vijith.squadz26-Jan-09 19:10
professionalvijith.squadz26-Jan-09 19:10 
AnswerRe: Plz Help to Solve an Error Pin
Sarath C26-Jan-09 19:30
Sarath C26-Jan-09 19:30 
GeneralRe: Plz Help to Solve an Error Pin
vijith.squadz26-Jan-09 20:16
professionalvijith.squadz26-Jan-09 20:16 
QuestionKillfocus not working on Button Control . Pin
Le@rner26-Jan-09 18:51
Le@rner26-Jan-09 18:51 
AnswerRe: Killfocus not working on Button Control . Pin
Nishad S26-Jan-09 21:05
Nishad S26-Jan-09 21:05 
GeneralRe: Killfocus not working on Button Control . Pin
Le@rner26-Jan-09 22:04
Le@rner26-Jan-09 22:04 
GeneralRe: Killfocus not working on Button Control . Pin
Nishad S26-Jan-09 22:06
Nishad S26-Jan-09 22:06 
AnswerRe: Killfocus not working on Button Control . Pin
aks.26-Jan-09 21:33
aks.26-Jan-09 21:33 
QuestionHow to remove the special character in CString? Pin
AnithaSubramani26-Jan-09 18:26
AnithaSubramani26-Jan-09 18:26 
AnswerRe: How to remove the special character in CString? Pin
Nishad S26-Jan-09 18:49
Nishad S26-Jan-09 18:49 
Questionlan cable Pin
pramod_r26-Jan-09 18:08
pramod_r26-Jan-09 18:08 
AnswerRe: lan cable Pin
Sarath C26-Jan-09 19:12
Sarath C26-Jan-09 19:12 
AnswerRe: lan cable Pin
aks.26-Jan-09 20:07
aks.26-Jan-09 20:07 
AnswerRe: lan cable Pin
Randor 26-Jan-09 20:54
professional Randor 26-Jan-09 20:54 
GeneralRe: lan cable Pin
Iain Clarke, Warrior Programmer27-Jan-09 4:02
Iain Clarke, Warrior Programmer27-Jan-09 4:02 
GeneralRe: lan cable Pin
Randor 27-Jan-09 7:50
professional Randor 27-Jan-09 7:50 

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.