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

Search:

Type: Posts; User: BigEd781

Page 1 of 80 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    279
    Views
    30,452

    Re: New Forum Update

    ...ok I didn't see that, but in my defense; in what world does Alt+S serve as a shortcut to confirm an action such as posting a reply? TAB order is the universally accepted way to traverse controls....
  2. Replies
    279
    Views
    30,452

    Re: New Forum Update

    Wow, I can honestly say I have never seen the full page add before. Perhaps it is because I was almost never logged out previously and have been automatically logged out three or four times since...
  3. Replies
    279
    Views
    30,452

    Re: New Forum Update

    So, before I start, I want you guys to know that I (we) appreciate your hard work and I don't mean to crap on it here, but as you know, people get vocal about things they dislike far more often than...
  4. Replies
    4
    Views
    324

    Re: Choose class type without switch

    You're not going to be able to do it without using a lot of reflection, though it is possible. Here's an overview of one approach: ...
  5. Replies
    2
    Views
    336

    Re: Static members

    And on a side note, you cannot "dispose a class", but I get what you were trying to say.
  6. Replies
    5
    Views
    555

    Re: While/For/Foreach Speed Test!

    I have still yet to see a valid test case.

    1. What are your compiler options?
    2. Show us your real algorithm.

    O(n^2) simply means that the worst case time needed to execute the algorithm is...
  7. Replies
    5
    Views
    555

    Re: While/For/Foreach Speed Test!

    The algorithm is slow because it has O(n^2) complexity in time, not because you used a for loop instead of a foreach. Again, testing an empty loop makes no sense since it will be optimized away. If...
  8. Replies
    5
    Views
    555

    Re: While/For/Foreach Speed Test!

    When discussing performance....

    1. Show your compiler options or it didn't happen.
    2. The first time your code runs it needs to be compiled by the JIT compiler, so you need to run a large number...
  9. Thread: Game problem

    by BigEd781
    Replies
    7
    Views
    490

    Re: Game problem

    You can make it an instance level variable.
  10. Thread: Game problem

    by BigEd781
    Replies
    7
    Views
    490

    Re: Game problem

    Just a nitpick because I see this so often. This method:



    bool CheckHealth(int health)
    {
    bool alive;
    if (health > 0)
    alive = true;
    ...
  11. Replies
    1
    Views
    416

    Re: 2 different implementations of buffer

    Did you try any of .NET thread-safe collection classes before implementing your own?

    http://msdn.microsoft.com/en-us/library/system.collections.concurrent.aspx
  12. Replies
    3
    Views
    322

    Re: Method Parameters....

    Umm... ok, so what "seems wrong" exactly?
  13. Replies
    9
    Views
    1,408

    Re: Find all instances of type

    Not an 'idiot' at all, everyone starts somewhere, and the mere fact that you wish to learn about this stuff puts you ahead of most people already. ;)

    You do seem to hold some misconceptions that...
  14. Replies
    9
    Views
    1,408

    Re: Find all instances of type

    But it won't be cleaned up by the GC because there is a valid reference to the object in the list. There is no other way; you would have to manually manage the list of objects (and you're probably...
  15. Replies
    9
    Views
    1,408

    Re: Find all instances of type

    The problem here would be stale references. You would need to make sure that objcts which are no longer needed are cleared from the list or they will *never* be GC'd.

    Also, you can't use 'ref' in...
  16. Replies
    8
    Views
    863

    Re: Compare double value of stopwatch

    Next, stop testing equality between floating point numbers like that (in general). What every computer scientist should know about floating point numbers
  17. Replies
    1
    Views
    325

    Re: Help with speeding up my algorithm

    Useless posts are, well, useless. Instead of editing out relevant information, leave the question and post the answer so that you may help people in the future. This is a forum after all.
  18. Replies
    1
    Views
    249

    Re: problem with timer help pls

    I have to ask why you are using a timer here in the first place.

    A Windows.Forms.Timer acts as an asynchronous callback mechanism. The Tick callback is in fact executed on the main (UI) thread,...
  19. Replies
    4
    Views
    363

    Re: Variable Declaration Question

    No problem, happy to.... yell? :D
  20. Replies
    4
    Views
    363

    Re: Variable Declaration Question

    No, this is the wrong way to write software.

    The decision to declare a variable at a given scope is one of function, not performance. When a variable can be local to a function, it should be. ...
  21. Replies
    2
    Views
    782

    Re: spell checker throwing exception

    Don't create a new instance of your application object. Use the same one which generated the dictionary.
  22. Re: Random array element gets value changed with variable

    This is unnecessary:


    Item tmpItem = new Item();
    tmpItem = iMasterList[tmpR];

    You create a new object and immediately throw it away. Simply use


    Item tmpItem = iMasterList[tmpR];
  23. Replies
    18
    Views
    2,271

    Re: Different option for Thread.Sleep?

    No, it doesn't. It suspends the thread it was called on, no others. You need to remove that Sleep. However, if your program simply exits if you remove the sleep.... then I am perplexed as to why...
  24. Re: Random array element gets value changed with variable

    I agree with that :D
  25. Re: Random array element gets value changed with variable

    Well yes, but there are strict rules as to when and how they may be used, so while the syntax is the same as C++, the semantics are not, and their use case is very narrow and rare in C#.
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center