Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question"Assertion Failed" with thread and device context Pin
nautilusvn29-Jul-09 16:11
nautilusvn29-Jul-09 16:11 
AnswerRe: "Assertion Failed" with thread and device context Pin
Richard Andrew x6429-Jul-09 16:51
professionalRichard Andrew x6429-Jul-09 16:51 
GeneralRe: "Assertion Failed" with thread and device context Pin
nautilusvn29-Jul-09 17:25
nautilusvn29-Jul-09 17:25 
GeneralRe: "Assertion Failed" with thread and device context Pin
Richard Andrew x6429-Jul-09 17:31
professionalRichard Andrew x6429-Jul-09 17:31 
GeneralRe: "Assertion Failed" with thread and device context Pin
Richard Andrew x6429-Jul-09 17:35
professionalRichard Andrew x6429-Jul-09 17:35 
GeneralRe: "Assertion Failed" with thread and device context Pin
nautilusvn29-Jul-09 20:27
nautilusvn29-Jul-09 20:27 
GeneralRe: "Assertion Failed" with thread and device context Pin
Richard Andrew x6430-Jul-09 4:14
professionalRichard Andrew x6430-Jul-09 4:14 
AnswerRe: "Assertion Failed" with thread and device context Pin
krmed30-Jul-09 6:53
krmed30-Jul-09 6:53 
One thing I see that could also be part of your problem is that you do a GetDC() in your thread, and then you properly select the new pen, use it, select the old pen and delete it, but I don't see anywhere that you do a ReleaseDC().

This probably isn't the entire problem, but you should always release the DC after you use it that way.

Hope that helps.

Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

QuestionPassing multi-dimensional array from C# to Win32 C++ dll? [modified] [MOVED TO C++/CLI] Pin
devvvy29-Jul-09 16:03
devvvy29-Jul-09 16:03 
AnswerRe: Passing multi-dimensional array from C# to Win32 C++ dll? Pin
Richard Andrew x6429-Jul-09 16:48
professionalRichard Andrew x6429-Jul-09 16:48 
Questionerror C1083 Pin
shabbychic29-Jul-09 15:57
shabbychic29-Jul-09 15:57 
AnswerRe: error C1083 Pin
Richard Andrew x6429-Jul-09 16:47
professionalRichard Andrew x6429-Jul-09 16:47 
Questionhow to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 15:06
Neil Jigger29-Jul-09 15:06 
AnswerRe: how to link a radio button to a command button? (mfc c++) Pin
Richard Andrew x6429-Jul-09 15:45
professionalRichard Andrew x6429-Jul-09 15:45 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 15:48
Neil Jigger29-Jul-09 15:48 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Richard Andrew x6429-Jul-09 16:00
professionalRichard Andrew x6429-Jul-09 16:00 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 16:08
Neil Jigger29-Jul-09 16:08 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Richard Andrew x6429-Jul-09 16:13
professionalRichard Andrew x6429-Jul-09 16:13 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 16:17
Neil Jigger29-Jul-09 16:17 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 18:38
Neil Jigger29-Jul-09 18:38 
QuestionLPTSTR concatenation Pin
akhanal29-Jul-09 10:20
akhanal29-Jul-09 10:20 
QuestionRe: LPTSTR concatenation Pin
David Crow29-Jul-09 10:50
David Crow29-Jul-09 10:50 
AnswerRe: LPTSTR concatenation Pin
akhanal29-Jul-09 11:18
akhanal29-Jul-09 11:18 
QuestionLIBC.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup Pin
stephen.hazel29-Jul-09 10:14
stephen.hazel29-Jul-09 10:14 
QuestionQuestion about Boost::Regex library Pin
msn9229-Jul-09 8:47
msn9229-Jul-09 8:47 

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.