I am running an analysis window and suddenly I saw this error message. But it does not help me locate the exact line where the problem occurs. Please see attached screenshot.
The analysis window project is just one line of code: #include_once <PATFProcess.afl>
I have windows 7, 64bit
Amibroker 64 bit , v 6.21.0
Run PATFProcess.afl in the Analysis directly instead of #including it. You will get detailed location that way. #include is intended for already tested error-free code not for work-in-progress
There is a reason why I used the #include statement for the file, instead of directly using it in the project. My project involves 4 analysis windows and everytime I open them I have to update with the new code. Marcin gave me the solution to use the #include.
This difficulty, not being able to debug easily the #include files, has made me reorganize my project a couple of times. I wish this was not an issue.
No, you don't need to do that. You can de-couple Analysis project from AFL file and share single AFL file in multiple projects by switching just one option:
Click on the "Details..." button. AFL Formula Editor (with your code) should open. Now click "Verify Syntax" Icon ... You will get detailed information about errors.
"Keep existing AFL file when opening a project" is the general setting for the whole AmiBroker, not for selected Analysis windows.
You have changed it once (on the other PC) and you will not have to do it any more.