Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: log file Pin
Serge Krynine17-Mar-05 18:33
Serge Krynine17-Mar-05 18:33 
GeneralRe: log file Pin
David Crow18-Mar-05 3:13
David Crow18-Mar-05 3:13 
GeneralRe: log file Pin
John R. Shaw18-Mar-05 8:13
John R. Shaw18-Mar-05 8:13 
GeneralRe: log file Pin
David Crow18-Mar-05 8:23
David Crow18-Mar-05 8:23 
GeneralRe: log file Pin
Ed0118-Mar-05 13:18
Ed0118-Mar-05 13:18 
GeneralRe: log file Pin
David Crow18-Mar-05 18:10
David Crow18-Mar-05 18:10 
GeneralMemory leaks in c++ programs Pin
phijophlip17-Mar-05 17:38
phijophlip17-Mar-05 17:38 
GeneralRe: Memory leaks in c++ programs Pin
V.17-Mar-05 21:24
professionalV.17-Mar-05 21:24 
In my knowledge you can only create memory leaks when you don't use delete for every new.

When you use new, your program reserves some memory to store the object you're creating.
You have to manually release that memory (using delete) so it can be used again.

If you don't you reserve more and more unused memory exhausting the cpu's resources.

It's one of the things you really, really don't do. If I see a big memory leak my reaction would be: OMG | :OMG: and WTF | :WTF: ! Memory leaks aren't always that easy to avoid though.

try to google for more info.
good luck.
only 1 thing to remember : for every new (including the ones in loops!) do a delete!
(equal: malloc, alloc: or something (don't use them myself))

No hurries, no worries.
GeneralConnecting to SQL Server in VC++ Pin
CatMan6117-Mar-05 17:32
CatMan6117-Mar-05 17:32 
GeneralRe: Connecting to SQL Server in VC++ Pin
Renjith Ramachandran19-Mar-05 8:05
Renjith Ramachandran19-Mar-05 8:05 
GeneralSend email VC++ Pin
Francis Chau17-Mar-05 17:14
Francis Chau17-Mar-05 17:14 
GeneralRe: Send email VC++ Pin
Serge Krynine17-Mar-05 18:22
Serge Krynine17-Mar-05 18:22 
GeneralMDI Document and MSComm Pin
xiao_in17-Mar-05 16:24
xiao_in17-Mar-05 16:24 
GeneralRe: MDI Document and MSComm Pin
JohnCz18-Mar-05 9:39
JohnCz18-Mar-05 9:39 
GeneralWindows Sockets Pin
Anthony988717-Mar-05 13:27
Anthony988717-Mar-05 13:27 
GeneralRe: Windows Sockets Pin
Serge Krynine17-Mar-05 13:53
Serge Krynine17-Mar-05 13:53 
GeneralFormatting data for a report Pin
bcemick17-Mar-05 12:22
bcemick17-Mar-05 12:22 
GeneralRe: Formatting data for a report Pin
Ravi Bhavnani17-Mar-05 13:22
professionalRavi Bhavnani17-Mar-05 13:22 
GeneralRe: Formatting data for a report Pin
bcemick17-Mar-05 13:57
bcemick17-Mar-05 13:57 
GeneralActiveX Controls from 6.0 to .NET Pin
theFrenchHornet17-Mar-05 11:45
theFrenchHornet17-Mar-05 11:45 
GeneralDynamic submenus for shell context menu Pin
YaronNir17-Mar-05 11:41
YaronNir17-Mar-05 11:41 
GeneralRe: Dynamic submenus for shell context menu Pin
Michael Dunn17-Mar-05 17:52
sitebuilderMichael Dunn17-Mar-05 17:52 
GeneralRe: Dynamic submenus for shell context menu Pin
YaronNir17-Mar-05 23:40
YaronNir17-Mar-05 23:40 
Generalbreakpoints disabled all of a sudden Pin
ns17-Mar-05 11:33
ns17-Mar-05 11:33 
GeneralRe: breakpoints disabled all of a sudden Pin
John R. Shaw18-Mar-05 7:57
John R. Shaw18-Mar-05 7:57 

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.