Page 1 of 2

Crash - error 390

Posted: 08 Mar 2023 14:57
by JLoftus
Crash with Error 390 if Smartscreen.exe is blocked by firewall:


Error: 390 (0x00000186)
Desc: Can't access hDC outside event sub if HasDC is False or Windowless is True
Dll: 0
Proc: tmrDelay_Timer: 16>0

Source: XYplorer
XY ver: XYplorer 24.20.0015 - Lifetime License Enterprise
OS: Windows 11 Pro, 64-bit, Version 22H2, Build 25309.1000 (10.0)
Locale: 1033 (en-US)
ANSI: 1252, ACP: 1252 (ANSI - Latin I)
Font: Leelawadee UI 12, Leelawadee UI 12, DBCS: No
DPI: 96 (100%), 5120x1440

Date: 2023-03-08 07:54:20

Re: Crash - error 390

Posted: 08 Mar 2023 14:59
by admin
When?

Re: Crash - error 390

Posted: 08 Mar 2023 15:04
by JLoftus
running an .EXE file, smartscreen wants to connect outbound to scan the file, but I block smartscreen at the firewall.

Re: Crash - error 390

Posted: 08 Mar 2023 15:14
by admin
Lack of precision. :\

You mean you run any EXE file from XYplorer, eg by double-clicking it in the list?

Re: Crash - error 390

Posted: 08 Mar 2023 15:20
by JLoftus
Sorry, yes. Also, it's not every .exe, mostly it is happening with downloaded files, probably a MOTW thing...
https://www.google.com/search?q=windows ... of+the+web

...but the hDC error suggests maybe something about UAC or the firewall software prompt (WFC, binisoft.org)?

This has been happening for a while, but never posted about it. Today it's happened a few times in a row, Einstein's Definition of Insanity, so I figured I'd mention it. Seems pretty reproducible.

Re: Crash - error 390

Posted: 08 Mar 2023 15:25
by admin
It's the list auto-refresh timer that throws the error. Why is there a refresh? :eh:

1) Run this script: logchange 5;

2) Provoke the error

3) Run this script: dlog;

4) Post the results

Re: Crash - error 390

Posted: 08 Mar 2023 15:28
by JLoftus
More info: Does seem like it's MOTW related:
2023-03-08_08h25_06.png
If I tick this box, the crash does not happen, since the file is not blocked by Windows. So it appears not related to my firewall blocking smartscreen.exe, rather that Windows marked the file with MOTW. I'm not sure how long this has been causing XY to crash, but I do know Windows has been using this Unblock feature for a very long time.

Re: Crash - error 390

Posted: 08 Mar 2023 15:33
by JLoftus
admin wrote: 08 Mar 2023 15:25 It's the list auto-refresh timer that throws the error. Why is there a refresh? :eh:

1) Run this script: logchange 5;

2) Provoke the error

3) Run this script: dlog;

4) Post the results

This is all that appears after entering "logchange 5;" causing the crash, then running "dlog;" :

XYplorer 24.20.0015 - Lifetime License Enterprise - Windows 11 Pro, 64-bit, Version 22H2, Build 25309.1000 (10.0) - 2023-03-08 08:32:25
=============================================================================================================================================

Re: Crash - error 390

Posted: 08 Mar 2023 15:37
by admin
OK, thanks! This is also telling me what I need to know. The error will be gone in the next beta.

Re: Crash - error 390

Posted: 08 Mar 2023 15:41
by JLoftus
Awesome! Don, as always, you are, without question, the single most responsive software Developer I have ever had the pleasure of working with. Many thanks!

Re: Crash - error 390

Posted: 08 Mar 2023 15:53
by admin
Thanks. :D

BTW, with this (changed 5 to 6) there should be an actual result in the debug log:

1) Run this script: logchange 6;

2) Provoke the error

3) Run this script: dlog;

4) Post the results

Re: Crash - error 390

Posted: 08 Mar 2023 15:57
by JLoftus
Same result with logchange 6;

XYplorer 24.20.0015 - Lifetime License Enterprise - Windows 11 Pro, 64-bit, Version 22H2, Build 25309.1000 (10.0) - 2023-03-08 08:56:47
=============================================================================================================================================

Re: Crash - error 390

Posted: 08 Mar 2023 16:00
by admin
Hmm :eh: It will be fixed anyway, but now I don't understand why. :mrgreen:

Re: Crash - error 390

Posted: 08 Mar 2023 16:13
by admin
Should be fixed in v24.20.0016

Re: Crash - error 390

Posted: 08 Mar 2023 16:28
by JLoftus
Unfortunately, still crashing with 24.20.0016

locgchange 6; still produces only the header line.

The file I am using to reproduce this is the K-lite update:
https://www.codecguide.com/klcp_update.htm

Once you run the file once, you will need to download it again to restore the MOTW.