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: win32SystemWait_ Anyone experience this issue.....
Topic Summary:
Created On: 7-Dec-2007 14:17
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.
 7-Dec-2007 14:17
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

OK...I've been using the win32SystemWait_ to execute a C++ executable file on a network drive for about 4 or 5 months now. The script has been functioning flawlessly, we use TeamTrack for issue management and the script verifies the SCR number entered into a DOORS attribute is valid before allowing the user to enter it. Anyway the other day I start receiving phone calls that the script isn't working, usually it takes up to 30 seconds to scan the TT database and return, well I was getting reports that it was immediately saying the SCR number was invalid (for valid SCR numbers).

So off I went trouble shooting... well the win32SystemWait_ was returning a 1 everytime, if memory serves me correct that is a process error. I contacted our IT department and asked if anything had changed on the network drive...nope nothing. The server and drive were both functioning properly and permissions haven't changed. So I move the C++ executable to my PC and redirected the win32SystemWait_ to call that copy...Guess what, it worked. Needless to say as a work around I pushed the C++ executable to everyone's computer (err...had IT push it) and updated the scripts to point to the local copies. I personally don't like this configuration, because it is difficult to make sure everyone has updated copies of all the scripts, I like keeping the active scripts on a network drive and have their clients point to them.

So does anyone have any idea why all of a sudden win32SystemWait_ would stop working when calling a file on network drive?

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 7-Dec-2007 14:43
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

I am not an IT guy, but I would put money on this being due to windows security settings.

Maybe the IT guys have installed a windows update?

Ask your IT guys to log on to the server directly and run the script locally from there and see what happens.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 7-Dec-2007 15:04
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Perhaps something changed in reference to the C++ program. What does it do?

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


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

The C++ program hasn't changed not recently anyway, I modified it a few weeks ago, and if there was an issue it would have been reported then (this script is run hundreds (if not thousands) of times a day.

It basically connects to TeamTrack, searches for the SCR number passed in (by the DXL script) and when and if it finds it checks that it is in the assigned stated. If it can't find the SCR or the SCR is not in the assigned state it will return "FALSE" else it returns "TRUE" into a string variable in the DXL script.

Attached is the call I use that is failing.... the ***** is a directory name for our project that I can't post.....

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com

Edited: 7-Dec-2007 at 16:09 by Scott Boisvert
Report this to a Moderator Report this to a Moderator
 7-Dec-2007 16:17
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Originally posted by: Tony Goodman

I am not an IT guy, but I would put money on this being due to windows security settings.



Maybe the IT guys have installed a windows update?



Ask your IT guys to log on to the server directly and run the script locally from there and see what happens.


Haven't been able to get a hold of IT this morning...but I did go out via a command prompt to the network drive and was able to successfully run the C++ executable, yet I still cannot run it using the win32SystemWait_ command.

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 7-Dec-2007 16:38
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Scott,

did you tried to run the file within an explicit command shell?

I some trouble with executing some command too and this method worked well.

Have a nice week end,
Reik

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


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 7-Dec-2007 16:46
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Originally posted by: Reik Schroeder

Hi Scott,



did you tried to run the file within an explicit command shell?



I some trouble with executing some command too and this method worked well.



Have a nice week end,

Reik


Not sure what you mean by "explicit".

What I did was went to "Run" on the Start menu and entered "cmd". Got the "DOS" window and then navigated to where the C++ executable is on the network drive. Ran the executable from the "DOS" window and it worked fine. Still cannot run using the win32System_ command though.

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 7-Dec-2007 16:57
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Scott,

... as in attached code window by using:

(getenv "COMSPEC")" /C your command"


Greetings,
Reik

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


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 7-Dec-2007 18:48
User is offline View Users Profile Print this message


Pete Kowalski

Posts: 301
Joined: 7-Feb-2003

How did you guys go about developing C++ applications to work with DOORS?

I know C++ very well and have looked at the DOORS API documentation. However, reading that documentation confused me more on how to talk to DOORS with a C++ application.

Can anyone share some pointers on how to get started?

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


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Originally posted by: Pete Kowalski

How did you guys go about developing C++ applications to work with DOORS?



I know C++ very well and have looked at the DOORS API documentation. However, reading that documentation confused me more on how to talk to DOORS with a C++ application.



Can anyone share some pointers on how to get started?


I personally don't know C++ very well, but I had one of our interns right this C++ program for me. I then call is using the win32SystemWait_ () function.

Basically and correct me if I'm wrong, its used as such

string result
int ret = win32SystemWait (string C++executable, result, int timeout)

I've had no luck with the API either, which is what I was hoping for from our intern....lol

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
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.