Debugging class library - Target App "out of memory"

192 views Asked by At

I'm trying to build and add-in for Enterprise Architect. To test I set the "external program" to the correct path to EA, and then, when it's starting debugging and EA is loading, EA go out of memory and exit.

It's looks like Visual Studio (2013) limit memory size of external program, or something else. Is there a way to increase this memory?

Another info: The workaround I found is attach to the process after load manually EA, but is very comfortable press F5.

2

There are 2 answers

1
Geert Bellekens On BEST ANSWER

According to this post on the EA Forum this would be VS 2013 specific issue.

I try to test as my add-ins as much as possible without actually running them as an add-in. I developed as small test application for this purpose. Some explanation about that in this post: Testing and debugging your Enterprise Architect add-in

For the features I can't test with the test tool I just start EA manually and then attach to the ea.exe process.

0
Mart10 On

Based on this article from LieberLieber:

  1. Go to Tools → Options
  2. Under Debugging → General
  3. Select the option "Use Managed Compatibility Mode"

I tested it with Visual Studio 2015 and it works.

I find that attaching to the process is a step back since you won't be able to debug on the EA_Connect Event or other events that are executed too fast to catch in debugging.