"Runtime error 91" when launching the program

Things you’d like to miss in the future...
Forum rules
When reporting a bug, please include the following information: your XYplorer version (e.g., v27.90.0047), your Windows version (e.g., Win 11), and your screen scaling percentage (e.g., 125%). We recommend adding your Windows version and screen scaling percentage to your profile or signature. This will make debugging much easier for us.
Post Reply
OIV88
Posts: 20
Joined: 24 Sep 2023 21:06

"Runtime error 91" when launching the program

Post by OIV88 »

Hello!
When the program starts, the "runtime error 91 object variable or block variable not set" flew out, began in the latest versions.
The program sometimes starts without an error, but it loads and appears for a very long time - about a minute exactly.
What can this be about, how to fix the error?

Win10, XY 26.50

admin
Site Admin
Posts: 64828
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Runtime error 91" when launching the program

Post by admin »

1) Can you show a screenshot of the error message?

2) Can you mail XYplorer.ini to support [at] xyplorer.com?

OIV88
Posts: 20
Joined: 24 Sep 2023 21:06

Re: "Runtime error 91" when launching the program

Post by OIV88 »

Screenshot of the error -Image
Please tell me how can I send xyplorer.ini to support? At what address?

admin
Site Admin
Posts: 64828
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Runtime error 91" when launching the program

Post by admin »

support [at] xyplorer.com

OIV88
Posts: 20
Joined: 24 Sep 2023 21:06

Re: "Runtime error 91" when launching the program

Post by OIV88 »

Sent to this email

admin
Site Admin
Posts: 64828
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Runtime error 91" when launching the program

Post by admin »

Got it, thanks.

1) To avoid long startup times due to unavailable network locations I suggest you check this box: Configuration | General | Startup & Exit | No network browsing at startup

2) Paste this script into the XY address bar and press ENTER: screen;. Copy the contents of the returned dialog box and show them here in the thread.

OIV88
Posts: 20
Joined: 24 Sep 2023 21:06

Re: "Runtime error 91" when launching the program

Post by OIV88 »

I did everything you recommended in step 1. I’ll watch it in action. When you restart the program, it opens immediately - works great. I won’t tell you by mistake yet, but I’ll let you know later. Thank you very much for your help!
According to item 2, the result is as follows:

Code: Select all

Virtual Screen: (0, 0) - (1920x1080)

Screen.Width (screenW) = 1920 (1920)
Screen.Height (screenH) = 1080 (1080)
Current Monitor: 1 (Primary)
Current Work Area: (0, 0) - (1920, 1040)

Number of Monitors: 1
Monitor 1 Area: (0, 0) - (1920, 1080) = 1920x1080
Monitor 1 Area Work: (0, 0) - (1920, 1040)
Monitor 1 DPI: 96 (100%)

Startup Work Area: (0, 0) - (1920, 1040), Startup Values: (294, 127) - (1275x761), Winstate=0
XY Main Window: (294, 127) - (1569, 888) = 1275x761, Scale: 1259x702, Winstate=0
GetCursorPos = 604, 213

Monitor: 1/1 (Primary)
Screen: 1920x1080   Virtual: (0, 0) - (1920, 1080)   Work: (0, 0) - (1920, 1040)
Screen DPI: 96 (100%)   twX: 15 (15)   Stretch: 1,00   sLF: 1,00   Toolbar Zoom: 0,90 (1;1)
Screen Color Depth: 32   Line Spacing: 0 (0,00)
DPI Awareness: Per monitor   Auto Scaling: Yes

UseDPIAwareIconSizes: No
Icon Size: Small=16, Large=32, Extra Large=48, Jumbo=256
Icon Size Controls: Small=16, Large=32, Extra Large=48, Jumbo=256
Icon Size Recommended: Small=16, Large=32, Extra Large=48, Jumbo=256

admin
Site Admin
Posts: 64828
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Runtime error 91" when launching the program

Post by admin »

Thanks.

What about runtime error 91? Did that go away?

OIV88
Posts: 20
Joined: 24 Sep 2023 21:06

Re: "Runtime error 91" when launching the program

Post by OIV88 »

At the moment everything is fine and the program starts immediately and there are no errors, I hope the problem is solved.
Thank you very much again for your help and prompt responses!

kiwichick
Posts: 648
Joined: 08 Aug 2012 04:14
Location: Windows 10 Pro 22H2, 150% scaling

Re: "Runtime error 91" when launching the program

Post by kiwichick »

admin wrote: 08 Oct 2024 11:53 Paste this script into the XY address bar and press ENTER: screen;
Hi Don, is there a list somewhere of all commands/scripts like this that can be used in the Address Bar? Only asking because I can't see Screen listed in the Help file under Scripting Commands Reference and wondered how many more unlisted ones there are.
Windows 10 Pro 22H2

highend
Posts: 14563
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: "Runtime error 91" when launching the program

Post by highend »

One of my scripts helped you out? Please donate via Paypal

kiwichick
Posts: 648
Joined: 08 Aug 2012 04:14
Location: Windows 10 Pro 22H2, 150% scaling

Re: "Runtime error 91" when launching the program

Post by kiwichick »

highend wrote: 19 Oct 2024 09:35 viewtopic.php?t=13581
Thanks!! I had completely forgotten about the undocumented script commands.
Windows 10 Pro 22H2

Post Reply