Page 1 of 1

Packaged VBScript crashes on load

Posted: Thu Aug 30, 2018 11:08 pm
by Jay Adams
The exe crashes every time when running on a test Windows 7 machine (details below). I've tried both x86 and x64 versions. It runs with no output, but doesn't crash, on the Windows 10 machine where it was created. I can replicate the problem with a single line VBScript that just writes "Hello World" to the console. I've created many before with similar settings on previous versions of PrimalScript.

Packager settings:
Target: Microsoft Windows 32 and 64 Bit
Script Engine: SAPIEN Script Host (Command line)
Embed a default manifest
Auto increment file version
(no other customizations)

Product, version and build: PrimalScript Version 7.4.116
32 or 64 bit version of product: 64-bit
Operating system: Windows 10
32 or 64 bit OS: 64-bit

*** Please add details and screenshots as needed below. ***

Problem signature:
Problem Event Name: BEX
Application Name: HelloWorld.exe
Application Version:
Application Timestamp: 5af02741
Fault Module Name: HelloWorld.exe
Fault Module Version:
Fault Module Timestamp: 5af02741
Exception Offset: 001fbdab
Exception Code: c0000417
Exception Data: 00000000
OS Version: 6.1.7601.
Locale ID: 1033
Additional Information 1: 1bf8
Additional Information 2: 1bf8580351515b1e38c79eb7769bd9e5
Additional Information 3: ea8e
Additional Information 4: ea8e0ffda95a619665bc47e6b302d418

Re: Packaged VBScript crashes on load

Posted: Fri Aug 31, 2018 12:17 am
by Alexander Riedel
Since it is not actually caused by a particular VBScript and not happening on all platforms it is most likely caused by different runtime versions.
PrimalScript and its script engines have all been ported to Visual Studio 2017 not to long ago.
Compare the 2017 runtime versions on the two machines and see if they are a different version. If so (or not) please let us know.

Re: Packaged VBScript crashes on load

Posted: Fri Aug 31, 2018 6:33 am
by Jay Adams
I still use this method on some projects because of it's ability to run on older platforms without dependencies. Is there a way to use the older packaging runtime with the latest version of PS?

Re: Packaged VBScript crashes on load

Posted: Sun Sep 02, 2018 12:01 am
by Alexander Riedel
Let’s first determine what the actual problem is. Can you provide the installed Visual Studio runtime versions for the machine it is crashing versus the one where it works?

Re: Packaged VBScript crashes on load

Posted: Sun Sep 02, 2018 4:42 am
by Jay Adams
On the test Windows 7 machine where the exe crashes, I don't see any of the runtimes installed.

On the Windows 10 machine where it was built, VC++ runtimes from 2005 to 2017 are installed. Note that while it doesn't crash on this machine, it doesn't output anything either.

Previously I'd imported the older "SAPIEN Script Host (Command line) Win32 (XP)" to get these packages to work everywhere without the need for additional installs.

Re: Packaged VBScript crashes on load

Posted: Fri Sep 07, 2018 8:38 pm
by Alexander Riedel
All VBScript packager engines require a Visual Studio Runtime. This has always been the case. Windows 7 has one installed by default, but the version depends on the patch level. Please check again what version you have installed.