ReadFile not happy using debug

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
tony_smith
Pro Scripter
Posts: 70
Joined: Wed May 14, 2003 8:25 pm
Location: Vancouver BC Canada

ReadFile not happy using debug

Post by tony_smith » Wed Sep 14, 2005 9:31 pm

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?

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Sep 14, 2005 11:02 pm

I was unable to duplicate your problem.

Obviously, I did not read the same file, and I used a different, local path.

I also used a drive mapped to another network station, with no problem.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
tony_smith
Pro Scripter
Posts: 70
Joined: Wed May 14, 2003 8:25 pm
Location: Vancouver BC Canada

Post by tony_smith » Thu Sep 15, 2005 3:59 pm

Thanks, Bob for taking the time to test this on your system.

But... the problem is persistent... are the errors meaningful in finding the reason?

Perhaps they might mean something to the development folks... Support; do you have any suggestions?

Thanks





Remember... wherever you go... there you are.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts