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

C / C++ / MFC

 
AnswerRe: How to debug DB2-C Stored procedures sitting on Z/Os from VC++ Editor Pin
Mike Dimmick9-Sep-03 2:03
Mike Dimmick9-Sep-03 2:03 
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 
Hi All, I'm using malloc, realloc and free to maintain variable length memory blocks, which I intend to use for a container template class. What I would like to know is how to initialise parts of the block by calling the constructor of my object of type T? I use malloc if the block is null and realloc if it isn't so initialisation is quite important (otherwise realloc will get called on a duff address == crash Smile | :) ). Trouble is I can't use calloc to initialise the block bytes to 0 cos it'll only initialise the container the first time round (realloc is used thereafter), and secondly I have objects of x bytes that have _vfptr's which should not be NULL. So is there anyway I can initialise a new object when I allocate enough space for it? I can't use placement new because I need the allocation to grow or shrink. Aside from creating an object on the stack and memcpying it, I was hoping to be able to allocate the space and then call the objects constructor using that allocated space for its containment, anybody got any ideas? Thanks all for reading this far.

Alan.
GeneralRe: Memory Management Pin
Andrew Walker9-Sep-03 0:04
Andrew Walker9-Sep-03 0:04 
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 

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.