Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralCTabCtrl sizing problem... (property sheet) Pin
Joan M14-Nov-02 0:42
professionalJoan M14-Nov-02 0:42 
GeneralRe: CTabCtrl sizing problem... (property sheet) Pin
Chris Hambleton14-Nov-02 4:31
Chris Hambleton14-Nov-02 4:31 
GeneralDialog placement... Pin
Neha14-Nov-02 0:04
Neha14-Nov-02 0:04 
GeneralRe: Dialog placement... Pin
Christian Graus14-Nov-02 0:27
protectorChristian Graus14-Nov-02 0:27 
GeneralRe: Dialog placement... Pin
Neha14-Nov-02 0:52
Neha14-Nov-02 0:52 
GeneralRe: Dialog placement... Pin
Christian Graus14-Nov-02 1:01
protectorChristian Graus14-Nov-02 1:01 

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.