Click here to Skip to main content
16,004,833 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Inserting ActiveX Control Pin
peterchen23-May-03 19:47
peterchen23-May-03 19:47 
GeneralRe: Inserting ActiveX Control Pin
Mardigin25-May-03 9:56
Mardigin25-May-03 9:56 
GeneralPassing hDC values between VC++ and VB Pin
3K Tech23-May-03 12:13
3K Tech23-May-03 12:13 
GeneralRe: Passing hDC values between VC++ and VB Pin
Michael Dunn23-May-03 14:50
sitebuilderMichael Dunn23-May-03 14:50 
GeneralCSplitterWnd Pin
Ancient Dragon23-May-03 10:28
Ancient Dragon23-May-03 10:28 
GeneralRe: CSplitterWnd Pin
includeh1024-May-03 6:20
includeh1024-May-03 6:20 
GeneralRe: CSplitterWnd Pin
valikac24-May-03 6:30
valikac24-May-03 6:30 
Generaloverloading new & delete operators Pin
Themis23-May-03 9:33
Themis23-May-03 9:33 
Hi, I 've experiencing a quite weird problem. I overload new & delete. In new I allocate memory from malloc() and then I add the given pointer to a list. I use an std::list<void*>. So it's sth like that:
<br />
void* operator new(size_t size)<br />
{<br />
    void* p = malloc(sizeof(byte)*size);<br />
    ...<br />
    myList.push_back(p);  //m_List is decleared and initialized<br />
<br />
    return p;<br />
}<br />

However as I 've seen with debug the list in order to create a new node uses the new operator, that comes back to me that I 've overload it! I suppose you can see the eternal recursion. What is weird though is that exactly the same code works perfectly fine in unix using the std::list and the g++ for compiler (in windows I use VC++ .NET).
I 'm open to suggestions, it 's driving me crazy Dead | X|

Thanks, Themis
GeneralRe: overloading new &amp; delete operators Pin
Mark Tutt23-May-03 9:47
Mark Tutt23-May-03 9:47 
GeneralRe: overloading new &amp; delete operators Pin
Joaquín M López Muñoz23-May-03 10:17
Joaquín M López Muñoz23-May-03 10:17 
GeneralMDI Project Pin
MemLeak23-May-03 9:14
MemLeak23-May-03 9:14 
GeneralATL Error when builing release version Pin
Matt Gates23-May-03 8:54
Matt Gates23-May-03 8:54 
GeneralRe: ATL Error when builing release version Pin
peterchen23-May-03 19:55
peterchen23-May-03 19:55 
GeneralRe: ATL Error when builing release version Pin
Ryan Binns24-May-03 22:04
Ryan Binns24-May-03 22:04 
GeneralAutomating Word2002 Pin
Matt Gates23-May-03 8:51
Matt Gates23-May-03 8:51 
GeneralRe: Automating Word2002 Pin
David Crow23-May-03 13:11
David Crow23-May-03 13:11 
QuestionHow to set Terminal font in CEdit? Pin
kydfru23-May-03 8:02
kydfru23-May-03 8:02 
AnswerRe: How to set Terminal font in CEdit? Pin
kydfru23-May-03 8:06
kydfru23-May-03 8:06 
QuestionDifference between child window and sibling window? Pin
MemLeak23-May-03 7:26
MemLeak23-May-03 7:26 
AnswerRe: Difference between child window and sibling window? Pin
Ravi Bhavnani23-May-03 7:30
professionalRavi Bhavnani23-May-03 7:30 
GeneralRe: Difference between child window and sibling window? Pin
MemLeak23-May-03 7:33
MemLeak23-May-03 7:33 
QuestionHow do I open SQL database using DAO?? Pin
IrishSonic23-May-03 7:22
IrishSonic23-May-03 7:22 
AnswerRe: How do I open SQL database using DAO?? Pin
zakarias24-May-03 7:38
zakarias24-May-03 7:38 
Generalmerge mpeg Pin
grv57523-May-03 6:21
grv57523-May-03 6:21 
GeneralRe: merge mpeg --&gt; COPY Pin
Anonymous23-May-03 8:00
Anonymous23-May-03 8:00 

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.