Click here to Skip to main content
15,891,621 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNeed some help! Pin
munsiyari8-Mar-06 2:12
munsiyari8-Mar-06 2:12 
AnswerRe: Need some help! Pin
David Crow8-Mar-06 2:24
David Crow8-Mar-06 2:24 
AnswerRe: Need some help! Pin
Hamid_RT8-Mar-06 2:48
Hamid_RT8-Mar-06 2:48 
GeneralRe: Need some help! Pin
munsiyari8-Mar-06 3:05
munsiyari8-Mar-06 3:05 
QuestionAFX_ISOLATIONAWARE_FUNC crash Pin
Rob Caldecott8-Mar-06 1:38
Rob Caldecott8-Mar-06 1:38 
AnswerRe: AFX_ISOLATIONAWARE_FUNC crash Pin
Nibu babu thomas8-Mar-06 17:19
Nibu babu thomas8-Mar-06 17:19 
AnswerSolution: Struct member alignment Pin
Rob Caldecott8-Mar-06 21:11
Rob Caldecott8-Mar-06 21:11 
AnswerAnother Solution ... Pin
barneyman4-Dec-11 17:35
barneyman4-Dec-11 17:35 
put here because I found this thread when I had a similar problem ...

We had a crash in one of the comdlg32 methods wrapped in a AFX_ISOLATIONAWARE_FUNC macro, the problem was eventually traced to some shonky code in MFC, namely CDllIsolationWrapperBase::GetModuleHandle()

This method uses ::GetModuleHandle to get to (in our case) comdlg32 IIF that module is already loaded - the primary distinction between ::GetModuleHandle and LoadLibrary is the upping of the refcount, done in the latter, not the former

Our scenario was (simplistically) as follows ...

1. our code loads a 1st party lib, this dll explicitly loads comdlg32
2. our code uses comdlg32 methods - first time through, MFC needs a handle, uses GetModuleHandle as described above
3. our code frees 1st party lib, in its shutdown, comdlg's refcount drops to 0, hence unloads comdlg
4. our code uses comdlg32 methods again - MFC has a handle, it has a procAddress, it calls it ... boom!

Obviously, this bug will exhibit similarly with all the libraries that use the MFC wrapper class
QuestionWaveForm Display of Data Pin
kmsekhar8-Mar-06 0:28
kmsekhar8-Mar-06 0:28 
AnswerRe: WaveForm Display of Data Pin
jhwurmbach8-Mar-06 2:25
jhwurmbach8-Mar-06 2:25 
QuestionForbit MRU Updation Pin
Farhat Aisha7-Mar-06 23:42
Farhat Aisha7-Mar-06 23:42 
AnswerRe: Forbit MRU Updation Pin
Malli_S8-Mar-06 0:02
Malli_S8-Mar-06 0:02 
GeneralRe: Forbit MRU Updation Pin
Farhat Aisha8-Mar-06 0:25
Farhat Aisha8-Mar-06 0:25 
GeneralRe: Forbit MRU Updation Pin
Malli_S8-Mar-06 0:37
Malli_S8-Mar-06 0:37 
QuestionShell Executing From VC++ Pin
Malli_S7-Mar-06 23:40
Malli_S7-Mar-06 23:40 
AnswerRe: Shell Executing From VC++ Pin
Nibu babu thomas7-Mar-06 23:58
Nibu babu thomas7-Mar-06 23:58 
GeneralRe: Shell Executing From VC++ Pin
Malli_S8-Mar-06 0:25
Malli_S8-Mar-06 0:25 
AnswerRe: Shell Executing From VC++ Pin
David Crow8-Mar-06 2:26
David Crow8-Mar-06 2:26 
QuestionProcess hirarchy Pin
Aqueel7-Mar-06 23:40
Aqueel7-Mar-06 23:40 
AnswerRe: Process hirarchy Pin
Nibu babu thomas8-Mar-06 0:36
Nibu babu thomas8-Mar-06 0:36 
AnswerRe: Process hirarchy Pin
Aqueel8-Mar-06 1:06
Aqueel8-Mar-06 1:06 
GeneralRe: Process hirarchy Pin
Nibu babu thomas8-Mar-06 1:15
Nibu babu thomas8-Mar-06 1:15 
AnswerRe: Process hirarchy Pin
Aqueel8-Mar-06 1:21
Aqueel8-Mar-06 1:21 
GeneralRe: Process hirarchy Pin
Nibu babu thomas8-Mar-06 1:28
Nibu babu thomas8-Mar-06 1:28 
AnswerRe: Process hirarchy Pin
Aqueel8-Mar-06 1:34
Aqueel8-Mar-06 1:34 

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.