Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Stanislaw Tristan on September 25, 2015, 06:56:09 pm

Title: Out of memory while debugging in Visual Studio
Post by: Stanislaw Tristan on September 25, 2015, 06:56:09 pm
Hello,
I have downloaded your C# add-in sample (http://www.sparxsystems.com/bin/CS_Sample.zip) and converted it into VS 2015 solution (earlier I have tried in VS 2013 also).
When I start debug - the EA crashes with Out of memory error.
What is wrong?
Title: Re: Out of memory while debugging in Visual Studio
Post by: Geert Bellekens on September 25, 2015, 08:41:15 pm
There's another topic about that somewhere.
Search for "out of memory" using the top left search button.

Geert
Title: Re: Out of memory while debugging in Visual Studio
Post by: Stanislaw Tristan on September 25, 2015, 09:05:32 pm
Yes, I have found that post (http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1439282399/0#0), but it is still not answered.
Title: Re: Out of memory while debugging in Visual Studio
Post by: qwerty on September 25, 2015, 09:16:16 pm
It is answered indirectly: does not happen with 2010. AFAIR 2013 is not supported (at least there had been many questions about when it would be supported).

q.
Title: Re: Out of memory while debugging in Visual Studio
Post by: Geert Bellekens on September 25, 2015, 10:33:30 pm
If allowed in your environment you could use Sharpdevelop as well.
It it free, open source, and does more or less the same as VS (but requires less resources)
I use that for all my add-in development (in C#).

Geert
Title: Re: Out of memory while debugging in Visual Studio
Post by: DarrenDickens on May 09, 2017, 10:13:42 pm
I had this same issue so found this question and after reading gave a big sigh  :( since trying to get another tool (Sharpdevelop) past our IT department would be difficult.

Fortunately a bit more googling came across this webpage and it worked; I used the "We found an additional workaround/setting!" instructions. I can now use Visual Studio Express 2015 for Windows Desktop, EA 12.0.1214

http://blog.lieberlieber.com/2015/07/02/debugging-c-addins-with-enterprise-architect-12-and-visual-studio-2013/ (http://blog.lieberlieber.com/2015/07/02/debugging-c-addins-with-enterprise-architect-12-and-visual-studio-2013/)
Title: Re: Out of memory while debugging in Visual Studio
Post by: Helmut Ortmann on May 09, 2017, 11:57:19 pm
Hi,

the described procedure also works for VS2017 and EA13.

Helmut
Title: Re: Out of memory while debugging in Visual Studio
Post by: WarrenKenyon on May 10, 2017, 03:44:35 am
I have always had this problem when trying to launch EA from VS during debug.  I just attach to EA after it has launched.  Then debug works fine.
Title: Re: Out of memory while debugging in Visual Studio
Post by: Sebastian Mense on June 01, 2017, 06:57:42 pm
This error happens most of the time when we set up our developing
environment. The fix that works for us (Tested with Visual Studio 2015 and 2017)
is rather simple. You have to enable native code debugging in the start up project
(The project that will start EA.exe).

(https://cdn.pbrd.co/images/deD3pUPDn.png)

I hope this will help you.

Best Regards