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: Defect in formal.dxl can crash DOORS 8.x Session
Topic Summary: A problem in formal.dxl can cause some undefineable results.
Created On: 9-Mar-2007 08:08
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.
 9-Mar-2007 08:08
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi @all,

I've found a realy interesting bug in formal.dxl

There is declared a function int canAddExternalLink() which is be used to determine if the External link menu is available or not.

The problem of this function is that it is declared in formal.dxl itself - all other mapping functions are declared already at startup, so they are defined globally. But the formal.dxl is run at opening Modules and when it has finished the used memory is cleaned up.

It's merely a matter of time, until the memory area, where the function is stored, is used for something else. I've found out that the usage of pop up menus in your own scripts will increase the probability for a crash!

The error will occour on right click on an Object or opening the Link menu.

The problem can cause different effects:
It lasts from simple error messages in DXL-window R-E- DXL: <Line:1> incorrect return statement with different file locations.
Until full crash of DOORs with "...DOORS will now exit." message --> If you did not saved, you will loose your work here!


WORKARROUND:
To solve this problem simply move the function from formal.dxl into a file in startup folder, so it will be defined globally and cause no problems anymore



Greetings
Reik

P.S.: Told this effect to DOORs support team - they want to close case now without any results.

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany

Edited: 13-Mar-2007 at 10:04 by Reik Schroeder
Report this to a Moderator Report this to a Moderator
 9-Mar-2007 15:15
User is offline View Users Profile Print this message


Pete Kowalski

Posts: 301
Joined: 7-Feb-2003

Which version of DOORS is being used here?

-------------------------
pete.kowalski(at)motorola.com
Report this to a Moderator Report this to a Moderator
 9-Mar-2007 15:19
User is offline View Users Profile Print this message


Dirk Plaschke

Posts: 103
Joined: 17-Sep-2002

DOORS 8.1 sp6 on Windows XP SP2

-------------------------
Dirk Plaschke

Edited: 9-Mar-2007 at 15:19 by Dirk Plaschke
Report this to a Moderator Report this to a Moderator
 11-Apr-2007 15:01
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

When you say pop up menus do you mean custom DXL created menu bars on the module window or DXL generated dialog boxes?

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 11-Apr-2007 15:09
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi David,

I mean esspecially self defined pop up menus on list views or tree views in your own dialog boxes.
But I'm not sure, if other scripts are affected by this issue to?!

Because of the undefined context of definition of
int canAddExternalLink()
it might be possible, that other circumstances could cause a crash to.

BTW: If you want to use your own mapping functions for self generated menus (placed in formalFiles or baseWindowMenuFiles) you should declare the functions in files that are stored in baseWindowCallbackFiles. That assures that they will be defined at the right time in the right context


Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
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.