Book a Demo

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 - lubos

Pages: 1 ... 3 4 [5] 6 7
61
Automation Interface, Add-Ins and Tools / Re: Package attribute / XMLPath
« on: October 29, 2009, 10:55:23 pm »
The rest of the path (prefix) is given by choosen VersionControl profile.
You can find the name in PackageFlags Column

...VCCFG=VCCProfileName;....

and the path itself in

"c:\Documents and Settings\USER\Application Data\Sparx Systems\EA\paths.txt"  

for given VC profile.
I hope this is not only ClearCase (that we use) specific advice ;-)

62
Automation Interface, Add-Ins and Tools / JSscript vs JavaScript
« on: October 21, 2009, 10:09:33 pm »
Hi,
this line is valid in Scripter for JScript

var xmlDOM = new ActiveXObject( "MSXML2.DOMDocument.4.0" );

but it's not valid for JavaScript.
What I have to write to use any COM object using JavaScript?
Thanks for any hint.

63
Yes, I intuitively understand this.
I understand that GC can free it after some while,
but it seems to me .NET GC never frees the COM references, so I have to do it always explicitly.  I have not found this explicit calls in any demos provided by sparx.
I'm still not sure whether I have to explicit free all parts of COM collections ]eg. from GetElementsByQuery), or I can free only this collection and this will safely free all its members.

I'm not sure about using "foreach" as well.

is it safer this :
Code: [Select]
EA.Collection col= elem.Packages
foreach(EA.Packages in col){...}
ReleaseComObject(col)

or can I call just:
Code: [Select]
foreach(EA.Packages in elem.Packages){...}??

thanks for any hints

64
Hi,

I have just found out memory leaks in my C# plugin  that I was looking  for a long time for.
and it is probably related to your problem.

I found out that I _always_ have to call ReleaseComObject on any object I get from EA API (eg. GetPackageByID, GetElementsByQuery ...) when it is not used anymore.
Setting to null is not enough.

 I have not read about this principle in any EA documentation and demos.
I'm not very advanced in these issues, can anybody confirm or describe this ?

Thank you in advance.


65
Automation Interface, Add-Ins and Tools / Re: Custom view memory leak?
« on: August 07, 2009, 12:40:47 am »
Yes, I do setting to null or explicitly calling dispose in other cases. But I'm not sure if there is an API to "catch" the event of closing the customview  to dispose the corresponding object or even to recognize which custom view object belongs to which view.

But since I don't have any problems with it, I believe EA handles it good :-)

BTW  
The reason why I was doing the investigation of running instances was I have a problem with MS Word. I call MS Word from my plugin and everything seems to work.
But sometimes Word freezes (it writes a message that some error arised -- it really doesn't say which one).This happens even when the functionality of the plugin  was not used and the word was started normally from windows start menu .... there is just EA with the plugin enabled running.  I still can't find the problem..


Thanks

66
Automation Interface, Add-Ins and Tools / Custom view memory leak?
« on: August 06, 2009, 07:44:03 pm »
I have created a custom view (C#). All is working well, but when I analyze the running EA using .NET memory profiler  I can see that instances of the UserControl component are still instanciated (as many times as the custom view was opened) even when the all customs views are already closed.
I'm not very advaced in .NET and C# issues, so do I something wrong or can this be a bug in EA?

Thanks for any hints

67
Hi,

You can copy selected results to Clipboard (Context menu). Pasting to Excel works as one could expect.


68
>I guess Containment should be constrained to allow only one element on the "contains" end. Elements would refer to their parent package only. >That package can then be Imported to more than one package for reuse

I agree,
but I can't fit an aggregation (composite) asociation to this methodology principle. How to use this relation between packages where one depends on another?
I have solved it by forbiding using this relation in these situations.


69
Automation Interface, Add-Ins and Tools / Re: EA from the Command Line
« on: August 06, 2009, 07:38:00 pm »
Yes, you are right

70
You can overcome it by manipulating the registry. we use the following command:

reg add "HKCU\Software\Sparx Systems\EA400\EA\OPTIONS" /v AutoCheckoutSharedKeyArray /t REG_BINARY /d 02 /f

reg add "HKCU\Software\Sparx Systems\EA400\EA\OPTIONS" /v SharedKeyFolder /t REG_SZ /d "C:\PATH\_licence" /f

71
I'm not very sure but when I played with this feature I have realized that it checks the state of the relevant file on VC.
E.g.  in ClearCase it said the package is not checked out when the relevant file was checked out on different view, so in our environment ,where each user has its own view, I wasn't able to say whether the package is (or not) checked out by somebody using this function.

72
we do it by parsing

System.Environment.GetEnvironmentVariable("USERPROFILE") + "\\Applications Data \\Sparx Systems\\EA\\paths.txt";

where these settings are stored.

73
Yes I tried to call refresh/update on anything that could have relation to it ... I have overcome this by counting on with gaps :-/
I will do some other investigations when I will have some time....

74
Method parameters ( or  atributes of class) has .position (.pos) atrribute.
We found out that have some "holes" in the sequences of this numbers and we want to repair it by automation script. But even we call Paramater.Update(), Method.Update(), Element.Update()  after fixing the number(s)  the new Position values are not stored to DB.

What we do wrong?
Thanks for any hints

75
Automation Interface, Add-Ins and Tools / How to access Plugin object?
« on: February 20, 2009, 05:22:41 pm »
Hi,

I want to be able to access the concrete instance of a plugin (COM object)  that is instantiated by my instance (instance created by external program) of EA.
Does the EA API  suppport this or how can I do it?

Thanks for any hints

Pages: 1 ... 3 4 [5] 6 7