none
Insufficient memory to continue the execution of the program RRS feed

  • Question

  • hi everyone,

    I have a problem ..
    i have a project opened in VS , now i m using EnvDTE.ProjectItem to get all the projectItems  but when the count goes above 2000 , it start showing exception "Insufficient memory to continue the execution of the program " .
    Can anybody  help....
    • Moved by jack 321 Friday, June 20, 2008 7:56 AM better forum
    Wednesday, June 18, 2008 4:55 AM

Answers

  • Not sure why Xun Ye moved your post here, it belongs in the VS Extensibility forum.  Anyhoo, 2000 project items is rather a lot I'd say.  It looks like an expensive object, sooner or later you'll run out of memory to store the object instances.  Avoid keeping references to every item so that the garbage collector can release them.
    Hans Passant.
    • Marked as answer by Bruno Yu Monday, June 23, 2008 5:47 AM
    Friday, June 20, 2008 12:31 PM
    Moderator