CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Eri523

Search: Search took 0.20 seconds.

  1. Replies
    12
    Views
    2,756

    Re: A question about deleting a native pointer

    I know these techniques. The early Pentium processors didn't support out-of-order execution, so they were crucial to get decent performance out of them by placing independent instructions next to...
  2. Replies
    12
    Views
    2,756

    Re: A question about deleting a native pointer

    Then it's a static method? Technically that's pretty much the same as a parameterless instance method, mostly making a stylistic difference.



    Can't say anything about the other paths, of...
  3. Replies
    12
    Views
    2,756

    Re: A question about deleting a native pointer

    You probably already considered this, yet a word of caution: If the Destroy() method shall contain a delete this; statement, of course the method must only be called on objects that have been...
  4. Replies
    12
    Views
    2,756

    Re: A question about deleting a native pointer

    Ok, let's start at the end of your post...



    That's how I was already understanding it. We're talking about a native object here, and the CLR may deal with the object in several ways, including...
  5. Replies
    12
    Views
    2,756

    Re: A question about deleting a native pointer

    Your destructor is responsible for releasing resources your object allocated itself explicitly, but not for de-allocating the object (*this) itself. And generally, it isn't able to properly do that...
Results 1 to 5 of 5





Click Here to Expand Forum to Full Width

Featured