FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   Add to FavoritesAdd to Favorites
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    RSS Get RSS Feed  


msched.exe has stopped working

 
Post new topic   Reply to topic    Macro Scheduler and Windows Automation Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
MikeSr
Newbie


Joined: 07 Feb 2010
Posts: 15
Location: Fort Myers, FL
Reputation: 115
votes: 2
Earn Points, Win a T-Shirt

PostPosted: Mon Feb 08, 2010 8:07 pm    Post subject: msched.exe has stopped working Reply with quote

Testing my script which is running a continuos loop, after a few minutes one of two errors are generated
- msched.exe has stopped working
or
-error initializing MSSCRIPT control.

Don't know where to begin! Is loop causing recursive errors?

Regards,

MikeSr

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message Visit poster's website
sarver311
Pro Scripter


Joined: 17 Jun 2008
Posts: 68

Reputation: 101.6
votes: 2
Earn Points, Win a T-Shirt

PostPosted: Mon Feb 08, 2010 9:45 pm    Post subject: Reply with quote

Hi Mike

Well my first instinct would be you may have to reinstall MS but here are a few suggestions to see if its the script or possible the ms engine.

What happens if you create a simple script with nothing but a loop in it? Can you recreate the issue with just a loop running?

If that doesn't recreate the issue do you have any older revisions of this script you can test to see if it happens in those versions?

I have found 9 times out of 10 that crashes in MS are due to my scripts not the program but it certainly is possible it's MS.

If you want to paste your script I'd be happy to try it on my end and see if I get any issues.

-Josh

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message
MikeSr
Newbie


Joined: 07 Feb 2010
Posts: 15
Location: Fort Myers, FL
Reputation: 115
votes: 2
Earn Points, Win a T-Shirt

PostPosted: Mon Feb 08, 2010 10:11 pm    Post subject: Reply with quote

Well, what I found out so far is this:
I am using two marco scripts. I have the first script calling the second.When the second is complete, it call the first and so on.
I commented out the call to the second script and so far it is running just fine.
I am using the "Macro" command to call each macro.
It appears that this might be recursion.

I will post more as run a few more tests.

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message Visit poster's website
gdyvig
Automation Wizard


Joined: 27 Jun 2008
Posts: 446
Location: Seattle, WA
Reputation: 457
votes: 24
Earn Points, Win a T-Shirt

PostPosted: Tue Feb 09, 2010 12:37 am    Post subject: Recursion not necessary. Reply with quote

Hi MikeSr,

There is no need for script2 to call script1.

When script2 is finished control will return to script1, next line.

So script1 can look like this:



Gale

Did this message help you? If so please reward the poster with Reputation Points? Reward Points
Back to top
View user's profile Send private message
Display posts from previous:    View previous topic :: View next topic  
Post new topic   Reply to topic    Macro Scheduler and Windows Automation Forum Index -> General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group