![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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 | |
![]() |
|
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 sAttrName = "TESTATTRIBUTEENUMERATED2" if (!null mess) |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
attrDef/attrType
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.