I've got a script that runs ok most of the time, but occasionally (every 20 iterations or so) it gives me
"Access violation at address 004058A8 in module 'msched.exe'. Read of address 00000000.
Any idea what I should do to debug this?
Running the script from the script editor, v12.1.5 on Windows XP
Intermittent Access violation error
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
The first thing you need to do is work out which line causes the error. Most likely it is caused by some interaction with another process/application. Let's work out which line of the script causes it.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Intermittent error
Thanks.
The script navigates to an intranet page and fills out a form; it usually fails on the last line of a block of code like this:
There's another error message:
The script navigates to an intranet page and fills out a form; it usually fails on the last line of a block of code like this:
Code: Select all
Let>FrameName={""}
Let>FormName={""}
Let>TagValue={"Add to list"}
IE_ClickTag>%IE[0]%,str:FrameName,str:FormName,A,TEXT,str:TagValue,r
which I find odd, because it will run through the whole process several times without generating this error. It happened more frequently when I had other programs running on the machine, but even with only IE, Excel and MacroScheduler running, I'm still encountering issues every 20 iterations or so.Error Calling DLL: Possible wrong number or type of parameters? Message: Access is denied
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
I suspect the page isn't ready on those occasions and so the script tries to click a link that isn't there. Make sure you are using IE_Wait, consider increasing a static delay before it and also consider using something like WaitScreenText and/or a loop with IE_ContainsText prior to that line to make absolutely 100% sure the page is ready and the element exists before trying to click it.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?