Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LRTA Search - Fix issue Pendulum is not found #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

venetsia
Copy link

Issue is:
Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException: Could not find file 'C:\Users\User\RiderProjects\ActressMas\ActressMAS v3.0\Source Code and Examples\Examples\E03 LRTA Search\bin\Debug\Pendulum.grx'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
File Pendulum.grx and Pendulum.grx are not found when running LRTA Search so in order to fix it in a try and catch we include the full path.
The code is done so when ran from a different machine it will work.

Issue is:
Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException: Could not find file 'C:\Users\User\RiderProjects\ActressMas\ActressMAS v3.0\Source Code and Examples\Examples\E03 LRTA Search\bin\Debug\Pendulum.grx'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
File Pendulum.grx and Pendulum.grx are not found when running LRTA Search so in order to fix it in a try and catch we include the full path. 
The code is done so when ran from a different machine it will work.
@venetsia
Copy link
Author

Fix issue for LRTA Search

@venetsia
Copy link
Author

After adding this code the issue disappeared and I was able to run the code without any issues. I think it is useful to have it working for everyone as it took me a while to see where the file is actually being tried to read. It is in MapAgent.cs (ActressMAS v3.0/Source Code and Examples/Examples/E03 LRTA Search/MapAgent.cs) so changing anything in this file with the try and catch phrase will not affect any of the other examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant