Click here to Skip to main content
15,894,740 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: templates as paremeters in std::vector<> Pin
Nemanja Trifunovic13-Jan-03 5:44
Nemanja Trifunovic13-Jan-03 5:44 
GeneralRe: templates as paremeters in std::vector<> Pin
Ben Burnett13-Jan-03 17:01
Ben Burnett13-Jan-03 17:01 
GeneralRe: templates as paremeters in std::vector<> Pin
Nemanja Trifunovic13-Jan-03 5:48
Nemanja Trifunovic13-Jan-03 5:48 
Generalbinary_search / lower_bound Pin
User 98858-Jan-03 9:43
User 98858-Jan-03 9:43 
GeneralRe: binary_search / lower_bound Pin
User 98858-Jan-03 11:33
User 98858-Jan-03 11:33 
GeneralRe: binary_search / lower_bound Pin
Tim Smith9-Jan-03 8:07
Tim Smith9-Jan-03 8:07 
GeneralMemory Leak WIth OLE2A and other conversion macros. Pin
Anonymous8-Jan-03 3:05
Anonymous8-Jan-03 3:05 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
AlexO8-Jan-03 5:16
AlexO8-Jan-03 5:16 
It is not real leak, it is stack memory usage by Microsoft implementation of CRT. OLE2T and the rest use alloca, which is stack memory allocation. From my observation memory allocated with alloca released only when there is some internal limit reached, not like it is clamed by MS : "The allocated space is automatically freed when the calling function exits" (MSDN).
So code like

for(int i = 0; i < 10000;++i)
char* p = (char*)alloca(100);

Will increase your memory usage.
If you are concerned with that use _bstr_t (<comdef.h>)
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
Tim Smith8-Jan-03 10:12
Tim Smith8-Jan-03 10:12 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
AlexO9-Jan-03 3:01
AlexO9-Jan-03 3:01 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
Tim Smith9-Jan-03 3:54
Tim Smith9-Jan-03 3:54 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
AlexO9-Jan-03 4:07
AlexO9-Jan-03 4:07 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
Tim Smith9-Jan-03 8:09
Tim Smith9-Jan-03 8:09 
GeneralRe: Memory Leak WIth OLE2A and other conversion macros. Pin
Michael Dunn8-Jan-03 11:05
sitebuilderMichael Dunn8-Jan-03 11:05 
Generalrun an .asp script from within my app Pin
LukeV6-Jan-03 9:19
LukeV6-Jan-03 9:19 
GeneralRe: run an .asp script from within my app Pin
AlexO7-Jan-03 2:53
AlexO7-Jan-03 2:53 
GeneralRe: run an .asp script from within my app Pin
Todd Smith11-Jan-03 4:41
Todd Smith11-Jan-03 4:41 
GeneralSTL vs. MFC Pin
lpvoid6-Jan-03 8:45
lpvoid6-Jan-03 8:45 
GeneralRe: STL vs. MFC - The test code Pin
lpvoid6-Jan-03 8:56
lpvoid6-Jan-03 8:56 
GeneralRe: STL vs. MFC Pin
Christian Graus6-Jan-03 9:19
protectorChristian Graus6-Jan-03 9:19 
GeneralRe: STL vs. MFC Pin
lpvoid6-Jan-03 9:36
lpvoid6-Jan-03 9:36 
GeneralRe: STL vs. MFC Pin
Christian Graus6-Jan-03 10:08
protectorChristian Graus6-Jan-03 10:08 
GeneralRe: STL vs. MFC Pin
Tim Smith6-Jan-03 10:12
Tim Smith6-Jan-03 10:12 
GeneralRe: STL vs. MFC Pin
lpvoid7-Jan-03 2:49
lpvoid7-Jan-03 2:49 
GeneralRe: STL vs. MFC Pin
Christian Graus7-Jan-03 9:37
protectorChristian Graus7-Jan-03 9:37 

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.