User Profile

Collapse

Profile Sidebar

Collapse
SageX
SageX
Last Activity: Feb 11 '09, 09:16 AM
Joined: Feb 1 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • SageX
    replied to C# memory consumption outta control...
    Hey man, thanks for the reply. I am all about refactoring.

    The nested foreach loops were a mechanism to derive all possible permutations of objects out of a set.

    Think of it as...

    SLOT1 (Item1,Item2,It em3,Item4,Item5 )
    SLOT2(Item6,Ite m7,Item8,Item9, Item10)
    SLOT3(Item11,It em12,Item13,Ite m14,Item15)

    out to 20 slots...

    And you want to get every possible permutation...
    See more | Go to post

    Leave a comment:


  • SageX
    replied to C# memory consumption outta control...
    Hello Everyone,

    First of all I would like to say thank you for your posts, and apologize for not responding more promptly. Unfortunately this was a program which was not high priority and it took me a while to find the solution.

    What was happening is this, I was storing objects for successful hits to certain criteria out of a high growth permutation. What happened is that I was storing all possible matches, then sorting...
    See more | Go to post

    Leave a comment:


  • SageX
    replied to C# memory consumption outta control...
    Hey thanks for the response Plater. I will give that a shot and let you guys know if it resolves the issue.
    See more | Go to post

    Leave a comment:


  • SageX
    started a topic C# memory consumption outta control...

    C# memory consumption outta control...

    Hello Gentlemen..

    I have a program that is calculating all possible permutations of objects within an object.


    The code looks very much like...
    Code:
    foreach (item as currentItem in Items)
      {
         MasterObject.Item1 = currentItem;
        foreach (item2 as currentItem2 in Items2)
         {
           MasterObject.Item2 = currentItem2;
          foreach (item3 as currentItem3 in Items3)
    ...
    See more | Go to post
    Last edited by pbmods; Feb 1 '09, 03:35 PM. Reason: Added CODE tags.
No activity results to display
Show More
Working...