I have exported few API from the C++ DLL created using ADK. I can see these APIs in the AFL Formula Editor. I can also call those functions, but what I see is that this function is getting called continuously from the AFL program. Below is the code
_SECTION_BEGIN( "TestDLL" );
i = DLLIndicatorInit();
Plot(i, "i", colorBlue, styleThick);
Here I see that the 'i' being plotted is getting incremented. The logic written in the DLL API is to return a number when it is called and increment that number if the API is called again.
But this is undesirable, as I have called the API only once.
Thanks in advance.