Click here to Skip to main content
15,918,889 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Spy++ results.... Pin
Neville Franks14-Nov-02 10:30
Neville Franks14-Nov-02 10:30 
GeneralRe: Spy++ results.... Pin
RobJones14-Nov-02 10:40
RobJones14-Nov-02 10:40 
GeneralMore animation control issues Pin
Brigg Thorp14-Nov-02 4:42
Brigg Thorp14-Nov-02 4:42 
GeneralThumbnail Images Browser Pin
Dacheng14-Nov-02 4:19
Dacheng14-Nov-02 4:19 
GeneralRe: Thumbnail Images Browser Pin
Maximilien14-Nov-02 4:46
Maximilien14-Nov-02 4:46 
GeneralCode to create a progress bar in a status bar within a thread Pin
nounours14-Nov-02 4:16
nounours14-Nov-02 4:16 
GeneralRe: Code to create a progress bar in a status bar within a thread Pin
RobJones14-Nov-02 5:08
RobJones14-Nov-02 5:08 
Generalneed solution about CHtmlView Pin
includeh1014-Nov-02 3:53
includeh1014-Nov-02 3:53 
GeneralRe: How to create dates directories and rename file extension using visual c++ Pin
Jason Henderson14-Nov-02 3:33
Jason Henderson14-Nov-02 3:33 
GeneralRe: How to create dates directories and rename file extension using visual c++ Pin
woonkop14-Nov-02 4:06
woonkop14-Nov-02 4:06 
GeneralRe: How to create dates directories and rename file extension using visual c++ Pin
Jason Henderson14-Nov-02 4:48
Jason Henderson14-Nov-02 4:48 
QuestionError building a DLL... lib file missing? Pin
Joan M14-Nov-02 1:13
professionalJoan M14-Nov-02 1:13 
AnswerRe: Error building a DLL... lib file missing? Pin
RobJones14-Nov-02 5:17
RobJones14-Nov-02 5:17 
GeneralAllocating memory in different heaps Pin
makom4214-Nov-02 0:42
makom4214-Nov-02 0:42 
I have an application that loads dlls which manipulate the applications document data by creating data within it.

However when my application deletes this data, it throws an exception because the some of the data it has was allocated from a different heap (the dll's).

Q. Is it possible to have a global heap available to both application and dll, where the app creates the document in the global heap, and the dll's can create data within it, which can then be destroyed by the application?

If so - how?

I recognise this could be a "bad" technique - (as a DLL may reference memory that has been deleted by the application) but my DLL's will only ever create data within the document, they will never re-reference data they have created.

Any suggestions?

GeneralRe: Allocating memory in different heaps Pin
jhwurmbach14-Nov-02 2:32
jhwurmbach14-Nov-02 2:32 
GeneralRe: Allocating memory in different heaps Pin
makom4214-Nov-02 4:02
makom4214-Nov-02 4:02 
GeneralRe: Allocating memory in different heaps Pin
jhwurmbach14-Nov-02 4:15
jhwurmbach14-Nov-02 4:15 
GeneralRe: Allocating memory in different heaps Pin
makom4214-Nov-02 4:20
makom4214-Nov-02 4:20 
GeneralRe: Allocating memory in different heaps Pin
makom4214-Nov-02 4:30
makom4214-Nov-02 4:30 
GeneralRe: Allocating memory in different heaps Pin
jhwurmbach14-Nov-02 4:41
jhwurmbach14-Nov-02 4:41 
GeneralRe: Allocating memory in different heaps Pin
makom4214-Nov-02 4:56
makom4214-Nov-02 4:56 
GeneralRe: Allocating memory in different heaps Pin
ian mariano14-Nov-02 6:44
ian mariano14-Nov-02 6:44 
GeneralRe: Allocating memory in different heaps Pin
Scott H. Settlemier14-Nov-02 12:20
Scott H. Settlemier14-Nov-02 12:20 
GeneralRe: Allocating memory in different heaps Pin
Anonymous15-Nov-02 3:27
Anonymous15-Nov-02 3:27 
GeneralRe: Allocating memory in different heaps Pin
makom4215-Nov-02 3:29
makom4215-Nov-02 3:29 

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.