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

C / C++ / MFC

 
AnswerRe: A CListCtrl Question Pin
Zac Howland6-Sep-06 8:52
Zac Howland6-Sep-06 8:52 
AnswerRe: A CListCtrl Question [modified] Pin
bolivar1236-Sep-06 11:01
bolivar1236-Sep-06 11:01 
QuestionChange window to the XP Style Pin
ines ben hamida6-Sep-06 4:17
ines ben hamida6-Sep-06 4:17 
AnswerRe: Change window to the XP Style Pin
Christopher Duncan6-Sep-06 7:50
Christopher Duncan6-Sep-06 7:50 
QuestionHow to resize the modal dialog Pin
BlrBoy6-Sep-06 4:14
BlrBoy6-Sep-06 4:14 
AnswerRe: How to resize the modal dialog Pin
Viorel.6-Sep-06 4:36
Viorel.6-Sep-06 4:36 
GeneralRe: How to resize the modal dialog Pin
Maximilien6-Sep-06 4:37
Maximilien6-Sep-06 4:37 
QuestionErrors Using CMap Collections Pin
nadiric6-Sep-06 3:43
nadiric6-Sep-06 3:43 
I'm somewhat new to the CMap Collection class, and I'm having trouble with my program that's using them.

Using:
- MSVS2005
- CMapStringToString
- CMap<LPCTSTR,LPCTSTR,int,int>

I've done an inithash with 1000 as the input.

Items seem to be added fine until I get around 100 items... then:

Unhandled exception at 0x00435971 in test.exe: 0xC0000005: Access violation reading location 0x726e6e75.

This occurs in the CMapStringToString::GetAssocAt function at the point indicated by the arrow:

for (pAssoc = m_pHashTable[nHashBucket]; pAssoc != NULL; pAssoc = pAssoc->pNext)
{
--> if (pAssoc->nHashValue == nHashValue && pAssoc->key == key)
return pAssoc;
}

Based on what MSVS2005 is telling me in Debug, pAssoc is not null, but the nHashValue and key properties "cannot be evaluated".

Not sure where to go from here...

Thanks for any help.
AnswerRe: Errors Using CMap Collections Pin
ahmad_ali6-Sep-06 6:55
ahmad_ali6-Sep-06 6:55 
GeneralRe: Errors Using CMap Collections Pin
nadiric6-Sep-06 7:11
nadiric6-Sep-06 7:11 
GeneralRe: Errors Using CMap Collections Pin
Zac Howland6-Sep-06 9:08
Zac Howland6-Sep-06 9:08 
GeneralRe: Errors Using CMap Collections Pin
nadiric6-Sep-06 10:41
nadiric6-Sep-06 10:41 
GeneralRe: Errors Using CMap Collections Pin
Zac Howland7-Sep-06 4:48
Zac Howland7-Sep-06 4:48 
GeneralRe: Errors Using CMap Collections Pin
nadiric7-Sep-06 5:23
nadiric7-Sep-06 5:23 
QuestionHelp for ETSLayoutDialog Manager! Pin
bosfan6-Sep-06 3:27
bosfan6-Sep-06 3:27 
AnswerRe: Help for ETSLayoutDialog Manager! Pin
Cedric Moonen6-Sep-06 4:05
Cedric Moonen6-Sep-06 4:05 
GeneralRe: Help for ETSLayoutDialog Manager! Pin
bosfan6-Sep-06 4:30
bosfan6-Sep-06 4:30 
GeneralRe: Help for ETSLayoutDialog Manager! Pin
Cedric Moonen6-Sep-06 4:34
Cedric Moonen6-Sep-06 4:34 
GeneralRe: Help for ETSLayoutDialog Manager! Pin
bosfan6-Sep-06 5:09
bosfan6-Sep-06 5:09 
QuestionMCI CD Audio Output Pin
Cpt Rick6-Sep-06 2:56
Cpt Rick6-Sep-06 2:56 
AnswerRe: MCI CD Audio Output Pin
Christopher Duncan6-Sep-06 7:52
Christopher Duncan6-Sep-06 7:52 
Questionstoring data to a file Pin
vijay_aroli6-Sep-06 1:53
vijay_aroli6-Sep-06 1:53 
AnswerRe: storing data to a file Pin
led mike6-Sep-06 6:07
led mike6-Sep-06 6:07 
AnswerRe: storing data to a file Pin
Jun Du6-Sep-06 10:32
Jun Du6-Sep-06 10:32 
QuestionHow Can i Call a Function Providing its name as a string Pin
MIAN KAMRAN6-Sep-06 1:29
MIAN KAMRAN6-Sep-06 1:29 

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.