![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: win32SystemWait_ Anyone experience this issue..... Topic Summary: Created On: 7-Dec-2007 14:17 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Hi Scott,
... as in attached code window by using: (getenv "COMSPEC")" /C your command" Greetings, Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.