Click here to Skip to main content
15,916,949 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: line Pin
Prakash Nadar25-Feb-04 5:38
Prakash Nadar25-Feb-04 5:38 
General#include <iostream> Pin
torrud25-Feb-04 5:03
torrud25-Feb-04 5:03 
GeneralRe: #include <iostream> Pin
Nemanja Trifunovic25-Feb-04 5:16
Nemanja Trifunovic25-Feb-04 5:16 
GeneralRe: #include <iostream> Pin
torrud25-Feb-04 5:57
torrud25-Feb-04 5:57 
GeneralConvert File format... Pin
rasha200325-Feb-04 4:57
rasha200325-Feb-04 4:57 
GeneralRe: Convert File format... Pin
_Magnus_25-Feb-04 5:14
_Magnus_25-Feb-04 5:14 
GeneralRe: Convert File format... Pin
l a u r e n25-Feb-04 6:50
l a u r e n25-Feb-04 6:50 
QuestionExe and DLL share a common heap? Pin
Halloko25-Feb-04 4:31
Halloko25-Feb-04 4:31 
First off I must admit I don't know if this is the rigth forum to post in, btu since I'm trying to do this in an MFC app of mine I hope it's ok Smile | :)

I'm currently experiencing some "simple" memory problems between my .exe and it's runtime-linked DLL.
If I allocate an object on the heap (using new) and try to deallocate it in the DLL (using delete, of course) I get a memory error kind of sounding like this:
HEAP[Adventure Editor.exe]: Invalid Address specified to RtlValidateHeap( 05180000, 00387A28 )

I traced into the C code and found out that the following code:
<br />
/*<br />
    * If this ASSERT fails, a bad pointer has been passed in. It may be<br />
    * totally bogus, or it may have been allocated from another heap.<br />
    * The pointer MUST come from the 'local' heap.<br />
    */<br />
_ASSERTE(_CrtIsValidHeapPointer(pUserData));


Since I know the pointer isn't bad it must be something about a DLL not sharing the .exe's heap.
Is that so? And if yes, why? I thought a DLL was loaded into the .exe memory?
AnswerRe: Exe and DLL share a common heap? Pin
Prakash Nadar25-Feb-04 4:40
Prakash Nadar25-Feb-04 4:40 
AnswerRe: Exe and DLL share a common heap? Pin
Nemanja Trifunovic25-Feb-04 5:21
Nemanja Trifunovic25-Feb-04 5:21 
GeneralRe: Exe and DLL share a common heap? Pin
valikac25-Feb-04 17:13
valikac25-Feb-04 17:13 
GeneralCreating time object of a non local timezone Pin
DimpleSurana25-Feb-04 4:30
DimpleSurana25-Feb-04 4:30 
GeneralRe: Creating time object of a non local timezone Pin
David Crow25-Feb-04 5:07
David Crow25-Feb-04 5:07 
GeneralRe: Creating time object of a non local timezone Pin
DimpleSurana25-Feb-04 18:26
DimpleSurana25-Feb-04 18:26 
GeneralRe: Creating time object of a non local timezone Pin
David Crow26-Feb-04 2:51
David Crow26-Feb-04 2:51 
GeneralRe: Creating time object of a non local timezone Pin
DimpleSurana26-Feb-04 3:49
DimpleSurana26-Feb-04 3:49 
GeneralRe: Creating time object of a non local timezone Pin
David Crow3-Mar-04 2:49
David Crow3-Mar-04 2:49 
Generalhex to dec Pin
styve25-Feb-04 3:53
styve25-Feb-04 3:53 
GeneralRe: hex to dec Pin
Prakash Nadar25-Feb-04 4:17
Prakash Nadar25-Feb-04 4:17 
GeneralRe: hex to dec Pin
David Crow25-Feb-04 4:24
David Crow25-Feb-04 4:24 
GeneralRe: hex to dec Pin
Prakash Nadar25-Feb-04 4:33
Prakash Nadar25-Feb-04 4:33 
GeneralRe: hex to dec Pin
David Crow25-Feb-04 4:38
David Crow25-Feb-04 4:38 
GeneralRe: hex to dec Pin
Prakash Nadar25-Feb-04 4:49
Prakash Nadar25-Feb-04 4:49 
GeneralRe: hex to dec Pin
David Crow25-Feb-04 5:18
David Crow25-Feb-04 5:18 
GeneralRe: hex to dec Pin
Cedric Moonen25-Feb-04 4:52
Cedric Moonen25-Feb-04 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.