SCRIPT and GetObject

As @vefatica discovered recently, it would appear that GetObject does not work well with the SCRIPT command.

This example;
Code:
Set oMath = Nothing
Set oMath = GetObject("script:e:\utils\math.wsc")
oMath.StartFSO()
oMath.Display("Test")
Set oMath = Nothing
...executed with;
Code:
SCRIPT test.vbs
causes TCC to disappear.

Joe
Code:
     _x64: 1
   _admin: 1
_elevated: 1

TCC  27.00.18 x64   Windows 10 [Version 10.0.18363.1256]
 
I went back to;
Code:
TCC 15.01.04 Windows XP [Version 5.1.2600]
     _x64: 0
   _admin: 1
_elevated: 0
...and my example with GetObject works.
1610551692577.png

From TCC v24 to TCC v27, it does not work.

Joe
 

rconn

Administrator
Staff member
May 14, 2008
12,108
138
Windows bug (in ntdll, which is replacing TCC's error handler which is why it exits when ntdll crashes). Since Microsoft no longer supports the APIs in question, there's no chance of getting it "fixed".

Old versions of TCC work because they're using an alternate set of APIs which are no longer supported by the Windows SDK.

SCRIPT is pretty much obsolete; Microsoft has abandoned the technology.