Win 10 Application error

Started by jmburton2001, July 13, 2021, 08:14:23 AM

Previous topic - Next topic

jmburton2001

Thank you for your insights and guidance!

This script runs without fail on Win 7 but on Win 10 it fails on line 83 -> MapList = MapFileGetCsv(StrCat(HomeLoc,"NewLine Output.txt"), ";")
and then Windows presents this error and closes.

Win 10 Home (x64) 1709 16299.371

Event Viewer

Faulting application name: WinBatch Studio.exe, version: 2019.1.0.0, time stamp: 0x5c3521af
Faulting module name: KERNELBASE.dll, version: 10.0.16299.371, time stamp: 0xee297154
Exception code: 0xc0000005
Fault offset: 0x000d0275
Faulting process id: 0x1d90
Faulting application start time: 0x01d777f3fe03d2aa
Faulting application path: D:\Program Files\WinBatch\System\WinBatch Studio.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: e9e9afd6-e736-4a02-949f-70b4c75640e4
Faulting package full name:
Faulting package-relative application ID:


Please find attached the script and the raw data it reads.

A successful execution should present a GUI similar to this.

td

Interesting problem.  The cause appears to be Unicode characters in your file being converted to high ANSI characters. MSFT has changed the behavior of an underlying Win32 function used by the Map related functions to add new key/value pairs to a map and that is tripping up the map functions when processing high ANSI characters. It will be corrected in the next release of WinBatch. Until then you could convert your script to using the COM Automation dictionary object, "scripting.dictionary".  It isn't quite as fast as WIL Maps but it might serve your needs. You could also just use regular WIL arrays to accomplish the same task with a little extra processing.

Thanks for taking the time to report the problem and also for providing a reproducing example. Really appreciate your efforts.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade