I run a script that reads a file into a variable and then I look inside the variable for a couple of strings...
Let>atfile=U:\EData\SCN_FTP\Reports.txt
ReadFile>%atfile%,FNMKVAR
Let>FSTRG1=BROADCAST MESSAGE
Let>FSTRG2=BILLING PERIOD
Let>FSTRG3=***0
Position>%FSTRG1%,FNMKVAR,1,FSTRGPOS1
Position>%FSTRG2%,FNMKVAR,1,FSTRGPOS2
Position>%FSTRG3%,FNMKVAR,1,FSTRGPOS3
This works fine when run from MS 7.4 menu, but when in the editor and running using debug, one line at a time, it fails when reading the file into the variable FNMKVAR, with the following Macro Scheduler error messages...
Access violation at address 70B2537C in Module 'comctl32.dll'. Write of address 01DAB000
and...
External exception C0150011
I have looked on the 'net for info on these errors, but could find nothing useful.
Any ideas?
ReadFile not happy using debug
Moderators: JRL, Dorian (MJT support)
- tony_smith
- Pro Scripter
- Posts: 70
- Joined: Wed May 14, 2003 8:25 pm
- Location: Vancouver BC Canada
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
- tony_smith
- Pro Scripter
- Posts: 70
- Joined: Wed May 14, 2003 8:25 pm
- Location: Vancouver BC Canada