Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Copy Folder Tree Pin
Naveen30-Sep-08 23:31
Naveen30-Sep-08 23:31 
GeneralRe: Copy Folder Tree Pin
TeVc++30-Sep-08 23:38
TeVc++30-Sep-08 23:38 
GeneralRe: Copy Folder Tree Pin
Sauce!1-Oct-08 5:27
Sauce!1-Oct-08 5:27 
GeneralRe: Copy Folder Tree Pin
TeVc++2-Oct-08 18:54
TeVc++2-Oct-08 18:54 
GeneralRe: Copy Folder Tree Pin
Sauce!3-Oct-08 3:03
Sauce!3-Oct-08 3:03 
QuestionHow do I pass MySQL connection ID to COM using VC++ 9.0? Pin
Ger Hayden29-Sep-08 19:48
Ger Hayden29-Sep-08 19:48 
QuestionHow to get Exchange server permission Pin
Member 443453629-Sep-08 19:09
Member 443453629-Sep-08 19:09 
QuestionProblem using CLR in MFC ActiveX controls Pin
astibich229-Sep-08 18:27
astibich229-Sep-08 18:27 
I recently discovered MFC support for winforms, and have been using it to host .Net Controls in my MFC activeX controls. This all worked beautifully, until recently when we started getting an assertion from msilexit.cpp during shutdown of the hosting application. The assertion is due to a user breakpoint, which originates from the __clrcall _exit_callback function.

extern "C" void __clrcall _exit_callback(void)
{
...

if ( *__onexitend != NULL )
(**__onexitend)();

...
}

Here are the facts that I have been able to collect.

1. There are no exceptions generated after you dismiss the assertion.
2. The application seems to have no problems in release.
3. There seems to be a correlation between the assertion and the number of "clr enabled" activeX libraries that have been loaded into memory. The magic number seems to be three. If you only load two "clr enabled" activeX's during the application lifetime, no assertion.

My output window, when the assertion occurs, looks like this:

'VRExplorer.exe': Unloaded 'F:\VirtualRack\Trunk\Source\BuiltComponents\Debug\VRSystem\VRGUIControls.ocx'
'VRExplorer.exe': Unloaded 'F:\VirtualRack\Trunk\Source\BuiltComponents\Debug\VRSystem\VRGUIPanelWatch.ocx'
'VRExplorer.exe': Unloaded 'F:\VirtualRack\Trunk\Source\BuiltComponents\Debug\VRSystem\VRServiceLoggerPanel.ocx'
'VRExplorer.exe': Unloaded 'F:\VirtualRack\Trunk\Source\BuiltComponents\Debug\VRSystem\VRBitmaps.ocx'
The thread 0x11d4 has exited with code 0 (0x0).
The thread 0x16ec has exited with code 0 (0x0).
The thread 0x230 has exited with code 0 (0x0).
The thread 0x11bc has exited with code 0 (0x0).
VRExplorer.exe has triggered a breakpoint

Thanks for your help,

Aaron
QuestionReading Excel File Pin
ganychina29-Sep-08 18:07
ganychina29-Sep-08 18:07 
AnswerRe: Reading Excel File Pin
Hamid_RT29-Sep-08 20:04
Hamid_RT29-Sep-08 20:04 
RantRepost. Pin
CPallini29-Sep-08 22:29
mveCPallini29-Sep-08 22:29 
JokeRe: Repost. Pin
ThatsAlok29-Sep-08 22:43
ThatsAlok29-Sep-08 22:43 
QuestionHow to show 3 different views in 3 subpanels in right panel using by using splitterwnd? Pin
srikadi29-Sep-08 17:46
srikadi29-Sep-08 17:46 
AnswerRe: How to show 3 different views in 3 subpanels in right panel using by using splitterwnd? Pin
Iain Clarke, Warrior Programmer29-Sep-08 22:50
Iain Clarke, Warrior Programmer29-Sep-08 22:50 
QuestionProblem with TryEnterCriticalSection Pin
krishnan.s29-Sep-08 17:36
krishnan.s29-Sep-08 17:36 
AnswerRe: Problem with TryEnterCriticalSection Pin
Naveen29-Sep-08 17:48
Naveen29-Sep-08 17:48 
GeneralRe: Problem with TryEnterCriticalSection Pin
krishnan.s29-Sep-08 17:50
krishnan.s29-Sep-08 17:50 
GeneralRe: Problem with TryEnterCriticalSection Pin
Naveen29-Sep-08 17:56
Naveen29-Sep-08 17:56 
AnswerRe: Problem with TryEnterCriticalSection Pin
SRKSHOME29-Sep-08 18:30
SRKSHOME29-Sep-08 18:30 
AnswerRe: Problem with TryEnterCriticalSection Pin
ThatsAlok29-Sep-08 22:48
ThatsAlok29-Sep-08 22:48 
AnswerRe: Problem with TryEnterCriticalSection Pin
sashoalm30-Sep-08 0:24
sashoalm30-Sep-08 0:24 
GeneralRe: Problem with TryEnterCriticalSection Pin
krishnan.s30-Sep-08 1:51
krishnan.s30-Sep-08 1:51 
GeneralRe: Problem with TryEnterCriticalSection Pin
sashoalm30-Sep-08 5:52
sashoalm30-Sep-08 5:52 
QuestionQuery reagrding boodt graph library... Pin
raesa29-Sep-08 17:04
raesa29-Sep-08 17:04 
QuestionRe-Posting as Question... Dialog - PropertyPage Problem Pin
Rangarajan Varadan29-Sep-08 4:52
Rangarajan Varadan29-Sep-08 4:52 

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.