Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Ending thread and ReadFile is still trying to read Pin
Janine21-Aug-02 0:51
Janine21-Aug-02 0:51 
GeneralRe: Ending thread and ReadFile is still trying to read Pin
Janine21-Aug-02 1:46
Janine21-Aug-02 1:46 
GeneralRe: Ending thread and ReadFile is still trying to read Pin
Daniel Lohmann21-Aug-02 2:25
Daniel Lohmann21-Aug-02 2:25 
GeneralRe: Ending thread and ReadFile is still trying to read Pin
Janine21-Aug-02 2:38
Janine21-Aug-02 2:38 
GeneralRe: Ending thread and ReadFile is still trying to read Pin
Max Santos22-Aug-02 1:14
Max Santos22-Aug-02 1:14 
GeneralColour fonts Pin
wong190720-Aug-02 22:15
wong190720-Aug-02 22:15 
GeneralRe: Colour fonts Pin
Anonymous20-Aug-02 22:35
Anonymous20-Aug-02 22:35 
GeneralRe: Colour fonts Pin
wong190720-Aug-02 23:03
wong190720-Aug-02 23:03 
QuestionHow to export templates from an extension DLL ? Pin
Jonathan de Halleux20-Aug-02 22:00
Jonathan de Halleux20-Aug-02 22:00 
AnswerRe: How to export templates from an extension DLL ? Pin
Lakitu20-Aug-02 23:18
Lakitu20-Aug-02 23:18 
GeneralThanks. Pin
Jonathan de Halleux21-Aug-02 0:00
Jonathan de Halleux21-Aug-02 0:00 
GeneralOutlook-like menu control Pin
Dominik Reichl20-Aug-02 21:56
Dominik Reichl20-Aug-02 21:56 
GeneralRe: Outlook-like menu control Pin
Rashid Thadha21-Aug-02 6:34
Rashid Thadha21-Aug-02 6:34 
GeneralRe: Outlook-like menu control Pin
Dominik Reichl22-Aug-02 6:11
Dominik Reichl22-Aug-02 6:11 
GeneralDLL's, the Heap, and CDocument Pin
makom4220-Aug-02 21:55
makom4220-Aug-02 21:55 
Having just resolved my plugin problems Big Grin | :-D I now face the challenge of allowing my plugins to manipulate the data in my MFC app's CDocument derived class.

This I have done by passing a pointer to my derived doc class to the dll, and everything works fine. The plugin is able to create data in the doc.

However, when the doc deletes its data (OnNew... etc) I get a fatal exception. The object it is trying to delete is valid and does exist - however I beleive that it has been allocated from a different heap (the dll's) meaning the app/doc cannot unallocate it from it's own.

My dll "creates" data through the document itself..

...
pDoc->CreateVertex() ;
...

so why isn't the construction taking place from the "document" heap? I guess it always takes place in the local heap?
OMG | :OMG:

I could resolve this by getting the dll to track every single thing it creates and releasing it all on destruction, but that is far too clumsy.

This must be resolvable - otherwise no-one would have every been able to code plugins with MFC apps... Big Grin | :-D

Any ideas?


GeneralRe: DLL's, the Heap, and CDocument Pin
Lakitu20-Aug-02 23:21
Lakitu20-Aug-02 23:21 
GeneralRe: DLL's, the Heap, and CDocument Pin
makom4221-Aug-02 3:16
makom4221-Aug-02 3:16 
GeneralRe: DLL's, the Heap, and CDocument Pin
Tomasz Sowinski21-Aug-02 0:45
Tomasz Sowinski21-Aug-02 0:45 
GeneralRe: DLL's, the Heap, and CDocument Pin
makom4221-Aug-02 3:21
makom4221-Aug-02 3:21 
GeneralRe: DLL's, the Heap, and CDocument Pin
Tomasz Sowinski21-Aug-02 3:25
Tomasz Sowinski21-Aug-02 3:25 
GeneralRe: DLL's, the Heap, and CDocument Pin
Roger Allen21-Aug-02 1:41
Roger Allen21-Aug-02 1:41 
GeneralRe: DLL's, the Heap, and CDocument Pin
makom4221-Aug-02 3:19
makom4221-Aug-02 3:19 
GeneralCustom databases and file storage Pin
alex.barylski20-Aug-02 21:42
alex.barylski20-Aug-02 21:42 
GeneralRe: Custom databases and file storage Pin
Tomasz Sowinski21-Aug-02 0:23
Tomasz Sowinski21-Aug-02 0:23 
GeneralRe: Custom databases and file storage Pin
alex.barylski21-Aug-02 1:08
alex.barylski21-Aug-02 1:08 

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.