Page 1 of 1

Improper argument on startup and file save

Posted: Tue Jun 11, 2019 9:12 am
by gmichaud
Product: PrimalScript (64 Bit)
Build: v7.4.128
OS: Windows 10 Pro (64 Bit)
Build: v10.0.17763

I just recently started getting this error on startup when it is loading previously edited files. Not always, just now and then. Can't repro on demand.
Screenshot - 6_11_2019 , 10_59_59 AM.png
Screenshot - 6_11_2019 , 10_59_59 AM.png (6.79 KiB) Viewed 617 times
Only once - just now - I also got it on file save. PrimalScript keeps running, and I can't see anything obviously wrong so I just keep editing away.

FYI, We do use some long filenames. Over 50 characters. Also, our files are all UTF-16 LE.

I see other posts with that error, but I have not changed any templates recently and for me PS doesn't "CRASH". Just displays the error.

Re: Improper argument on startup and file save

Posted: Tue Jun 11, 2019 9:26 am
by gmichaud
Correction: I got the error on a file Save AS, and I just did it again. I tried a 3rd time, but no error.

Re: Improper argument on startup and file save

Posted: Tue Jun 11, 2019 9:29 am
by Alexander Riedel
on a SaveAs....
I will have a look.

Re: Improper argument on startup and file save

Posted: Tue Jun 11, 2019 9:36 am
by Alexander Riedel
Can you give us an example of what the name of the file is (full path) and what you are saving it as (also full path)?
Maybe we can replicate it.

Re: Improper argument on startup and file save

Posted: Tue Jun 11, 2019 1:02 pm
by gmichaud
Here is the full path to the file I saved AS...

"C:\Users\Gerry\Script Library\VB Installers\1546131 - ## Apps Packaging\Camtasia 8 Refresh\TechSmith Camtasia 8\UTC-ENG-TechSmith-CamtasiaStudio-v8.6.0-ALL-r1.0.vbs"

Note that I've been editing files with similar paths for years. The only thing new here is the use of ## in the folder name. And the error happens only occasionally. I'd say I've seen it a total of 5 times including twice today.

Re: Improper argument on startup and file save

Posted: Tue Jun 11, 2019 10:38 pm
by Alexander Riedel
I'll see what I can find out today