![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: close(mod) vrs close(mod, false) Topic Summary: Created On: 31-May-2005 21:03 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Got some wierd intermittent crashes that seem to be associated with closing a module after saving it. I was wondering if anybody has noticed a difference between the "close(mod)" command and the "close(mod, false)" command?
- Louie |
|
![]() |
|
![]() |
|
Yes, I have been having issues with close(m, false) specifically when creating links. Generally this is what I have been observing:
Any ideas? Jordan |
|
![]() |
|
![]() |
|
close(mod, false) is highly desirable in DXL scripts since it prevents a bunch of 'save module?' prompts which stopped long running DXL. Some script ran so long that I tried to speed it up by only saving modules that needed saving:
if (unsaved(mod)) save(mod) close(mod, false) I know back in v6 days there was a problem where 'unsaved(mod)' would return false even when the module had been changed. I don't recall exactly, but suspect when you modify a link, the source module did not know it had to be saved. Thus, I had to keep track of which edited modules were actually saved, which go to be rather tedius. Anyway, this hasn't come up lately. - Louie |
|
![]() |
|
![]() |
|
This probably has nothing to do with close(m, False), but I have also experienced problems when closing modules after creating links.
The error reported was the same as that mentioned by Jordan. After creating a link, closing the target module caused an error because doors was attempting to close a module that was still being referenced by an open linkset. My fix was to unload the linkset before closing the modules. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Thanks for the comments.
For now I am tracking changes, calling save(m) when necessary, and always calling close(m). Getting a save dialog will indicate an issue with the script, and is less of a nuisance to the operator than a crash. When I get some time I'll try unloading the linksets first... Jordan |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
close(mod) vrs close(mod, false)
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.