Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

limitation of edit boxes in one dialog?

Status
Not open for further replies.

kaya17

Programmer
Feb 9, 2004
78
0
0
SG
hi, i got a very weired problem here ( at least it is weired enough for me)

i have some edit boxes and combo boxes in my dialog. and i want the edit box to reflect some value. so i associate a CString m_data to each of the edit box. however, when i did so for the last one, and when i execute the program, it gave an assertion failed error, saying: 'Debug Assertion Failed". in the file: afx.inl
Line 122.

then when i debugged it, it leads me to the line:
saying: ASSERT(m_pchData !=NULL);

i thought it is that variable got some error, then i changed the last one to another variable. still, got error, so it means, no matter which variable is the last one, it gives error.

is it that a dialog got a maximum limit for the number of edit boxes?

anyone encountered the same problem before?

your suggestion would be grateful received!

kaya
 
What the assertion really is saying is that the CString doesnt feel to well.
Check the call stack:
Which CString is causing the problem?
Has it been properly initialized?
Has it been (erroneously) destructed?


/Per
[sub]
"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top