CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2005
    Posts
    73

    An unhandled exception of type 'System.OutOfMemoryException' occurred in Unknown Modu

    Hi


    Whenever I run a program, a message is shown like this


    "An unhandled exception of type 'System.OutOfMemoryException' occurred in Unknown Module."

    why is this appearing. what should I do to solve this.


    pls help me to overcome it.

    santhosh

  2. #2
    Andy Tacker is offline More than "Just Another Member"
    Join Date
    Jun 2001
    Location
    55°50' N 37°39' E
    Posts
    1,503

    Re: An unhandled exception of type 'System.OutOfMemoryException' occurred in Unknown

    either you are tryin to access an array element when the array element is not exisitng.
    or, you are trying to convert something (like string/int) to something (like string/int).
    If you think you CAN, you can, If you think you CAN'T, you are probably right.

    Have some nice Idea to share? Write an Article Online or Email to us and You may WIN a Technical Book from CG.

  3. #3
    Join Date
    Nov 2004
    Location
    Poland
    Posts
    1,355

    Re: An unhandled exception of type 'System.OutOfMemoryException' occurred in Unknown Modu

    I think that U entered unfinite loop, wich allocates large chunk of memory.

    Use debugger to see what really happens....

    Best regards,
    Krzemo.

  4. #4
    Join Date
    Jan 2005
    Posts
    73

    Re: An unhandled exception of type 'System.OutOfMemoryException' occurred in Unknown Modu

    Hi

    No
    If I run any program, the output is shown but while closing the outpput window, I come across this message.

    santhosh

  5. #5
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: An unhandled exception of type 'System.OutOfMemoryException' occurred in Unknown Modu

    Due to Unknow Module, I think it has something to do with threads. Check if you stop all threads correctly (if you have any).
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

  6. #6
    Andy Tacker is offline More than "Just Another Member"
    Join Date
    Jun 2001
    Location
    55°50' N 37°39' E
    Posts
    1,503

    Re: An unhandled exception of type 'System.OutOfMemoryException' occurred in Unknown

    Debug your code... set breakpoints at all the destructors... see what happens...
    If you think you CAN, you can, If you think you CAN'T, you are probably right.

    Have some nice Idea to share? Write an Article Online or Email to us and You may WIN a Technical Book from CG.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured