Help - Search - Members - Calendar
Full Version: Run-time error 6?
Skyline User's Forum > > Activity Master
sgdavis
I have received a couple of reports from users that they will see a Run-time error 6 when trying to replace rolling stock using Activity Master. I have never seen this error or caused it to occur. However I've seen it on other people's machines, and it is nearly always caused by a file or file structure error in the user's \TRAINSET folder. Our suggestion is to run Conbuilder or RouteRiter, both excellent and in my opinion "Must have" utilities, to check all the rolling stock files first, before using Activity Master to replace.

I will continue to try and hunt down this elusive run-time error and come up with a better way for Activity Master to dea with it or a better more informative error message, however so far every time I have seen this it has been curable by using Route Riter or ConBuilder.

Some users have reported this on only one route. In that case it's generally because the user is using TrainStore (which I use and also highly recommend), and, when the rolling stock giving the problems is "stored" (because the route is stored) then the problems go away, and when that rolling stock is unstored the problems appear.

If you DO get this error please post to this forum, I want to track it down. I'll want to know what route and what activity you were working on.

Thanks,

Steve
beechcaptain
I had it happen to me last night after using the EB template from the new Full Bucket Line template to create an activity.

I needed to replace about 75% of the rolling stock and when I slid the slider all the way to the right and then selected list for both options and went to make the RS changes, up came the Run time error 6 window and closed out AM.

I then reduced the slider to change only those not on my hard drive and did not get the error.

At that point, I decided to call it a night.

First time I have ever had that occur.

I'll post further details once I resume further trials this evening, honey do's permitting.



Glenn
sgdavis
QUOTE(beechcaptain @ Oct 10 2007, 12:34 PM) *
I had it happen to me last night after using the EB template from the new Full Bucket Line template to create an activity.

I needed to replace about 75% of the rolling stock and when I slid the slider all the way to the right and then selected list for both options and went to make the RS changes, up came the Run time error 6 window and closed out AM.

I then reduced the slider to change only those not on my hard drive and did not get the error.

At that point, I decided to call it a night.

First time I have ever had that occur.

I'll post further details once I resume further trials this evening, honey do's permitting.



Glenn


Interesting. The last report of this I got also involved using the Specific List option and changing out all rolling stock. I just did this and couldn't get the error, so I'm still convinced it has something to do with the rolling stock in your Trainset folder. Have you tried using ConBuilder or RouteRiter to check all the rolling stock in your \TRAINSET folder before using AM on the activity? If so do you get any errors?

Also does this happen as soon as the "select replacement" list comes up, or, does it happen after you make your selections and then click the "replace rolling stock" button?

Also can you confirm that you are running version 1.5.6?

Thanks,

Steve
beechcaptain
Well, I have not been able to duplicate the problem since the night first encountered. Seems that I changed out cars available through Trainstore and problem went away. Unstored all rolling stock and could not get the error to reoccur.

Then I got the following error when trying to start AM after it loaded the rolling stock upon selecting the activity:

Type mismatch Wagon Data( "ATSF_74971" "Santa Fe Ga-152 weathered") and I got the Abort, Retry, Ignore option.

This occured with each of that particular group of car (Ga-152) so I stored them all and problem went with them.

I have not had a chance to look closely at the files to determine the issue. But at least I'm getting the issues resolved.

Just wish I had more time to spend on MSTS right now.


I've said it before, and I'll say it again...... Steve, your AG and AM software are truly outstanding and It keeps me coming back for more.

Thanks,

Glenn
sgdavis
QUOTE(beechcaptain @ Oct 13 2007, 10:33 AM) *
I got the following error when trying to start AM after it loaded the rolling stock upon selecting the activity:

Type mismatch Wagon Data( "ATSF_74971" "Santa Fe Ga-152 weathered") and I got the Abort, Retry, Ignore option.

This occured with each of that particular group of car (Ga-152) so I stored them all and problem went with them.

I've said it before, and I'll say it again...... Steve, your AG and AM software are truly outstanding and It keeps me coming back for more.

Thanks,

Glenn

Dear Glenn,

First thanks for your kind words!

Next, on your error, where did you get the car "ATSF_74971" "Santa Fe Ga-152 weathered"? If you'll tell me the file name and where I can download it I'll check those cars. If I can get AM to work with these then the program will be more robust for everyone.

Thanks,

Steve
beechcaptain
Steve,

The weathered Ga-152 can be found at Train-Sim.com as sfgndlw.zip, the clean are sfgndla.zip (if memory serves correctly).

Thanks,

Glenn
TrainSkinner
hi... i got A.M. quite a while ago... i've used it a few times with no problem but an activity i just downloaded returned a "runtime error '6' overflow". i checked everything with route riter and all seems fine. the activity is the new activity for rattlesnake desrt "ATSF 104 west"... not sure what to do... thanks
-mike
sgdavis
QUOTE(TrainSkinner @ Oct 31 2007, 06:23 PM) *
hi... i got A.M. quite a while ago... i've used it a few times with no problem but an activity i just downloaded returned a "runtime error '6' overflow". i checked everything with route riter and all seems fine. the activity is the new activity for rattlesnake desrt "ATSF 104 west"... not sure what to do... thanks
-mike

Somebody else reported an error with this route. I will be out of town for a few days but when I return I will download this route and the activity and see what's up.

It "ATSF 104 west" available at www.train-sim.com ?

Thanks,

Steve
jrmeindl
QUOTE(sgdavis @ Oct 7 2007, 09:40 AM) *
I have received a couple of reports from users that they will see a Run-time error 6 when trying to replace rolling stock using Activity Master. I have never seen this error or caused it to occur. However I've seen it on other people's machines, and it is nearly always caused by a file or file structure error in the user's \TRAINSET folder. Our suggestion is to run Conbuilder or RouteRiter, both excellent and in my opinion "Must have" utilities, to check all the rolling stock files first, before using Activity Master to replace.

I will continue to try and hunt down this elusive run-time error and come up with a better way for Activity Master to dea with it or a better more informative error message, however so far every time I have seen this it has been curable by using Route Riter or ConBuilder.

Some users have reported this on only one route. In that case it's generally because the user is using TrainStore (which I use and also highly recommend), and, when the rolling stock giving the problems is "stored" (because the route is stored) then the problems go away, and when that rolling stock is unstored the problems appear.

If you DO get this error please post to this forum, I want to track it down. I'll want to know what route and what activity you were working on.

Thanks,

Steve



Hi Steve,

I had just downloaded an activity for the Freeware Cajon Pass route. The file is bnsfemp.zip at Train-Sim. When I loaded this activity into Activity Master, I had approximately 660 unknown pieces of rolling stock that was not located on my hard drive. If I tried to replace stock, I got the runtime error 6. It didn't matter whether I used a specific list or let AM choose for me. I've never had this error show up before, and after reading some of the messages here, I was wondering if there could be something wrong in one of the trainset folders. That would make sense if it had been happening all along. This activity has 20 AI services along with the player consist and some cars on sidings. I manually edited the activity file down to 5 AI services. That brought the number of cars needing replacement down just under 200. Activity Master was then able to swap out cars using a specific list or any of it's own choosing. I then added the services again to the activity file in groups of 5 until I was able to have all of them replaced so I could run the activity as the author uploaded it. For my problem here, it seems the number of unknown cars, or ones not on my drive, was limited to around 200. I am using version 1.5.8.

Jim
sgdavis
QUOTE(jrmeindl @ Nov 4 2007, 10:00 PM) *
Hi Steve,

I had just downloaded an activity for the Freeware Cajon Pass route. The file is bnsfemp.zip at Train-Sim. When I loaded this activity into Activity Master, I had approximately 660 unknown pieces of rolling stock that was not located on my hard drive. If I tried to replace stock, I got the runtime error 6. It didn't matter whether I used a specific list or let AM choose for me. I've never had this error show up before, and after reading some of the messages here, I was wondering if there could be something wrong in one of the trainset folders. That would make sense if it had been happening all along. This activity has 20 AI services along with the player consist and some cars on sidings. I manually edited the activity file down to 5 AI services. That brought the number of cars needing replacement down just under 200. Activity Master was then able to swap out cars using a specific list or any of it's own choosing. I then added the services again to the activity file in groups of 5 until I was able to have all of them replaced so I could run the activity as the author uploaded it. For my problem here, it seems the number of unknown cars, or ones not on my drive, was limited to around 200. I am using version 1.5.8.

Jim


Jim,

This is very helpful. I will cull through my code and see it the number of unknowns is in fact limited to 200. That would indeed be an error I would need to fix and might solve this "Run time error 6" for a lot of users! For those interested in programming, run time error 6 means than an array index was accessed beyond it's boundaries, and that could be happening if the boundary is set at 200. I'll check it out and if so post a fix, THANKS!

Nice detective work, thanks for your perseverance in finding this.

Sincerely,

Steve Davis
jrmeindl
QUOTE(sgdavis @ Nov 5 2007, 06:39 AM) *
Jim,

This is very helpful. I will cull through my code and see it the number of unknowns is in fact limited to 200. That would indeed be an error I would need to fix and might solve this "Run time error 6" for a lot of users! For those interested in programming, run time error 6 means than an array index was accessed beyond it's boundaries, and that could be happening if the boundary is set at 200. I'll check it out and if so post a fix, THANKS!

Nice detective work, thanks for your perseverance in finding this.

Sincerely,

Steve Davis



Steve,

You're welcome. It was just a long shot when I edited the activity file. I remembered you made an edit to the code for AG, when Denis made the Burton-Derby template, changing the number of allowable sidings. That gave me the idea to limit the number of cars I would have to replace.

Jim
sgdavis
QUOTE(jrmeindl @ Nov 5 2007, 12:35 PM) *
Steve,

You're welcome. It was just a long shot when I edited the activity file. I remembered you made an edit to the code for AG, when Denis made the Burton-Derby template, changing the number of allowable sidings. That gave me the idea to limit the number of cars I would have to replace.

Jim


Jim,

I am having trouble duplicating this problem. In my code it appears that the limit is 2000 cars. I replaced all the cars in the activity you mentioned (bnsfemp.zip) I showed 1164 cars not on my drive. I hit 'replace' and it worked without errors.

I didn't use the 'specific list' but that shouldn't make a difference. Can you tell me specifically what steps you followed and when the run time error came up? Also I assume you are running v 1.5.8, correct?

If you could check "Check here to generate a debug file", then run this on the full unedited activity (the one that generates the run time error) and then send me the debug.txt file after running AM and getting this error (as an attachment to a post in this forum would be fine) I'd appreciate it. That might help me to unlock this mystery.

Sorry I couldn't get this to happen on my machine.

Thanks,

Steve
sgdavis
QUOTE(TrainSkinner @ Oct 31 2007, 06:23 PM) *
hi... i got A.M. quite a while ago... i've used it a few times with no problem but an activity i just downloaded returned a "runtime error '6' overflow". i checked everything with route riter and all seems fine. the activity is the new activity for rattlesnake desrt "ATSF 104 west"... not sure what to do... thanks
-mike


Mike,

I downloaded and installed this route, then downloaded this activity. I noticed that Activity Master couldn't tell what type of coupler to use so I manually selected the type "Automatic". I showed 252 cars not on my drive, see below:

Click to view attachment

I ran AM on it and had no errors. It replaced all the cars (it won't tell you that immediately but I reloaded the activity and got the screen below when AM read the modified activity):

Click to view attachment

Could you click the "Check here to generate debug file" box, then post the "debug.txt" file you'll find in your \Program Files\Activity Master folder, to this topic and I'll try and figure out what's going on?

Thanks and sorry I wasn't more help.

--Steve
jrmeindl
QUOTE(sgdavis @ Nov 8 2007, 06:47 PM) *
Jim,

I am having trouble duplicating this problem. In my code it appears that the limit is 2000 cars. I replaced all the cars in the activity you mentioned (bnsfemp.zip) I showed 1164 cars not on my drive. I hit 'replace' and it worked without errors.

I didn't use the 'specific list' but that shouldn't make a difference. Can you tell me specifically what steps you followed and when the run time error came up? Also I assume you are running v 1.5.8, correct?

If you could check "Check here to generate a debug file", then run this on the full unedited activity (the one that generates the run time error) and then send me the debug.txt file after running AM and getting this error (as an attachment to a post in this forum would be fine) I'd appreciate it. That might help me to unlock this mystery.

Sorry I couldn't get this to happen on my machine.

Thanks,

Steve


Steve,

I am using v 1.5.8. Everything runs fine up to the point before clicking either button, "Replace Rolling Stock" if letting AM do the selections or "Set up Replacement List." When clicking either of those is when the Run-time error 6 'overflow' occurs. I included the debug files from both attempts.

Jim
sgdavis
QUOTE(jrmeindl @ Nov 9 2007, 08:25 AM) *
Steve,

I am using v 1.5.8. Everything runs fine up to the point before clicking either button, "Replace Rolling Stock" if letting AM do the selections or "Set up Replacement List." When clicking either of those is when the Run-time error 6 'overflow' occurs. I included the debug files from both attempts.

Jim


Jim,

I have posted an update, version 1.5.9, that *may* correct this. Please download this and let me know your results. Do you get any error messages? If so what? I have increased the number of unknowns in an activity to 2500, which is a lot more than MSTS can actually handle since the limit is usually about 500 - 700 cars.

Thanks,

Steve
jrmeindl
QUOTE(sgdavis @ Nov 10 2007, 08:13 PM) *
Jim,

I have posted an update, version 1.5.9, that *may* correct this. Please download this and let me know your results. Do you get any error messages? If so what? I have increased the number of unknowns in an activity to 2500, which is a lot more than MSTS can actually handle since the limit is usually about 500 - 700 cars.

Thanks,

Steve


Hi Steve,

I downloaded and ran version 1.5.9. For me, this was not as robust as 1.5.8. It took a bit to load this version and took some time to read my trainset directory. I ran bnsfemp.zip again after installing 1.5.9. I did get a couple of errors. I included the screen shots and the debug file. The first time I ran it, about 2/3 of the cars were replaced. I ran the replace a second time and managed to replace all of the cars. I let AM choose the replacements for me. I'm wondering if it just might be my computer short of enough memory (512 MB), although I haven't ran into any issues before.

Jim
TrainSkinner
QUOTE(sgdavis @ Nov 10 2007, 07:13 PM) *
Jim,

I have posted an update, version 1.5.9, that *may* correct this. Please download this and let me know your results. Do you get any error messages? If so what? I have increased the number of unknowns in an activity to 2500, which is a lot more than MSTS can actually handle since the limit is usually about 500 - 700 cars.

Thanks,

Steve


i'll have to give it a go... i tried to load the activity again the other day and now i can't even get it to recognize that the route is installed on my system and that's before i even open AM... this one is certainly not AM's error... confusing... so until i get that figured out i guess i won't worry about AM... thanks... -mike
sgdavis
QUOTE(jrmeindl @ Nov 11 2007, 12:26 PM) *
Hi Steve,

I downloaded and ran version 1.5.9. For me, this was not as robust as 1.5.8. It took a bit to load this version and took some time to read my trainset directory. I ran bnsfemp.zip again after installing 1.5.9. I did get a couple of errors. I included the screen shots and the debug file. The first time I ran it, about 2/3 of the cars were replaced. I ran the replace a second time and managed to replace all of the cars. I let AM choose the replacements for me. I'm wondering if it just might be my computer short of enough memory (512 MB), although I haven't ran into any issues before.

Jim

Jim,

Thanks for checking this out. It shouldn't be less robust though, I added MORE error checking. But that could be wha'ts slowing it down though. Also checking the 'generate debug file' does slow it down because it has to write quite a bit to disk and disk i/o is always a bottleneck. Thanks for attaching the screen shots and debug.txt, that is extremely helpful. Notice that instead of just dumping you out, you got the overload error but the program CONTINUED. It didn't replace all the cars though as you said because it did jump out (instead of crashing). If you ran it a second time on the same activity that had already had some replacements made, then it worked and replaced all the cars.

As for WHY you got that first error though, that is still a mystery to me. Since i = 89 and the maximum for that is 5,000, and j = 1101 and the maximum for that is 32,000, I know now that the overflow is NOT a matter of capacity or an array index out of range. It seems to be some piece of data getting set to a type that it can't be coerced to. For instance attempting to set an integer to a null string. I will keep troubleshooting this, I really appreciate your patience and help.

The other error means just what it says. There is an AI engine in the player consist, you needed to select a driveable engine as a possible replacement for it. Not sure why the AI engine was in the player consist though. To get around this try selecting your own player driveable locomotives using that feature in AM. It's better anyway: you get to drive what you want, and it isn't as picky -- as long as the LEAD loco is driveable you can have non-driveable locos elsewhere in the consist. When performing automatic replacement though AM doesn't take into consideration the position in the consist, it replaces all locos in the player consist with driveable. This is because in the current code there is no logic to mark the ordinal position of the piece of rolling stock being replaced so AM can't "know" if this is the first, last, etc. loco. But in "Choose Player Locomotives" each locomotive is examined on the basis of it's ordinal position in the consist.

I am attaching another update, 1.5.10. It isn't guaranteed to fix the problem but at least it should tell us which piece of rolling stock the program is getting stuck on. Can you also try this where YOU select the replacements and let me know how/if it works?

Click to view attachment

Also 512MB is plenty of memory for AM, there is no problem there.

Thanks,

Steve
jrmeindl
QUOTE(sgdavis @ Nov 13 2007, 04:20 PM) *
Jim,

Thanks for checking this out. It shouldn't be less robust though, I added MORE error checking. But that could be wha'ts slowing it down though. Also checking the 'generate debug file' does slow it down because it has to write quite a bit to disk and disk i/o is always a bottleneck. Thanks for attaching the screen shots and debug.txt, that is extremely helpful. Notice that instead of just dumping you out, you got the overload error but the program CONTINUED. It didn't replace all the cars though as you said because it did jump out (instead of crashing). If you ran it a second time on the same activity that had already had some replacements made, then it worked and replaced all the cars.

As for WHY you got that first error though, that is still a mystery to me. Since i = 89 and the maximum for that is 5,000, and j = 1101 and the maximum for that is 32,000, I know now that the overflow is NOT a matter of capacity or an array index out of range. It seems to be some piece of data getting set to a type that it can't be coerced to. For instance attempting to set an integer to a null string. I will keep troubleshooting this, I really appreciate your patience and help.

The other error means just what it says. There is an AI engine in the player consist, you needed to select a driveable engine as a possible replacement for it. Not sure why the AI engine was in the player consist though. To get around this try selecting your own player driveable locomotives using that feature in AM. It's better anyway: you get to drive what you want, and it isn't as picky -- as long as the LEAD loco is driveable you can have non-driveable locos elsewhere in the consist. When performing automatic replacement though AM doesn't take into consideration the position in the consist, it replaces all locos in the player consist with driveable. This is because in the current code there is no logic to mark the ordinal position of the piece of rolling stock being replaced so AM can't "know" if this is the first, last, etc. loco. But in "Choose Player Locomotives" each locomotive is examined on the basis of it's ordinal position in the consist.

I am attaching another update, 1.5.10. It isn't guaranteed to fix the problem but at least it should tell us which piece of rolling stock the program is getting stuck on. Can you also try this where YOU select the replacements and let me know how/if it works?

Click to view attachment

Also 512MB is plenty of memory for AM, there is no problem there.

Thanks,

Steve



Hi Steve,

You're welcome. I'm glad that the screen shots were a bit of a help. I figured it was best to send all error messages. The AI message would be an easy fix, I usually pick my own engines anyway. I also use rolling stock groups extensively to make stock choices easier. I did run AM a second time on the activity. All cars were replaced when I rechecked the activity.

I'll give 1.5.10 a go both ways, letting AM choose and by using the specific list option. I should be able to do that within the next few days. The specific list option will probably take some time to run thru based on the 660 cars missing ohmy.gif

Activity Master is a GREAT program and I'm glad to be part of making it even better!

Regards,

Jim
jrmeindl
QUOTE(jrmeindl @ Nov 13 2007, 08:31 PM) *
Hi Steve,

You're welcome. I'm glad that the screen shots were a bit of a help. I figured it was best to send all error messages. The AI message would be an easy fix, I usually pick my own engines anyway. I also use rolling stock groups extensively to make stock choices easier. I did run AM a second time on the activity. All cars were replaced when I rechecked the activity.

I'll give 1.5.10 a go both ways, letting AM choose and by using the specific list option. I should be able to do that within the next few days. The specific list option will probably take some time to run thru based on the 660 cars missing ohmy.gif

Activity Master is a GREAT program and I'm glad to be part of making it even better!

Regards,

Jim



Hi Steve,

I downloaded version 1.5.10. Checked for the debug file and changed the player locomotives. Then I went to replace the cars. As you suggested, I was setting up so my selections were from the specific list this time. As soon as I clicked the button for "Set up replacement list" I encountered the Run-Time error '6' Overflow message again. It never got to open the list and AM closed.

I thought I would try one more thing. I use Rolling Stock Groups when modifying activities that I upload. I have at least, one car for each type the I have defined along the way. This way I can minimize the number of downloads someone whould have to do. I made one of my groups the current stock group. Went in set up my player engines and then opened the window for my specific list selections. I left the slider still at the left to replace only the cars that were not on my drive. The time I was able to make selections from my list. After proceeding to let AM make the changes, I got message 1. I'm not sure why since I had selected a drivable engine to replace it. I had removed the AI engines from my list. I was also using the specific list function.

Now I thought I would try it again, except this time change all the cars and locos to my choosing. I went and selected the group from the car list, move the slider all the way to the right and selected the specific list option on both known and unknow stock. I got the same message and AM stopped the replacement.

The only difference was AM allowed me to set up a replacement list while using one of my groups. I could not while letting AM make the selections. Once again, I got the same message for the locomotive, even though I had made a selection of my choosing for it.

I have inclued some screen shots and the debug files which I have emailed to you. There wasn't enough space to upload it here.

Jim
sgdavis
QUOTE(jrmeindl @ Nov 15 2007, 07:21 PM) *
Hi Steve,

I downloaded version 1.5.10. Checked for the debug file and changed the player locomotives. Then I went to replace the cars. As you suggested, I was setting up so my selections were from the specific list this time. As soon as I clicked the button for "Set up replacement list" I encountered the Run-Time error '6' Overflow message again. It never got to open the list and AM closed.

I thought I would try one more thing. I use Rolling Stock Groups when modifying activities that I upload. I have at least, one car for each type the I have defined along the way. This way I can minimize the number of downloads someone whould have to do. I made one of my groups the current stock group. Went in set up my player engines and then opened the window for my specific list selections. I left the slider still at the left to replace only the cars that were not on my drive. The time I was able to make selections from my list. After proceeding to let AM make the changes, I got message 1. I'm not sure why since I had selected a drivable engine to replace it. I had removed the AI engines from my list. I was also using the specific list function.

Now I thought I would try it again, except this time change all the cars and locos to my choosing. I went and selected the group from the car list, move the slider all the way to the right and selected the specific list option on both known and unknow stock. I got the same message and AM stopped the replacement.

The only difference was AM allowed me to set up a replacement list while using one of my groups. I could not while letting AM make the selections. Once again, I got the same message for the locomotive, even though I had made a selection of my choosing for it.

I have inclued some screen shots and the debug files which I have emailed to you. There wasn't enough space to upload it here.

Jim


On the locomotive, I saw that message, it usually means AM doesn't "know" that's a locomotive. Did you try going into the "Show All" or "ID Unknowns" and set the "type" for that to DIESEL?

The run time error really does seem to be based on the amount of rolling stock, since you don't get it when you reduce your rolling stock group. I am not able to duplicate it here but then again I don't have the same rolling stock list you have. I am going to try and troubleshoot this using your rolling stock if I can. Then I KNOW I can solve this.

Thanks for your reports and patience. I will give you specific instructions in a private email to you.

Thanks and sorry about the problems,

Steve
Curt
Hi Everybody,
I'm new to this product (purchased AG and AM 5/08) and forum, and I'm hoping I'm not bringing up a problem that has obvious solution that I may have over-looked. I've viewed the Tutorials for AM, and thought I had a decent understanding of it, but I am very new on the AM learning-curve. I was trying to replace all of the rollingstock on the EB Manifest activity on the SLI Seligman route. I, too, received the "Run Time Error 6 Overflow" message, which closed me out of AM. My "trainset" folder is pretty large (1,000+/- engines; 2,000+/- cars), and I do use ConBuilder. What steps can I take to get passed this? Thanks in advance for any assistance.
highdesertdave2
Hi, Steve

I too have received the "Run Time Error 6 Overflow" message, in the last few months first with the Sal route and just recently with TPII.

With the SAL I was changing the tropicana act. to more modern cars when I got this message.

On the TPII act. I had changed the cars on it some time back and it worked fine then. This time I went into AE and added a consist to the act. and then tried to use AM and got the message.

Had to revert the act. back to it's orginal state to get to work.

Btw when I opened the tropicana act. all the sidings were flooded with cars.

The TPII act. was Teha_Day 3. which I got at TS. Dave
Curt
Any help/advise on this "Run-time error 6" problem would be greatly appreciated! Please see my post from above.
nbeveridge
QUOTE(Curt @ May 28 2008, 06:53 AM) *
Any help/advise on this "Run-time error 6" problem would be greatly appreciated! Please see my post from above.


My apologies for a lack of response. Steve will need to help with this. His daughter is getting married this weekend, so he has been pre-occupied with that event for most of the last several weeks. Please give him a chance to catch up -- probably next week, after the wedding???
Curt
No problem, I fully understand. Even though I'm new to this product, I've found Steve to be a great guy to work with. Hope all goes well for the bride!
sgdavis
QUOTE(Curt @ May 24 2008, 10:40 AM) *
Hi Everybody,
I'm new to this product (purchased AG and AM 5/08) and forum, and I'm hoping I'm not bringing up a problem that has obvious solution that I may have over-looked. I've viewed the Tutorials for AM, and thought I had a decent understanding of it, but I am very new on the AM learning-curve. I was trying to replace all of the rollingstock on the EB Manifest activity on the SLI Seligman route. I, too, received the "Run Time Error 6 Overflow" message, which closed me out of AM. My "trainset" folder is pretty large (1,000+/- engines; 2,000+/- cars), and I do use ConBuilder. What steps can I take to get passed this? Thanks in advance for any assistance.


Curt,

Regrettably, I know of no simple answer. I myself never get this run time error so I still haven't figured out why some users do. Here are some suggestions, perhaps you have already done this:
  1. Click the "Generate Debug file" box, then try whatever you were doing, then send me the file "debug.txt" which you will find in your \Program Files\Activity Master folder, either by posting it here or emailing it directly to me at SteveDavis@skylinecomputing.com
  2. Try using TrainStore and store all but the route you are working with. That will cut down on the number of rolling stock items ActivityMaster has to consider -- although it should handle up to 16,000 items.
  3. Check all your rolling stock using RouteRiter or ConBuilder and make sure there are no problems with it (Activity Master SUBSTITUTES rolling stock but doesn't FIX BAD FILES -- use these two great utilities to do that).
  4. If all of that fails I will need to help you live on line. I have a troubleshooting site that I can use to view your computer screen and work with you "live". To use this I have to be on line also. I am in the US on Central Time and am home from work after 6 pm most days. So please let me know what day and time you'd like for us to get together ... we'll have to agree on a time. Then go to http://r7.help20.com/965 Click "Run" when asked (you may be asked twice).
Thanks and sorry about the problems. If I can't get this working I will of course refund your purchase price.
--Steve




farrmp
Sorry All. . . Problem solved. . . My fault -- Cockpit Error!
sgdavis
QUOTE(farrmp @ Jun 5 2008, 01:32 AM) *
Sorry All. . . Problem solved. . . My fault -- Cockpit Error!



Can you tell me what it was, so I might help others who have this problem/issue?

Thanks!

--Steve biggrin.gif
highdesertdave2
QUOTE(sgdavis @ Oct 7 2007, 07:40 AM) *
I have received a couple of reports from users that they will see a Run-time error 6 when trying to replace rolling stock using Activity Master. I have never seen this error or caused it to occur. However I've seen it on other people's machines, and it is nearly always caused by a file or file structure error in the user's \TRAINSET folder. Our suggestion is to run Conbuilder or RouteRiter, both excellent and in my opinion "Must have" utilities, to check all the rolling stock files first, before using Activity Master to replace.

I will continue to try and hunt down this elusive run-time error and come up with a better way for Activity Master to dea with it or a better more informative error message, however so far every time I have seen this it has been curable by using Route Riter or ConBuilder.

Some users have reported this on only one route. In that case it's generally because the user is using TrainStore (which I use and also highly recommend), and, when the rolling stock giving the problems is "stored" (because the route is stored) then the problems go away, and when that rolling stock is unstored the problems appear.

If you DO get this error please post to this forum, I want to track it down. I'll want to know what route and what activity you were working on.

Thanks,

Steve



Hi Steve,

I'm having a problem with AM it wouldn't let change out the rolling in an act. Keeps giving me Run-time error 6 overflow and shuts down.

The act. is MT Intermodal, it is part of V3actpk1 which is in the TS. library.

I had problems moving the consists,act,paths,services and traffic into the TS. XP kept saying there was something wrong with the compressed file. Then I got a error something wrong with a car or engine no. when using AM.

After I idenified a couple of car types and replace them AM wouldn't let change anything after that just kept giving me the run 6 thing. Something real funny, it kept losing the shape viewer every time I use it from then on.

I went into AE and found a service consist that was missing it's two engines which btw AE said it couldn't read. I fixed that and that took care of the error messsages and I can run the act. okay.

But AM still wouldn't let me in to change anything still get the run 6. but the shape viewer is lit back up now.

This act. is for the FBL. Hope you can find the problem. Dave
sgdavis
QUOTE(highdesertdave2 @ Sep 1 2008, 02:10 PM) *
Hi Steve,

I'm having a problem with AM it wouldn't let change out the rolling in an act. Keeps giving me Run-time error 6 overflow and shuts down.

The act. is MT Intermodal, it is part of V3actpk1 which is in the TS. library.

I had problems moving the consists,act,paths,services and traffic into the TS. XP kept saying there was something wrong with the compressed file. Then I got a error something wrong with a car or engine no. when using AM.

After I idenified a couple of car types and replace them AM wouldn't let change anything after that just kept giving me the run 6 thing. Something real funny, it kept losing the shape viewer every time I use it from then on.

I went into AE and found a service consist that was missing it's two engines which btw AE said it couldn't read. I fixed that and that took care of the error messsages and I can run the act. okay.

But AM still wouldn't let me in to change anything still get the run 6. but the shape viewer is lit back up now.

This act. is for the FBL. Hope you can find the problem. Dave

I will download this activity and check this out, thanks for the trouble report.
sgdavis
QUOTE(jrmeindl @ Nov 15 2007, 08:21 PM) *
Hi Steve,

I downloaded version 1.5.10. Checked for the debug file and changed the player locomotives. Then I went to replace the cars. As you suggested, I was setting up so my selections were from the specific list this time. As soon as I clicked the button for "Set up replacement list" I encountered the Run-Time error '6' Overflow message again. It never got to open the list and AM closed.

I thought I would try one more thing. I use Rolling Stock Groups when modifying activities that I upload. I have at least, one car for each type the I have defined along the way. This way I can minimize the number of downloads someone whould have to do. I made one of my groups the current stock group. Went in set up my player engines and then opened the window for my specific list selections. I left the slider still at the left to replace only the cars that were not on my drive. The time I was able to make selections from my list. After proceeding to let AM make the changes, I got message 1. I'm not sure why since I had selected a drivable engine to replace it. I had removed the AI engines from my list. I was also using the specific list function.

Now I thought I would try it again, except this time change all the cars and locos to my choosing. I went and selected the group from the car list, move the slider all the way to the right and selected the specific list option on both known and unknow stock. I got the same message and AM stopped the replacement.

The only difference was AM allowed me to set up a replacement list while using one of my groups. I could not while letting AM make the selections. Once again, I got the same message for the locomotive, even though I had made a selection of my choosing for it.

I have inclued some screen shots and the debug files which I have emailed to you. There wasn't enough space to upload it here.

Jim


Jim,

Did you email me the pictures today? If so I have not yet received them, sorry. I am working on yet another update with help from Joe Smith (Joe Bandit on this forum) which has enhanced error checking built in. I may have that ready for you to check out this weekend.

Thanks also to Joe for the help! For those who don't know Joe, he is the Senior Programmer for ConBuilder.

Thanks,

Steve
jrmeindl
QUOTE(sgdavis @ Sep 15 2008, 07:09 PM) *
Jim,

Did you email me the pictures today? If so I have not yet received them, sorry. I am working on yet another update with help from Joe Smith (Joe Bandit on this forum) which has enhanced error checking built in. I may have that ready for you to check out this weekend.

Thanks also to Joe for the help! For those who don't know Joe, he is the Senior Programmer for ConBuilder.

Thanks,

Steve



Hi Steve,

I think I might have emailed them back in November. I checked to see if I still had them, but I think I deleted them already. I still have the activities that I had trouble with though. I'd be more than willing to give it a run.

Jim
sgdavis
QUOTE(jrmeindl @ Sep 15 2008, 08:43 PM) *
Hi Steve,

I think I might have emailed them back in November. I checked to see if I still had them, but I think I deleted them already. I still have the activities that I had trouble with though. I'd be more than willing to give it a run.

Jim


Jim,

No need it it was that long ago. I didn't realize that, I thought this was a recent/current issue. Are you saying other routes/activities work ok for you but you have problems with this specific route or activity, only?

Thanks,

Steve
jrmeindl
QUOTE(sgdavis @ Sep 16 2008, 07:28 PM) *
Jim,

No need it it was that long ago. I didn't realize that, I thought this was a recent/current issue. Are you saying other routes/activities work ok for you but you have problems with this specific route or activity, only?

Thanks,

Steve



Steve,

I didn't have any trouble with any specific route. My problem arose when an activity had many cars/locos to change out due to not having the items on my drive. I seem to recall it was when the activity had more than 300 replacements. I think this goes back to when I sent you some items on your flash drive that you had mailed to me.

Jim
sgdavis
QUOTE(jrmeindl @ Sep 17 2008, 12:20 PM) *
Steve,

I didn't have any trouble with any specific route. My problem arose when an activity had many cars/locos to change out due to not having the items on my drive. I seem to recall it was when the activity had more than 300 replacements. I think this goes back to when I sent you some items on your flash drive that you had mailed to me.

Jim


Jim,

Thanks, I will investigate the limit.

Regards,

Steve
jrmeindl
QUOTE(sgdavis @ Sep 17 2008, 03:14 PM) *
Jim,

Thanks, I will investigate the limit.

Regards,

Steve



Steve,

I just saw this today (09/20/20080 at TS posted by Mike Simpson.

("Run time error 6 overflow is a programming error. The programmer did not provide a variable of a type large enough to hold a calculation using the parameters from your rolling stock.

I have had plenty of these in route_Riter, so nice to see someone else gets them as well :-)" per Mike Simpson.)


Jim
sgdavis
QUOTE(jrmeindl @ Sep 20 2008, 09:52 AM) *
Steve,

I just saw this today (09/20/20080 at TS posted by Mike Simpson.

("Run time error 6 overflow is a programming error. The programmer did not provide a variable of a type large enough to hold a calculation using the parameters from your rolling stock.

I have had plenty of these in route_Riter, so nice to see someone else gets them as well :-)" per Mike Simpson.)


Jim


Thanks Jim, misery loves company! Although I understand what causes this error (a value larger than what the variable can hold, or a different type than the variable will hold), I don't know exactly where it is happening. I can easily figure it out by stepping through the code with a debugger, but first, I have to have the same problem on my machine. That usually means using at least the exact same route and activity as the user was using when the problem occurred.

I appreciate your posting this. Whenever I have a problem like that here, I post an update. But when others have it, I have to first figure out what variable it is that's overflowing, and why.

So to all who have this, the more info you can give me, the better. What route, what activity, etc.

Thanks!

Steve
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.