Click here to Skip to main content
15,906,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Windows XP Home or Professional? Pin
ColinDavies29-Jan-03 22:15
ColinDavies29-Jan-03 22:15 
GeneralRe: Windows XP Home or Professional? Pin
Jon Sagara30-Jan-03 5:16
Jon Sagara30-Jan-03 5:16 
AnswerRe: Windows XP Home or Professional? Pin
Mike Nordell30-Jan-03 21:24
Mike Nordell30-Jan-03 21:24 
Generalsetting structure objects equal Pin
ns29-Jan-03 9:42
ns29-Jan-03 9:42 
GeneralRe: setting structure objects equal Pin
valikac29-Jan-03 9:51
valikac29-Jan-03 9:51 
GeneralRe: setting structure objects equal Pin
Chris Richardson29-Jan-03 12:34
Chris Richardson29-Jan-03 12:34 
GeneralRe: setting structure objects equal Pin
Gary R. Wheeler29-Jan-03 14:10
Gary R. Wheeler29-Jan-03 14:10 
QuestionSTL map problem...??? Pin
ns29-Jan-03 9:30
ns29-Jan-03 9:30 
I have a map being used as:

void CSVBoxView::MakePalettes()
{
	m_Pal1 = "Remus";
	m_Pal2 = "Q14";

	CImage & ImageRemus = m_PaletteMap[m_Pal1];
	CImage & ImageQ14   = m_PaletteMap[m_Pal2];


where
std::map  is of type [CString, CImage] m_PaletteMap;


(I cant put the angled brackets around the map declare in CP)

On running it crashes at CImage & ImageRemus = m_PaletteMap[m_Pal1]; which is how a new empty image is created. It says unhandled exception, and in the debug window it says:

HEAP[SVBox.exe]: Invalid Address specified to RtlFreeHeap( 2f0000, 6c440088 )


I tried looking at the call stack but its stopped in NTDLL. What dumb thing have I done?

Appreciate your help,
ns
AnswerRe: STL map problem...??? Pin
User 988529-Jan-03 9:41
User 988529-Jan-03 9:41 
AnswerRe: STL map problem...??? Pin
Joaquín M López Muñoz29-Jan-03 12:34
Joaquín M López Muñoz29-Jan-03 12:34 
General[Beta-Tester search] Test new System Information Viewer Pin
Dominik Reichl29-Jan-03 9:23
Dominik Reichl29-Jan-03 9:23 
GeneralARG! m_pszProfileName Pin
Scott H. Settlemier29-Jan-03 9:01
Scott H. Settlemier29-Jan-03 9:01 
GeneralCOM1 Opening Pin
Dasa29-Jan-03 7:02
Dasa29-Jan-03 7:02 
GeneralRe: COM1 Opening Pin
Abbas_Riazi29-Jan-03 8:21
professionalAbbas_Riazi29-Jan-03 8:21 
Generaltransparent buttons Pin
Thomas Bretz-Rieck29-Jan-03 7:04
Thomas Bretz-Rieck29-Jan-03 7:04 
GeneralRe: transparent buttons Pin
Abbas_Riazi29-Jan-03 8:58
professionalAbbas_Riazi29-Jan-03 8:58 
GeneralRe: transparent buttons Pin
Thomas Bretz-Rieck29-Jan-03 23:45
Thomas Bretz-Rieck29-Jan-03 23:45 
Generaldefault parameter values Pin
brianwelsch29-Jan-03 5:53
brianwelsch29-Jan-03 5:53 
GeneralRe: default parameter values Pin
Nitron29-Jan-03 6:06
Nitron29-Jan-03 6:06 
GeneralRe: default parameter values Pin
Roger Allen29-Jan-03 6:14
Roger Allen29-Jan-03 6:14 
GeneralRe: default parameter values Pin
brianwelsch29-Jan-03 6:48
brianwelsch29-Jan-03 6:48 
GeneralHELP!?!?! :-O Pin
Nitron29-Jan-03 5:41
Nitron29-Jan-03 5:41 
GeneralRe: HELP!?!?! :-O Pin
Roger Allen29-Jan-03 6:17
Roger Allen29-Jan-03 6:17 
GeneralRe: HELP!?!?! :-O Pin
Nitron29-Jan-03 6:41
Nitron29-Jan-03 6:41 
GeneralRunning an exe as an activex component. Pin
DaMP29-Jan-03 5:26
DaMP29-Jan-03 5:26 

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.