Page 1 of 1

Access violation reading location

Posted: Mon Jun 17, 2019 12:03 am
by Mohamed.Fekry
I tried to add some parameters in the ElastoDyn_Registry.txt. However, after building the code and starting the exe file, it crashed at different lines in ModMesh.f90. In contrary, the code runs normally if i comment the lines containing that parameters in ElastoDyn_Registry.txt.
1.png
1.png (335.51 KiB) Viewed 898 times

2.png
2.png (340.97 KiB) Viewed 898 times

Reg.png
Reg.png (37.94 KiB) Viewed 889 times

Re: Access violation reading location

Posted: Mon Jun 17, 2019 1:35 am
by Mohamed.Fekry
(Cont'd)
This is a screenshot of the parameters that I want to add
Reg.png
Reg.png (2.03 MiB) Viewed 892 times

Debug.JPG
Debug.JPG (228.36 KiB) Viewed 887 times

Re: Access violation reading location

Posted: Mon Jun 17, 2019 8:40 pm
by Bonnie.Jonkman
I suspect that the code isn't linking with the new compiled version of the FAST_types.f90/ElastoDyn_Types.f90 files, which is what causes the access violations. (I have had this problem before, myself. I am not sure if this is a Visual Studio problem or if there is something wrong in the way the FAST project files are set up.)

Any time you change the Registry input files in FAST, I would suggest "cleaning" the FAST project file (highlight the "FAST" project, right click, select "project only->Clean Only FAST"), and then building again. You can also just do a "clean" or "rebuild" of the entire solution, but it takes a while to build everything.

Re: Access violation reading location

Posted: Mon Jun 17, 2019 9:22 pm
by Mohamed.Fekry
Thank you for consideration
it works