Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: attrDef/attrType
Topic Summary: an EXCEPTION_ACCESS_VIOLATION in module
Created On: 2-Aug-2005 13:43
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
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.
Answer This question was answered by Louie Landale, on Tuesday, August 2, 2005 7:21 PM

Answer:
Your code worked for me just now fine. Perhaps you've got a "current module" problem, or perhaps the module isn't open Exclusive. Several commands but mostly Attribute command presume the current module. These commands need to be set up by explicitely setting that module current, just in case some other module became current.

Put this code in front of yours:

current = mod // module That Needs The AT
if (!isEdit(mod())) print (name(mod)) "\tIsn't open Exclusive. Errors to follow...\n"

- Louie
 2-Aug-2005 13:43
User is offline View Users Profile Print this message


Leidy Ramirez

Posts: 11
Joined: 15-Jun-2005

I'm trying to create attribute type but I am getting a exception access violation error when I call create(attributeNam , attributeCodes[], errorMessage).  I am pretty sure that I am setting up my parameters and calling the function right. Also, the module that I am creating the attribute definitions are freshly creating modules with one object that has the text "It is a test to shall requirement".  I can create a attrDef without any problems but I need to create an attrType for enumerated attribute.  I think it's something to do with my array. But I'm pretty sure I'm calling th function correctly.

string saTemp[] = {"High", "Medium", "Low"}
string mess = ""

string sAttrName = "TESTATTRIBUTEENUMERATED2"
AttrType at = create (sAttrName, saTemp, mess)

if (!null mess)
print "my mess" mess "\n"

print "completed" "\n"

Any comments will be greatly appreciated.

Thanks,

Leidy Ramirez

Report this to a Moderator Report this to a Moderator
 2-Aug-2005 19:05
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
Your code worked for me just now fine. Perhaps you've got a "current module" problem, or perhaps the module isn't open Exclusive. Several commands but mostly Attribute command presume the current module. These commands need to be set up by explicitely setting that module current, just in case some other module became current.

Put this code in front of yours:

current = mod // module That Needs The AT
if (!isEdit(mod())) print (name(mod)) "\tIsn't open Exclusive. Errors to follow...\n"

- Louie
Report this to a Moderator Report this to a Moderator
 2-Aug-2005 19:20
User is offline View Users Profile Print this message


Leidy Ramirez

Posts: 11
Joined: 15-Jun-2005

Thanks Louie.  I had figured though that it was current mod problem. But somehow, I am setting the current = mod and right after  I set it, I print current name, it prints the name of the parent folder not the name of the module.   Now, at least I know that the create function is not the problem.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
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.