Click here to Skip to main content
15,913,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: pragma warning disable? Pin
Stuart Dootson8-Jul-02 12:42
professionalStuart Dootson8-Jul-02 12:42 
AnswerRe: pragma warning disable? Pin
Michael Dunn8-Jul-02 16:53
sitebuilderMichael Dunn8-Jul-02 16:53 
GeneralRe: pragma warning disable? Pin
User 66589-Jul-02 0:03
User 66589-Jul-02 0:03 
Questionmalloc/new vs GlobalAlloc strategy ? Pin
yarp8-Jul-02 9:59
yarp8-Jul-02 9:59 
AnswerRe: malloc/new vs GlobalAlloc strategy ? Pin
Tim Smith8-Jul-02 10:10
Tim Smith8-Jul-02 10:10 
GeneralRe: malloc/new vs GlobalAlloc strategy ? Pin
yarp8-Jul-02 18:52
yarp8-Jul-02 18:52 
AnswerRe: malloc/new vs GlobalAlloc strategy ? Pin
Marshall8-Jul-02 10:51
Marshall8-Jul-02 10:51 
AnswerRe: malloc/new vs GlobalAlloc strategy ? Pin
Gary Kirkham8-Jul-02 11:51
Gary Kirkham8-Jul-02 11:51 
You didn't idenitify the bug associated with using the malloc function, but the _malloc_dbg might be useful in resolving the bug to a specific malloc call.

If the bug occurs when you read or write to the memory, you may be trying to read or write to unallocated memory. I know that GlobalAlloc has a 16 byte granularity. In other words if you allocate 1 byte of memory using GlobalAlloc, Win32 actually allocates 16 bytes. If you try to read or write to the 2nd or 3rd byte, etc then you probably won't get into trouble. I am not sure if this is true for malloc. Maybe something to look into.

I may be way off base, if so, then I am sure the CP gurus will correct me
GeneralRe: malloc/new vs GlobalAlloc strategy ? Pin
yarp8-Jul-02 18:57
yarp8-Jul-02 18:57 
Generalautomation problem. excel Pin
pnpfriend8-Jul-02 9:55
pnpfriend8-Jul-02 9:55 
QuestionGDI+ Image.Save Function? Pin
Andy Brace8-Jul-02 9:41
Andy Brace8-Jul-02 9:41 
GeneralExe/Dll Dependancies. Pin
Mike Doner8-Jul-02 9:34
Mike Doner8-Jul-02 9:34 
GeneralRe: Exe/Dll Dependancies. Pin
Oliver Daniel8-Jul-02 10:08
Oliver Daniel8-Jul-02 10:08 
GeneralRe: Exe/Dll Dependancies. Pin
Mike Doner9-Jul-02 9:06
Mike Doner9-Jul-02 9:06 
GeneralRe: Exe/Dll Dependancies. Pin
-Dy10-Jul-02 23:45
-Dy10-Jul-02 23:45 
GeneralRe: Exe/Dll Dependancies. Pin
Mike Doner12-Jul-02 2:59
Mike Doner12-Jul-02 2:59 
GeneralWNetAddConnection2 fails with error code 1312 Pin
alma8-Jul-02 9:24
alma8-Jul-02 9:24 
GeneralRe: WNetAddConnection2 fails with error code 1312 Pin
alma11-Jul-02 1:49
alma11-Jul-02 1:49 
GeneralSTL question - Moving Items around in a list Pin
#realJSOP8-Jul-02 9:13
professional#realJSOP8-Jul-02 9:13 
GeneralRe: STL question - Moving Items around in a list Pin
Chris Losinger8-Jul-02 9:38
professionalChris Losinger8-Jul-02 9:38 
GeneralRe: STL question - Moving Items around in a list Pin
#realJSOP8-Jul-02 9:45
professional#realJSOP8-Jul-02 9:45 
GeneralRe: STL question - Moving Items around in a list Pin
Chris Losinger8-Jul-02 9:53
professionalChris Losinger8-Jul-02 9:53 
GeneralRe: STL question - Moving Items around in a list Pin
Tim Smith8-Jul-02 10:14
Tim Smith8-Jul-02 10:14 
GeneralRe: STL question - Moving Items around in a list Pin
Chris Losinger8-Jul-02 10:16
professionalChris Losinger8-Jul-02 10:16 
GeneralRe: STL question - Moving Items around in a list Pin
#realJSOP9-Jul-02 2:31
professional#realJSOP9-Jul-02 2:31 

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.