none
Out of memory issue in VS2017 application RRS feed

  • Question

  • I am having an issue with memory in one of our VS2017 projects. The application is used to input/modify data and then run an option that simply creates a spreadsheet. When the user runs the spreadsheet option the program is dropping out (screen just disappears) with no error displayed. We added code to write to a log file and discovered the following error:

    "During adding the account to AD - Exception has been thrown by the target of an invocation.
    Exception of type 'System.OutOfMemoryException' was thrown."

    Is there any way to "reset" or "clear" the memory before the spreadsheet creation process? Would need vb.net code.

    Thanks.

    Note: if the user comes out of the program and goes back in before running the spreadsheet it works fine. So it is definitely something going on with the memory.

    Thursday, May 10, 2018 1:05 PM