Click here to Skip to main content
15,913,934 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Repost: System Volume Information folder Pin
Michael Schubert1-Oct-08 5:27
Michael Schubert1-Oct-08 5:27 
AnswerRe: System Volume Information folder Pin
Michael Schubert1-Oct-08 5:29
Michael Schubert1-Oct-08 5:29 
GeneralRe: System Volume Information folder Pin
john56322-Oct-08 20:40
john56322-Oct-08 20:40 
GeneralRe: System Volume Information folder Pin
Michael Schubert2-Oct-08 22:26
Michael Schubert2-Oct-08 22:26 
QuestionHow to change the number of bits per pixel of BMP file? Pin
hanlei000000000930-Sep-08 22:59
hanlei000000000930-Sep-08 22:59 
AnswerRe: How to change the number of bits per pixel of BMP file? Pin
Naveen30-Sep-08 23:22
Naveen30-Sep-08 23:22 
QuestionDebug Assertion Failed... Pin
RYU^^30-Sep-08 21:34
RYU^^30-Sep-08 21:34 
AnswerRe: Debug Assertion Failed... Pin
Roger Stoltz30-Sep-08 23:58
Roger Stoltz30-Sep-08 23:58 
RYU^^ wrote:
I know it is not an important question, because if it is in release, it works perfectly.


Probably not.
The ASSERT macro is disabled when you're building for release, which means that the problem is only disguised in release mode.

If you have a look at the surrounding comments in the wincore.cpp file, you'll find that this assertion is due to that the window handle has not been detached from the object handle map. When you use wizards to generate code for your application, as I assume you have, this assertion won't be triggered by the generated code. My point is that this is something else and I would bet my money on COM-related stuff.

If you put some breakpoints to check which window it is that's causing problems, I would expect it to be an unknown window from your point of view.

Some things to check up on:
  • Make sure that you release all interface references to your ActiveX when the application is closed.
  • Make sure you calling ::CoUninitialize() for each time you've called ::CoInitialize() or similar.
  • If you're using a secondary thread that operates on the ActiveX, you have to set up the COM library for that thread as well by calling ::CoInitialize() / ::CoUninitialize(). Remember that you also have to marshal the interfaces to the secondary thread.


You may find this article[^] to be interesting as well.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


GeneralRe: Debug Assertion Failed... Pin
RYU^^1-Oct-08 13:50
RYU^^1-Oct-08 13:50 
AnswerRe: Debug Assertion Failed... Pin
Roger Stoltz1-Oct-08 20:05
Roger Stoltz1-Oct-08 20:05 
Questionwarning C4503 in using multimap <wstring,wstring> map1 Pin
preeti sharma30-Sep-08 20:58
preeti sharma30-Sep-08 20:58 
AnswerRe: warning C4503 in using multimap <wstring,wstring> map1 Pin
Cedric Moonen30-Sep-08 21:00
Cedric Moonen30-Sep-08 21:00 
QuestionOpenDialog Pin
Chandrasekharan P30-Sep-08 20:34
Chandrasekharan P30-Sep-08 20:34 
AnswerRe: OpenDialog Pin
Naveen30-Sep-08 20:48
Naveen30-Sep-08 20:48 
GeneralRe: OpenDialog Pin
Chandrasekharan P30-Sep-08 23:35
Chandrasekharan P30-Sep-08 23:35 
GeneralRe: OpenDialog Pin
Naveen30-Sep-08 23:53
Naveen30-Sep-08 23:53 
GeneralRe: OpenDialog Pin
Chandrasekharan P1-Oct-08 0:15
Chandrasekharan P1-Oct-08 0:15 
AnswerRe: OpenDialog Pin
Sandeep Saini SRE2-Oct-08 17:50
Sandeep Saini SRE2-Oct-08 17:50 
Questiondll problem extended Pin
ashishmax4730-Sep-08 20:04
ashishmax4730-Sep-08 20:04 
AnswerRe: dll problem extended Pin
Naveen30-Sep-08 20:20
Naveen30-Sep-08 20:20 
QuestionNot using .Net Technology Pin
bhanu_850930-Sep-08 19:47
bhanu_850930-Sep-08 19:47 
AnswerRe: Not using .Net Technology Pin
Cedric Moonen30-Sep-08 20:33
Cedric Moonen30-Sep-08 20:33 
AnswerRe: Not using .Net Technology Pin
CPallini30-Sep-08 21:50
mveCPallini30-Sep-08 21:50 
AnswerRe: Not using .Net Technology Pin
Hamid_RT30-Sep-08 22:01
Hamid_RT30-Sep-08 22:01 
QuestionEnumerating Files in a Folder Pin
Bram van Kampen30-Sep-08 14:14
Bram van Kampen30-Sep-08 14:14 

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.