Sign In
Cart
Test Solutions
Aircraft
F-15
F-16
F/A-18
F-35
AH-64
Remotely Piloted Aircraft (RPA)
Weapons Systems
AGM-65 Maverick
AGM-114 Hellfire
GBU-xx Paveway
AIM-9 Sidewinder
Maintenance Levels
O-Level
I-Level
Depot-Level
Aerospace Test System
TS-321 Series
Automotive Test System
TS-322 Series
Satellite Test System
TS-323 Series
Core Test System
TS-705
Base Analog/Digital Core Test System
TS-710
Core Test System with Boundary Scan
TS-720
Mixed Signal Test System
TS-730
Digital Test System
TS-750
Commercial Avionics Test System
TS-770
Military Avionics Test System
TS-775
GENASYS
High Performance Mixed Signal Test Platform
GENASYS Benchtop
Compact / Portable Test Platform
5G mmWave
Production Test Platform
TS-900e-5G Series
RF, Analog, and Digital Upgrade/Expansion
MTEK Series
Integrated Semiconductor Test Platform
TS-900 Series
Integrated Semiconductor Test Platform with Timing per Pin
TS-960 Series
Integrated Semiconductor Test Platform with Timing per Pin
TS-960e Series
GENASYS Semi
Semiconductor Test Platform
Aerospace Test System
TS-321 Series
Automotive Test System
TS-322 Series
Satellite Test System
TS-323 Series
Core Test System
TS-705
Base Analog/Digital Core Test System
TS-710
Core Test System with Boundary Scan
TS-720
Mixed Signal Test System
TS-730
Digital Test System
TS-750
Commercial Avionics Test System
TS-770
Military Avionics Test System
TS-775
GENASYS
High Performance Mixed Signal Test Platform
GENASYS Benchtop
Compact / Portable Test Platform
Rugged Field Test Set
MTS-207
SmartCan Universal Hand-held Test Set
MTS-3060C SmartCan
Portable PXI Chassis
GX7600
SmartCan Universal
Armament Test Set
3060A SmartCan
Maverick Field Test Set
MTS-206A
SmartCan -
Maverick AGM-65
MTS-3060A AGM-65
Hellfire / Longbow Test Set
AN-TSM-205
SmartCan -
AMRAAM AIM-120
MTS-3060A AIM-120
Modular Target Simulator
MTS-916
F-35 Armament Test Set
MTS-235A
Laser Source Simulator
MTS-1888
Common Armament Test Set
MTS-209
Hellfire Missile Simulator
MT3045
Rugged Field Test Set
MTS-207
Hellfire / Longbow Test Set
AN-TSM-205
Maverick Field Test Set
MTS-206A
Common Armament Test Set
MTS-209
F-35 Armament Test Set
MTS-235A
Commercial
Military
GENASYS Rugged
Adverse Environment Test Platform
Test Executive and IDE
ATEasy
Digital I/O Vector Suite
DIOEasy
Semiconductor Test Suite
ICEasy
Waveform Analysis Suite
WaveEasy
LASAR Development Suite
DtifEasy
Calibration & Verification
CalEasy
Products
Software
ATEasy
DIOEasy
DtifEasy
WaveEasy
CalEasy
ICEasy
All Software Products
Chassis & Controllers
Chassis
Chassis Controllers and Bus Expanders
All Chassis and Controllers Products
Digital I/O
Dynamic Digital I/O Instrumentation
Static Digital I/O Instrumentation
Digital I/O Software and Training
ROM Emulator Instrumentation
JTAG / BDM Instrumentation
All Digital I/O Products
Measurement
Digital Multimeter Instrumentation
Counter Timer Instrumentation
Digitizer Instrumentation
A/D Converters, Multi-function Instrumentation
All Measurement Products
Stimuli
Arbitrary Function Generators
Standards Source Instrumentation
Multi-function Instrumentation
D/A Converters and Precision DC Source Instrumentation
All Stimulus Products
FPGA
Digital I/O
Multi-Function
All FPGA Products
Switching
3U PXI
6U PXI
GENASYS
Matrix
Multiplexer
RF
High Current
High Density
General Purpose
All Switching Products
SMUs & Power Supplies
Power Supply Mainframe and Modules Instrumentation
Precision DC Source Instrumentation
All SMUs & Power Supplies Products
Bus Interfaces
Bus Expanders
GPIB
MIL-STD-1553
ARINC 429
Comm
All Bus Interfaces Products
GPIB Instrumentation Replacements
Wavetek Replacements
HP Replacements
All GPIB Instrumentation Replacements Products
PXI Instruments
Chassis and Controllers
Digital I/O
Measurement
Stimuli
FPGA Cards
Switching
Power Supplies
Bus Interfaces
All PXI Instruments Products
Legacy
GTXI Chassis, Controllers and Instrumentation
Digital I/O
Stimuli
Switching
Power Supplies
All Legacy Products
Military
Missile Launchers
All Military Products
Support
M@GIC Online Support
User Forums
Knowledge Base
White Papers
Downloads
Recent Downloads
News & Events
Blogs
Newsletters
External Articles
RSS Feeds
Press Releases
Tradeshows & Events
Workshops & Seminars
Recent Downloads
Company
Company Profile
Links & Affiliates
Privacy Policy & Terms of Use
Quality & Regulatory
Contact Us
Find a Representative
Maps & Directions
Careers
Menu
Sign In
Test Solutions
Military
Areospace
Semiconductor
Manufacturing & Production
Portable & Handheld
Software
Products
Software
ATEasy
DIOEasy
ICEasy
WaveEasy
DtifEasy
CalEasy
All Software Products
Chassis & Controllers
Chassis
Chassis Controllers and Bus Expanders
All Chassis and Controllers Products
Digital I/O
Dynamic Digital I/O Instrumentation
Static Digital I/O Instrumentation
Digital I/O Software and Training
ROM Emulator Instrumentation
JTAG / BDM Instrumentation
All Digital I/O Products
Measurement
Digital Multimeter Instrumentation
Counter Timer Instrumentation
Digitizer Instrumentation
A/D Converters, Multi-function Instrumentation
All Measurement Products
Stimuli
Arbitrary Function Generators
Standards Source Instrumentation
Multi-function Instrumentation
D/A Converters and Precision DC Source Instrumentation
All Stimulus Products
FPGA
Digital I/O
Multi-Function
All FPGA Products
Switching
3U PXI
6U PXI
GENASYS
Matrix
Multiplexer
RF
High Current
High Density
General Purpose
All Switching Products
SMUs & Power Supplies
Power Supply Mainframe and Modules Instrumentation
Precision DC Source Instrumentation
All SMUs & Power Supplies Products
Bus Interfaces
Bus Expanders
GPIB
MIL-STD-1553
ARINC 429
Comm
All Bus Interfaces Products
GPIB Instrumentation Replacements
Wavetek Replacements
HP Replacements
All GPIB Instrumentation Replacements Products
PXI Instruments
Chassis and Controllers
Digital I/O
Measurement
Stimuli
FPGA Cards
Switching
Power Supplies
Bus Interfaces
All PXI Instruments Products
Legacy
GTXI Chassis, Controllers and Instrumentation
Digital I/O
Stimuli
Switching
Power Supplies
All Legacy Products
Military
Missile Launchers
All Military Products
Support
M@GIC Online Support
Users Forums
Knowledge Base
White Papers
Downloads
Recent Downloads
News & Event
Blogs
Newsletters
ExternalArticles
RSS Feeds
Press Releases
Tradeshows & Events
Workshops & Seminars
Recent Downloads
Company
Company Profiles
Links & Affiliates
Privacy Policy & Terms of Use
Quality & Regulatory
Contact Us
Find A Representive
Maps & Directions
Careers
USA
Test Executive Not Unloading
Home
»
Support
»
User Forums
»
ATEasy - General
Mark M.
Tucson, AZ
Oct 2, 2023
6
Posts
0
✔
|
✗
0
Re:
Test Executive Not Unloading
Running ATEasy 2021 (Build 160b)
To Whom It May Concern,
We have been running into issues with unloading TestExec. To give some context, our application runs our own main window with TestExec running parallel to it, and semi-controlled by our window. We force the user to close TestExec first, then our main window second. Lately, when we unload TestExec, it stops drawing the window, but keeps this window handle and a process running in the background. I've tried explicitly closing the window with an "Unload m_frmMain" statement, and stepped through the code. It still had a non-zero window handle immediately after that line executed. I need a fix for this since this software needs to work continuously without interruption.
Thanks,
Mark McDaniel
Product Test Engineer
Apex Microtechnology
Edit your Message
DrATEasy (Ron Y.)
Mission Viejo, CA
Oct 2, 2023
367
Posts
1
✔
|
✗
0
Re:
Test Executive Not Unloading
Hi,
- What ATEasy version/build are you using?
- How does the user closes the TestExec? Is it from the Programs, Exit menu item?
- Have you tried to trace into the System/Drivers OnEnd events? If it is executable, you can add MessageBox calls. Maybe one of your OnEnd events is preventing from exiting.
- Have you tried to call the exit statement?
- If the issue still occurs, I suggest to use the TestExec example and see if it happens there?
Ron
Edit your Message
Mark M.
Tucson, AZ
Oct 2, 2023
6
Posts
0
✔
|
✗
0
Re:
Test Executive Not Unloading
Salutations Ron,
1/ As stated at the top of my post, I am running ATEasy 2021 Build 106b
2/ My main code calls the "TestExec.ExitApp" Procedure to close TestExec generally.
3/ I have not tried to trace OnEnd events. What I have done was to trace step-by-step what happens when clicking the form's close 'X' icon. And, it steps through and sets the exit event and triggers it, but fails to unload the window and release the handle.
4/ Yes.
5/ We've made some adjustments to TestExec to work as we need it to, so the example is not apples-to-apples. This code worked fine before, but suddenly stopped working without provocation. I didn't know if maybe a Windows update broke something or what.
Anyways, I will check the OnEnd events and see if that rabbit hole leads me to the carrot.
Thanks,
-Mark
Edit your Message
DrATEasy (Ron Y.)
Mission Viejo, CA
Oct 2, 2023
367
Posts
1
✔
|
✗
0
Re:
Test Executive Not Unloading
2. In that case, trace that routine ExitApp, It calls the following, one of these may prevent from exiting or maybe it is the event at the end:
System.OnEndSystem()
for iIndex=System.DriversCount-1 downto 0
System.Drivers(iIndex).OnEnd()
next
System.OnEnd()
! Signal to next exe that this program is just about to exit
evWaitExitExe=CreateObject("AEvent")
evWaitExitExe.Name=m_stData.stConst.EXTERNALEXE_EXITEVENT_NAME
evWaitExitExe.SetEvent() <- could prevent from exiting
exit
Ron
Edit your Message
Mark M.
Tucson, AZ
Oct 2, 2023
6
Posts
0
✔
|
✗
0
Re:
Test Executive Not Unloading
Salutations Ron,
1/ As stated at the top of my post, I am running ATEasy 2021 Build 106b
2/ My main code calls the "TestExec.ExitApp" Procedure to close TestExec generally.
3/ I have not tried to trace OnEnd events. What I have done was to trace step-by-step what happens when clicking the form's close 'X' icon. And, it steps through and sets the exit event and triggers it, but fails to unload the window and release the handle.
4/ Yes.
5/ We've made some adjustments to TestExec to work as we need it to, so the example is not apples-to-apples. This code worked fine before, but suddenly stopped working without provocation. I didn't know if maybe a Windows update broke something or what.
Anyways, I will check the OnEnd events and see if that rabbit hole leads me to the carrot.
Thanks,
-Mark
Edit your Message
Mark M.
Tucson, AZ
Oct 2, 2023
6
Posts
0
✔
|
✗
0
Re:
Test Executive Not Unloading
Mark M. wrote:
Salutations Ron,
1/ As stated at the top of my post, I am running ATEasy 2021 Build 106b
2/ My main code calls the "TestExec.ExitApp" Procedure to close TestExec generally.
3/ I have not tried to trace OnEnd events. What I have done was to trace step-by-step what happens when clicking the form's close 'X' icon. And, it steps through and sets the exit event and triggers it, but fails to unload the window and release the handle.
4/ Yes.
5/ We've made some adjustments to TestExec to work as we need it to, so the example is not apples-to-apples. This code worked fine before, but suddenly stopped working without provocation. I didn't know if maybe a Windows update broke something or what.
Anyways, I will check the OnEnd events and see if that rabbit hole leads me to the carrot.
Thanks,
-Mark
Sorry, I refreshed my window and it reposted this again. Disregard.
Edit your Message
Mark M.
Tucson, AZ
Oct 2, 2023
6
Posts
0
✔
|
✗
0
Re:
Test Executive Not Unloading
DrATEasy (Ron Y.) wrote:
2. In that case, trace that routine ExitApp, It calls the following, one of these may prevent from exiting or maybe it is the event at the end:
System.OnEndSystem()
for iIndex=System.DriversCount-1 downto 0
System.Drivers(iIndex).OnEnd()
next
System.OnEnd()
! Signal to next exe that this program is just about to exit
evWaitExitExe=CreateObject("AEvent")
evWaitExitExe.Name=m_stData.stConst.EXTERNALEXE_EXITEVENT_NAME
evWaitExitExe.SetEvent() <- could prevent from exiting
exit
Ron
We had commented out much of this code because we just wanted it to close TestExec, and not the whole application. I found a fix by adding "If (Not pbCancel) Then Exit" as the last line in my main windows OnUnload Procedure. This appears to kill the hanging TestExec thread that wasn't closing any other way up until now. So, thanks for your suggestions. The issue is resolved.
Edit your Message
Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click
here
to register today!
All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk.
[Read More]
Select Your Country
Email this Page
Your Name
Required
Your Email
Required
(use commas to separate multiple email addresses)
To Email
Required
Subject
Required
Link
Enter message in space below