Thread: Preventing memory leaks, sockets and threads on Unix - best resources

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    1

    Preventing memory leaks, sockets and threads on Unix - best resources

    I'm looking for some good resources ( tutorial or a chapters from books ) to learn about preventing memory leaks, sockets and threads on Unix.

    So far i've read Prata's C++ Primer, which is a great book, but to general.
    And a few chapters from "Practical C++ Programming 2003".

    All i've read about threads and sockets was from Wrox.Beginning.Linux.Programming.4th.Edition.Nov.2 007, but i didn't like it at all.

  2. #2
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    Wrox.Beginning.Linux.Programming.4th.Edition.Nov.2 007
    O_o

    Way to advertise your use of "free programming books"...

    Soma

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Using smart pointers and applying the RAII principle goes a long way. Boost.ScopeExit helps a lot, as well.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Unix sockets
    By karas in forum Linux Programming
    Replies: 8
    Last Post: 10-13-2007, 12:20 AM
  2. Unix Sockets
    By prvindia in forum Linux Programming
    Replies: 5
    Last Post: 03-11-2003, 09:16 AM
  3. command in unix for checking memory leaks
    By sanju in forum Linux Programming
    Replies: 1
    Last Post: 01-22-2003, 06:51 AM
  4. new to unix sockets
    By lithium in forum C Programming
    Replies: 3
    Last Post: 01-20-2003, 05:53 AM
  5. Unix - memory leaks detecting.
    By SOUND in forum C++ Programming
    Replies: 3
    Last Post: 12-14-2002, 07:24 PM

Tags for this Thread