Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic TAU (steve huntington)
Decrease font size
Increase font size
Topic Title: About loading library by loading hiberarchical u2 file
Topic Summary:
Created On: 15-Oct-2007 08:58
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 15-Oct-2007 08:58
User is offline View Users Profile Print this message


James Chan

Posts: 11
Joined: 20-Sep-2006

For instance,  PackageA stored in the a.u2 file has two packages PackageB and PackageC which are stored in b.u2 file and c.u2 file.  But when I load them by modifying *.mod file such as follow:
...
"listEtc"="urn:u2:addins/XXX/etc/a.u2; urn:u2:addins/XXX/etc/b.u2; urn:u2:addins/XXX/etc/c.u2"

I got that my library as follow in model view window:

|--Library
     |--PackageA
                   |--PackageB
                   |--PackageC
     |--PackageB
     |--PackageC

Why not is as below:
|--Library
     |--PackageA
                   |--PackageB
                   |--PackageC

When I use TAU API LoadLibrary in TCL implementation, it's also failed.
Is there any other way to load library or any wrong step above
Report this to a Moderator Report this to a Moderator
 15-Oct-2007 12:57
User is offline View Users Profile Print this message


Brandon Jones

Posts: 20
Joined: 22-Sep-2003

What error messages are you getting in the script tab when trying to load it from TCL? Or when loading the addin in message tab?
Report this to a Moderator Report this to a Moderator
 16-Oct-2007 08:02
User is offline View Users Profile Print this message


James Chan

Posts: 11
Joined: 20-Sep-2006

When loading the addin message tab, there is no any error, it seems that's OK but duplicate packages can be seen.
When loading from TCL script in init.tcl in my addin, the  a.u2 is loaded successfully, but error occured when loading b.u2 and c.u2 is as follow:

Error during tcl evaluation:

u2::LoadLibraryTNR0049: Failed to find element by reference (CS5NkEn49SALRQlg4V1QhBTI).

TNR0034: Failed to find Definition CS5NkEn49SALRQlg4V1QhBTI of ClassSymbol.

TNR0049: Failed to find element by reference (L27qHLmRDXLL3WM9dLLWrieV).

TNR0034: Failed to find Definition L27qHLmRDXLL3WM9dLLWrieV of ClassSymbol.

TNR0049: Failed to find element by reference (satsJLKxtpILmNX9hEHrijtI).
.....

Report this to a Moderator Report this to a Moderator
 16-Oct-2007 17:01
User is offline View Users Profile Print this message


Brandon Jones

Posts: 20
Joined: 22-Sep-2003

Okay so I've looked into this. The behavior you are seeing is expected. When loading the profiles from the mod file you will get them all listed at the root node of the Libraries. I think the reasoning for this is because it was originally intended for stand-alone libraries. The reason why it isn't loading from the API is because one of the requirements of LoadLibrary is that the file you load must pass name resolution to make sure it meets the requirement of a library and has all the required definitions.

I can think of two requests you might make to support...
1. That Tau's Load Library is extended to allow input of several libraries to be analyzed during the load.
2. That libraries aren't always visible in the root node.

May I ask why you want to break them out as separate files? Do you have different groups managing them or is this for some other reason?
Report this to a Moderator Report this to a Moderator
 17-Oct-2007 09:54
User is offline View Users Profile Print this message


James Chan

Posts: 11
Joined: 20-Sep-2006

Yes, It's very close to that you mentioned.
We will design a very large library specific to our developing methodology, separating u2 file is a requirement of configuration management. Also the libraries have some of versions of themselves and it's very important to give right version to right u2 files that composed the whole library hiberarchically.
Another reason is when the fragment of  library is damaged the error will be limited in small area and very easy to be found and merged.

For now, I hasn't other groups mananging these library

By the way, it seems that TAU(Version 3.1.1.0 ) often crashs  when my project is activated upon  the addin with the profiles loaded from the mod file. I don't know if there is any relationship with different loading.

Thanks your attention and reply
Report this to a Moderator Report this to a Moderator
 19-Oct-2007 12:49
User is offline View Users Profile Print this message


asha shivalingaiah

Posts: 1
Joined: 5-Sep-2006

Hi James I was able to observe the crash with TAU 3.1.1. 1. Created an addin to load library 2. Opened a project and activated the addin 3. dited the u2 file of the addin 4. Updated the addin u2 5. Opened a project in TAU and activated the addin 6. TAU propmpted with TNR error for the deleted elements from the addin 7. On closing TAU i observed crash consitently In order to be inline with the issue in concern we would need the dump files from your scenario as well. If you would like us to investigate on this issue, please email us at: tausupport.eu@telelogic.com with a reference Case ID: 3035364.
Report this to a Moderator Report this to a Moderator
 22-Oct-2007 04:31
User is offline View Users Profile Print this message


James Chan

Posts: 11
Joined: 20-Sep-2006

Asha, thank you! 
Report this to a Moderator Report this to a Moderator
 27-Nov-2007 17:49
User is offline View Users Profile Print this message


Greg Gorman

Posts: 75
Joined: 4-Oct-2002

FYI we have fixed this for 4.0.

Greg

-------------------------
Greg Gorman
Vice President, Product Management
Modeling and Test Products
Telelogic AB
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic TAU forum.
There are currently 1 users logged in.
The most users ever online was 15 on 31-Mar-2008 at 16:22.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.