Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRun-Time Check Failure #2 - Stack around the variable name 'pbuff' was corrupted. Pin
si_698-Sep-03 23:56
si_698-Sep-03 23:56 
GeneralRe: Run-Time Check Failure #2 - Stack around the variable name 'pbuff' was corrupted. Pin
jhwurmbach9-Sep-03 0:24
jhwurmbach9-Sep-03 0:24 
GeneralRe: Run-Time Check Failure #2 - Stack around the variable name 'pbuff' was corrupted. Pin
Ted Ferenc9-Sep-03 0:43
Ted Ferenc9-Sep-03 0:43 
GeneralRe: Run-Time Check Failure #2 - Stack around the variable name 'pbuff' was corrupted. Pin
Steve Thresher9-Sep-03 6:10
Steve Thresher9-Sep-03 6:10 
Generalstrange IDM_PRINT Pin
Member 4509908-Sep-03 22:31
Member 4509908-Sep-03 22:31 
GeneralRe: strange IDM_PRINT Pin
xltread30-Aug-10 13:05
xltread30-Aug-10 13:05 
GeneralMemory Management Pin
Dangleberry8-Sep-03 22:18
sussDangleberry8-Sep-03 22:18 
GeneralRe: Memory Management Pin
Andrew Walker9-Sep-03 0:04
Andrew Walker9-Sep-03 0:04 
AFAIK malloc is a 'C' function.

The operator new in C++ also calls that constructor. If you go with the C++ way of doing things - if you're using templates you have to be using C++, you can allocate a contiguous block of memory, then use placement new to construct the objects. Thats how the STL allocators work.

Don't forget mixing new and malloc is just asking for trouble...


If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.

Rudyard Kipling

GeneralRe: Memory Management Pin
Johnny ²9-Sep-03 1:07
Johnny ²9-Sep-03 1:07 
GeneralRe: Memory Management Pin
Dangleberry9-Sep-03 2:13
sussDangleberry9-Sep-03 2:13 
QuestionHow to round a double value Pin
King_of_Queens8-Sep-03 22:13
King_of_Queens8-Sep-03 22:13 
AnswerRe: How to round a double value Pin
Dangleberry8-Sep-03 22:34
sussDangleberry8-Sep-03 22:34 
GeneralRe: How to round a double value Pin
King_of_Queens8-Sep-03 22:55
King_of_Queens8-Sep-03 22:55 
GeneralRe: How to round a double value Pin
Dangleberry8-Sep-03 23:14
sussDangleberry8-Sep-03 23:14 
GeneralRe: How to round a double value Pin
vcplusplus9-Sep-03 1:58
vcplusplus9-Sep-03 1:58 
GeneralRe: How to round a double value Pin
Dangleberry9-Sep-03 2:50
sussDangleberry9-Sep-03 2:50 
GeneralRe: How to round a double value Pin
vcplusplus9-Sep-03 3:20
vcplusplus9-Sep-03 3:20 
GeneralRe: How to round a double value Pin
QuiJohn9-Sep-03 3:20
QuiJohn9-Sep-03 3:20 
AnswerRe: How to round a double value Pin
David Crow9-Sep-03 2:47
David Crow9-Sep-03 2:47 
GeneralRe: How to round a double value Pin
Dangleberry9-Sep-03 3:14
sussDangleberry9-Sep-03 3:14 
AnswerRe: How to round a double value Pin
ohadp9-Sep-03 3:28
ohadp9-Sep-03 3:28 
QuestionDCOM -SOAP transparent proxy exists ? Pin
vgrigor8-Sep-03 22:03
vgrigor8-Sep-03 22:03 
GeneralCEdit , Numbers only Pin
KKR8-Sep-03 21:51
KKR8-Sep-03 21:51 
GeneralRe: CEdit , Numbers only Pin
Cedric Moonen8-Sep-03 22:59
Cedric Moonen8-Sep-03 22:59 
GeneralRe: CEdit , Numbers only Pin
KKR8-Sep-03 23:07
KKR8-Sep-03 23:07 

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.