PrimalScript is randomly adding characters to end of VBS file

Support for all customers who have purchased a PrimalScript product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
charlesrwood
Posts: 1
Joined: Fri May 17, 2013 6:26 pm

PrimalScript is randomly adding characters to end of VBS file

Post by charlesrwood » Mon Jul 30, 2018 9:18 am

Product, version and build: PrimalScript Version 7.4.115
32 or 64 bit version of product: 64 bit
Operating system: Windows 10 Pro 1709
32 or 64 bit OS: 64 bit

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

Randomly after saving a VBS file, there will be characters added to the very last line of the file. I only know that they are there when I run the script and it throws a compilation error. The characters can only be seen in a notepad application and not in PrimalScript. This was also happening on my 2016 version of PrimalScript.

I wish I knew how to replicate the issue, but I can't.

User avatar
Alexander Riedel
Posts: 6711
Joined: Tue May 29, 2007 4:43 pm

Re: PrimalScript is randomly adding characters to end of VBS file

Post by Alexander Riedel » Fri Aug 31, 2018 12:21 am

I was trying to replicate this but have not been successful. The only thing I could think of is that if you use files with a different encoding than Unicode. Then file content needs to be converted back and forth.
So to start somewhere, what is the encoding of your files?
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
Alexander Riedel
Posts: 6711
Joined: Tue May 29, 2007 4:43 pm

Re: PrimalScript is randomly adding characters to end of VBS file

Post by Alexander Riedel » Fri Aug 31, 2018 12:22 am

Additionally, could you zip and attach a file like that here if that happens again. You can also email it to support@sapien.com if you do not want it to be public.
Alexander Riedel
SAPIEN Technologies, Inc.