# Object spy crashes application

**URL:** <https://community.smartbear.com/t/object-spy-crashes-application/285>\
**Category:** TestComplete\
**Tags:** test, testcomplete, migrated, desktop-testing\
**Created:** [October 6, 2025, 4:41pm UTC](https://community.smartbear.com/t/object-spy-crashes-application/285 "2025-10-06T16:41:08Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 6, 2025, 4:41pm UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/1 "2025-10-06T16:41:08Z")

</div>

> Originally posted by **Gane195** on October 06, 2025

When I try to inspect the TCustomActionPopupMenuEx component in TestComplete using Object Spy, my application crashes. It works fine on Windows 10, but the issue occurs on Windows 11."

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 6, 2025, 5:01pm UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/2 "2025-10-06T17:01:32Z")

</div>

> Originally posted by **Hassan\_Ballan** on October 06, 2025

Since both TestComplete and your application are running the same versions across environments and the only difference is the Windows version, this may be an OS-specific compatibility issue. Given that the crash only occurs on one version of Windows, I recommend creating a support incident with SmartBear so their team can investigate further.

Follow the link to submit a [support ticket](https://support.smartbear.com/testcomplete/message/)

Make sure to include the following in your report:

- Detailed steps to reproduce the issue
- Crash logs or dump files (if available)
- Exact Windows version/build where the issue occurs
- TestComplete version
- A sample application (if possible) that reproduces the crash

🤖 AI-assisted response  
👍 Found it helpful? Click **Like**  
✅ Issue resolved? Click **Mark as Solution**

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 6, 2025, 5:03pm UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/3 "2025-10-06T17:03:24Z")

</div>

> Originally posted by **scot1967** on October 06, 2025

Hi Gane195,

This isn’t something I have seen reported in the community. (Others may know of it) I have been out for a few weeks. Could you let the community know…

- which version you are on
- scripting language
- Key Word testing
- Same project used for both Win 10 and 11

Stuff like this will allow us to find similar cases in the community or give us a place to start.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 6, 2025, 5:09pm UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/4 "2025-10-06T17:09:08Z")

</div>

> Originally posted by **Gane195** on October 06, 2025

Hi scot1967,

TestComplete 15.77.6.7  
Vbscript  
Using Hybrid Framework  
Yes Same Project

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 6, 2025, 5:20pm UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/5 "2025-10-06T17:20:37Z")

</div>

> Originally posted by **Hassan\_Ballan** on October 06, 2025

This might be related to VBScript compatibility and how Windows 11 handles low-level UI interaction differently than Windows 10.

### 🧩 Likely Cause

- **VBScript is deprecated in Windows 11** and **disabled by default** in many recent builds.
- While it may still function in some environments, its integration with tools like TestComplete — especially during UI inspection with Object Spy — can be unreliable.
- The crash when inspecting TCustomActionPopupMenuEx likely points to a conflict between TestComplete’s object hooks and the way Windows 11 handles legacy scripting and UI components.

### ✅ Suggested Workarounds

1. **Run both TestComplete and your application as Administrator** – this can help resolve permission-related crashes when accessing UI components.
2. **Try creating a new TestComplete project using JavaScript** instead of VBScript. JavaScript is more stable on modern Windows versions and will help avoid issues related to deprecated scripting engines.

### 🧭 Longer-Term Suggestion

Microsoft is in the process of **removing VBScript entirely** from Windows. For future compatibility and improved stability, migrating your scripts to **JavaScript or Python** is highly recommended.

Let us know if switching to JavaScript resolves the crash.

🤖 AI-assisted response  
👍 Found it helpful? Click **Like**  
✅ Issue resolved? Click **Mark as Solution**

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 6, 2025, 5:36pm UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/6 "2025-10-06T17:36:20Z")

</div>

> Originally posted by **scot1967** on October 06, 2025

I did a little digging with AI. Is your tested app written in Delphi? If so, which version of Delphi is being used? Check the link below to ensure support.

