Search:

Type: Posts; User: bling

Page 1 of 8 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    32
    Views
    10,758

    well, for 1, just because you mark an object for...

    well, for 1, just because you mark an object for collection doesn't mean it will be collected, even with GC.Collect. objects get elevated to different generations depending on how long they live. ...
  2. Replies
    32
    Views
    10,758

    yes, very confusing indeed :mad:!! i hope...

    yes, very confusing indeed :mad:!! i hope Sebastiani's link from MSDN made it a little more clear.

    basically:
    a) the programmer cannot deterministically clean up managed resources
    b)...
  3. Replies
    32
    Views
    10,758

    i will say that *properly* implementing the...

    i will say that *properly* implementing the IDisposable pattern in .NET is a complete pain in the butt with numerous places where you can screw up. and since it is a pattern, there is no guarantee...
  4. Replies
    32
    Views
    10,758

    well, if you're argument is simply to do...

    well, if you're argument is simply to do something upon construction and destruction, rather than allocating/deallocating memory, then there really isn't much difference between C#'s IDisposable...
  5. Replies
    32
    Views
    10,758

    yes, you *could* do that with a...

    yes, you *could* do that with a constructor/destructor, but i'm still unconvinced from your XML example why C# lacking true deterministic deallocation is "inherently flawed."

    edit: btw, i say true...
  6. Replies
    32
    Views
    10,758

    for me personally i am way more productive with...

    for me personally i am way more productive with C# than i am with C++, and using the library is much more convenient/consistent than a mix/match of Win32, stdlib, or boost libraries.

    back on...
  7. Replies
    32
    Views
    10,758

    i think u mean to say unmanaged resources.

    i think u mean to say unmanaged resources.
  8. Thread: New to C#

    by bling
    Replies
    6
    Views
    1,575

    a namespace is comparable to a package in java.

    a namespace is comparable to a package in java.
  9. Replies
    1
    Views
    3,163

    don't think so.

    don't think so.
  10. Thread: Parsing Xml

    by bling
    Replies
    7
    Views
    3,905

    it's pretty simple you're on the right track. ...

    it's pretty simple you're on the right track.

    based on


    <people>
    <location>
    <list name="ben" surname="gunn" location="peru" dwelling="house"/>
    </location>
    </people>
  11. Replies
    4
    Views
    2,016

    i find it useful for regex as well.

    i find it useful for regex as well.
  12. learn both. and a dynamic language like python...

    learn both. and a dynamic language like python or ruby.
  13. Replies
    4
    Views
    1,514

    ^ and % are the same as * and & except they are...

    ^ and % are the same as * and & except they are used to differentiate between managed types and native types. this was added in C++/CLI. managed C++ is the older version which used */& for both...
  14. Replies
    11
    Views
    5,518

    just to be on the safe side, this statement is...

    just to be on the safe side, this statement is correct 99.9% of the time. in multithreaded environments, sometimes the constructor isn't threadsafe, and when it throws an exception it will leak a...
  15. Thread: checking input

    by bling
    Replies
    23
    Views
    2,690

    the verdict from all data we have so far is that...

    the verdict from all data we have so far is that doing a cast with error check results in an advantage *sometimes* for the 'as' method, depending on the amount of information the compiler has. i'm...
  16. Thread: checking input

    by bling
    Replies
    23
    Views
    2,690

    wow, that's surprising! changing it to object...

    wow, that's surprising! changing it to object yields roughly the same time on my machine. stupid compiler doing stupid tricks!
  17. Replies
    3
    Views
    1,630

    t.Size = new Size(300, 20);

    t.Size = new Size(300, 20);
  18. Thread: checking input

    by bling
    Replies
    23
    Views
    2,690

    the point of the calculations was to insure that...

    the point of the calculations was to insure that the compiler doesn't optimize, like what happened when you remove the calculations (since the List<int> isn't used for anything, that code is...
  19. Thread: checking input

    by bling
    Replies
    23
    Views
    2,690

    since i'm bored outta my mind right now, and to...

    since i'm bored outta my mind right now, and to prove the vast difference,


    static void Main(string[] args)
    {
    List<int> list = new List<int>();
    int count = 0;
    ...
  20. Thread: checking input

    by bling
    Replies
    23
    Views
    2,690

    no it's not. you have a try/catch, which uses...

    no it's not. you have a try/catch, which uses extra clock cycles.
  21. Thread: checking input

    by bling
    Replies
    23
    Views
    2,690

    they are faster because they won't throw...

    they are faster because they won't throw exceptions. if the cast fails, the result is null.
  22. Thread: checking input

    by bling
    Replies
    23
    Views
    2,690

    1) read up on the Validating event. 2) if you...

    1) read up on the Validating event.
    2) if you have a choice between Convert.ToXXX(...) and XXX.TryParse(...), use the latter because it's faster.
    3) if you're dealing with references, the 'as'...
  23. Thread: signals?

    by bling
    Replies
    12
    Views
    1,845

    i don't understand. why can't you just use the...

    i don't understand. why can't you just use the KeyDown event?
  24. Replies
    7
    Views
    10,679

    a glorified global variable IMO.

    a glorified global variable IMO.
  25. Replies
    18
    Views
    8,206

    maybe wrapper isn't the proper term to be...

    maybe wrapper isn't the proper term to be using...windows programming is very much C-style, where there are tons and tons of global functions and global #defines, so they had to convert that into...
Results 1 to 25 of 188
Page 1 of 8 1 2 3 4