Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - quadrabyte

Pages: [1]
1
General Board / Re: Get all latest - out of memory error
« on: April 01, 2017, 03:24:33 am »
Although this thread is a little long in the tooth, I wanted to reply because I have been frustrated by this problem with Visual Studio (ever since upgrading to a newer version caused this error to appear) but Geert pointed me to a solution: he suggested using SharpDevelop (http://www.icsharpcode.net ) to do add-on work because it uses fewer resources. I downloaded it, installed it, opened my add-on project with it, setup EA.exe as the application to run when starting the debugger--like magic everything worked just great. So thanks, Geert, that was a great tip. The whole process took all of ten minutes.

By the way, in case other add-on developers simply cannot use SharpDevelop for one reason or another, you can still use Visual Studio to do your development, it just takes more steps:
  • Build your add-on in Visual Studio -- be sure 1) EA is closed when you do the build, and 2) that you have launched VS in administrative mode else the build will fail
  • Start EA via the File Explorer
  • Go back to VS and find the Debug | Attach to Process... menu item
  • Still in VS, set a breakpoint somewhere in the code
  • In EAinvoke your add-on and you should see processing stop at the breakpoint in VS

2
General Board / Migration from Rhapsdody to EA
« on: September 22, 2016, 04:09:16 am »
Anybody have any experience/guidance/suggestions regarding a migration from IBM/Rational Rhapsody (we are using version 8.1)? I am trying to convince the powers that be to get away from that obscenely expensive and generally inferior modeling tool. I'm a huge and long time fan of EA but I've just started at this new company so I have to sell them on the change. Any help would be appreciated.

3
Thanks for the help. I found in the VB example code the way to use the Repository.Models way of getting into the model stuff. Perfect. The fix works great.

4
I've built a code generator add-in. It is working great with one glitch that is frustrating.

Of course, the code generator has to start at the root of the repository structure to walk through all the packages, diagrams, etc. to find all the stuff in the model. If I open a project and run the generator it works fine, finding the root project without problems. If I make some changes to the project, then return to the start page (but with the same project still the currently loaded project) and run the generator it only works properly some of the time. About 50% of the time it works but the other 50% I have to reload the whole project to get it to run properly.

When it works this call gives a root package with several packages in its .Packages collection:

[size=10]   oRootPackage = _oRepository.GetTreeSelectedPackage[/size]

But, when it doesn't work, the oRootPackage is non-null but the .Packages.Count value = 0.

Anyone know why this might be so? Any help appreciated.


Pages: [1]