Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWIN32 BUG? Pin
KEL318-Oct-07 23:50
KEL318-Oct-07 23:50 
AnswerRe: WIN32 BUG? Pin
KEL318-Oct-07 23:58
KEL318-Oct-07 23:58 
GeneralRe: WIN32 BUG? Pin
aks.19-Oct-07 4:58
aks.19-Oct-07 4:58 
GeneralRe: WIN32 BUG? Pin
KEL322-Oct-07 0:52
KEL322-Oct-07 0:52 
AnswerRe: WIN32 BUG? Pin
Mark Salsbery19-Oct-07 5:27
Mark Salsbery19-Oct-07 5:27 
GeneralRe: WIN32 BUG? Pin
KEL322-Oct-07 0:57
KEL322-Oct-07 0:57 
GeneralRe: WIN32 BUG? Pin
KEL322-Oct-07 1:07
KEL322-Oct-07 1:07 
AnswerRe: WIN32 BUG? Pin
KEL325-Oct-07 1:43
KEL325-Oct-07 1:43 
OK. Someone helped me out! This is the answer :
======================================================
The problem is that the shell is caching column handlers.
When the file dialog exits, it calls CoUninitialize, which
unloads all the handlers even if there are references
outstanding. The next time the file dialog is opened,
the shell tries to access a column handler that isn't
there any more. Boom! If you manage COM initialisation
yourself, you shouldn't run into this problem.
--
Jim Barry, MVP (Windows SDK)

=======================================================

BUT, why does this happen ONLY on the Desktop?
Normally the shell should do the same thing, no matter
which folder you are in, shouldn't it ?

=======================================================

It's because the desktop folder is cached.
Other folders will be released (thus releasing
their column handler caches) before the file
dialog exits, but the shell caches the desktop
folder and so it outlives the file dialog.
--
Jim Barry, MVP (Windows SDK)


kostas KEL

QuestionHelp Pin
josip cagalj18-Oct-07 23:41
josip cagalj18-Oct-07 23:41 
QuestionApplication runnig problem.. [modified] Pin
Vugar Avazov18-Oct-07 23:36
Vugar Avazov18-Oct-07 23:36 
AnswerRe: Application runnig problem.. Pin
chandu00418-Oct-07 23:40
chandu00418-Oct-07 23:40 
GeneralRe: Application runnig problem.. [modified] Pin
Vugar Avazov19-Oct-07 7:14
Vugar Avazov19-Oct-07 7:14 
GeneralRe: Application runnig problem.. Pin
chandu00419-Oct-07 0:04
chandu00419-Oct-07 0:04 
GeneralRe: Application runnig problem.. Pin
josip cagalj19-Oct-07 0:09
josip cagalj19-Oct-07 0:09 
JokeRe: Application runnig problem.. Pin
Nelek19-Oct-07 0:12
protectorNelek19-Oct-07 0:12 
GeneralRe: Application runnig problem.. Pin
chandu00419-Oct-07 0:13
chandu00419-Oct-07 0:13 
GeneralRe: Application runnig problem.. Pin
chandu00419-Oct-07 0:12
chandu00419-Oct-07 0:12 
AnswerRe: Application runnig problem.. Pin
josip cagalj19-Oct-07 0:03
josip cagalj19-Oct-07 0:03 
AnswerRe: Application runnig problem.. Pin
Cedric Moonen19-Oct-07 0:03
Cedric Moonen19-Oct-07 0:03 
QuestionCuriosity Pin
Nelek19-Oct-07 0:26
protectorNelek19-Oct-07 0:26 
AnswerRe: Curiosity Pin
ThatsAlok19-Oct-07 0:38
ThatsAlok19-Oct-07 0:38 
GeneralRe: Curiosity Pin
Nelek19-Oct-07 1:26
protectorNelek19-Oct-07 1:26 
GeneralRe: Curiosity Pin
Cedric Moonen19-Oct-07 7:52
Cedric Moonen19-Oct-07 7:52 
AnswerRe: Curiosity Pin
Cedric Moonen19-Oct-07 1:07
Cedric Moonen19-Oct-07 1:07 
GeneralRe: Curiosity Pin
JudyL_MD19-Oct-07 2:33
JudyL_MD19-Oct-07 2:33 

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.