Object Creation in thread function

This is a discussion on Object Creation in thread function within the Windows Programming forums, part of the Platform Specific Boards category; Its entirely practical if you are writing a web server, I've written several network services that used no CRT. In ...

  1. #16
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    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.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  2. #17
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,299
    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
    Posts
    3,189
    I'm pretty god damned sure I'm more qualified to say what I have and haven't written than you.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

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

Page 2 of 2 FirstFirst 12
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, 02:07 AM
  2. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 01: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21