Thread: gcnew : alignment issues?

  1. #1
    Alessio Stella
    Join Date
    May 2008
    Italy, Bologna

    gcnew : alignment issues?

    Do i have to care for alignment matters if I call gcnew from two different threads??

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    Are you talking about managed C++? If so, the same rules apply as for normal new/malloc - it is only guaranteed to align to a boundary that is suitable for the datatype with the largest alignment natively supported by the compiler.

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help is welcome.
    By bradszy in forum C++ Programming
    Replies: 24
    Last Post: 01-23-2008, 05:26 PM
  2. Dynamic struct alignment?
    By matthew180 in forum C Programming
    Replies: 7
    Last Post: 06-15-2007, 08:34 AM
  3. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  4. Ok, I'm dumb, byte alignment for the third time
    By Shadow12345 in forum C++ Programming
    Replies: 2
    Last Post: 12-30-2002, 06:19 PM
  5. trouble with printf alignment
    By hyaline in forum C Programming
    Replies: 5
    Last Post: 09-22-2001, 01:39 AM