[https://support.smartbear.com/testcomplete/docs/app-testing/desktop/delphi/about.html?utm\_source=chatgpt.com](https://support.smartbear.com/testcomplete/docs/app-testing/desktop/delphi/about.html?utm_source=chatgpt.com)

You could attempt to work around the problem by not using the spy on this component. If you can find the closest unique parent object you could use the findchild method to reference and automate the interaction with the component with the .keys method.

I agree with Hassan\_Ballan​, you should likely open a support case. 👍

… If you find my posts helpful drop me a like! 👍 Be sure to mark or post the solution to help others out and/or to credit the one who helped you. 😎

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 6, 2025, 6:40pm UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/7 "2025-10-06T18:40:25Z")

</div>

> Originally posted by **scot1967** on October 06, 2025

Hassan\_Ballan​ that stinks. It looks like Windows 11 24H2 is when VB Script becomes a ‘Feature On Demand’ i.e. you have to enable support. I _assume_an upgrade would not disable it until sometime in 2027. It looks like sometime in or after 2027 is when it will be disabled by default and fully removed TBD. Currently as long as the feature is enabled VB Script should continue to work so I doubt this is your problem.

[https://techcommunity.microsoft.com/blog/windows-itpro-blog/vbscript-deprecation-timelines-and-next-steps/4148301](https://techcommunity.microsoft.com/blog/windows-itpro-blog/vbscript-deprecation-timelines-and-next-steps/4148301)

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 6, 2025, 8:34pm UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/8 "2025-10-06T20:34:15Z")

</div>

> Originally posted by **avaadam** on October 06, 2025

I also facing this

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 6, 2025, 10:44pm UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/9 "2025-10-06T22:44:12Z")

</div>

> Originally posted by **Gane195** on October 06, 2025

The crash happens when using JavaScript or Python

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 6, 2025, 11:01pm UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/10 "2025-10-06T23:01:22Z")

</div>

> Originally posted by **Gane195** on October 06, 2025

Hi scot1967,

Please find the attached recording. When I try to spy on the Actions menu, my entire application crashes.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 7, 2025, 3:06am UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/11 "2025-10-07T03:06:32Z")

</div>

> Originally posted by **Gane195** on October 06, 2025

TRibbonActionPopupMenu

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 7, 2025, 8:53am UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/12 "2025-10-07T08:53:33Z")

</div>

> Originally posted by **rraghvani** on October 07, 2025

Hi Gane195. Are you able to find out what language and framework your application uses? Was it working before upgrading TC? Ensure your application is supported, check [Supported Technologies and Applications](https://support.smartbear.com/testcomplete/docs/general-info/supported-technologies/index.html).

It’s not relating to the scripting language, VBScript. Your application is preventing Object Spy from looking at it’s methods and properties. You’ll need to liaise with your developers to try and diagnose the issue, SmartBear Support will be able to point you in the right direction.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 7, 2025, 10:08am UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/13 "2025-10-07T10:08:51Z")

</div>

> Originally posted by **Gane195** on October 07, 2025

Hi rraghvani,  
It might be an issue with the latest version. Can I switch to an older version of TestComplete?  
I just realized that I started getting this error after upgrading to the latest version.  
I will check with the earlier version and see if the issue is replicated.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 7, 2025, 10:38am UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/14 "2025-10-07T10:38:43Z")

</div>

> Originally posted by **rraghvani** on October 07, 2025

There has been a number of issues with the latest version of TestComplete!

You can download a previous version of TestComplete via the URL [https://downloads.smartbear.com/TestComplete1577SLM.exe](https://downloads.smartbear.com/TestComplete1577SLM.exe) - just change the version number to an appropriate value.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 7, 2025, 6:47pm UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/15 "2025-10-07T18:47:17Z")

</div>

> Originally posted by **scot1967** on October 07, 2025

Hi Gane195, this sure sounds like a Delphi app. Have you checked for version compatibility? The thought of going back to a working version is a good one if this was previously working.

Let us know what you find out. 🤞

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 7, 2025, 8:40pm UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/16 "2025-10-07T20:40:33Z")

</div>

> Originally posted by **scot1967** on October 07, 2025

Your recording didn’t post. It sounds like an upgrade issue though. If so drop a note to support and let us know. It would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 7, 2026, 5:14pm UTC](https://community.smartbear.com/t/object-spy-crashes-application/285/17 "2026-10-07T17:14:46Z")

</div>

Closed on October 7, 2026, 5:14pm UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
