Thread: Object Creation in thread function

  1. #16
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Its entirely practical if you are writing a web server, I've written several network services that used no CRT. In fact, I'm at a loss as to what you would need that does require CRT. Perhaps you could provide an example of a gotta have it function that requires CRT.

  2. #17
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    New Zealand
    No you haven't. You don't understand how much the CRT does for you. For example it calls the constructors of all your global objects for you. If you link with something called tinycrt then your global objects will not be constructed! What about new and delete, feel like implementing those yourself? I'm just warming up here. Trust me it's simply not practical.

    Anyway, you're totally reaching. It seems that the one you're trying to convince is yourself though. Serious Windows multi-threading programmers know that you should use _beginthread or _beginthreadex and not CreateThread.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  3. #18
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    I'm pretty god damned sure I'm more qualified to say what I have and haven't written than you.

  4. #19
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Please keep the posts clean or I'll close the thread.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM