If I declare a multi-dimensional arrays of objects and resize it, the constructor of the objects are not called properly, please check the attached example. I have to overcome it by using an object pointer and create the object using new
I was working on my multi-currency program and requires NZDUSD price feed and realise Metaquote does not provide this feed. So I switch my development to fxcm and found that the price stopped at the last time I login (on 2010.9.24 20:55).
I have raised the quicksearch problem in CList and build 350 has fixed it. However, why you didnt also check the quicksearch in all the array libraries? Quicksearch they also use the old algo in CList and fail! CList::QuickSearch
In CList, when freemode is set to false, my program is responsible to free the objects and it did according. void CList::Clear() { m_free_mode= true ; GetFirstNode(); while (m_data_total!= 0 )
Rosh, I have encountered issues with the latest build 346 when the classes in standard library was not changed correctly resulting in wasted efforts on my side to debug on programs working before.
After addition of an object to CList , m_data_sort should be set to false whenever object is added or inserted so that caller can invoke sorting before searching. This flag was properly set in previous build
Please add one more macro substitution for __CLASS__, this is very useful when I am just interested in the classname instead of classname::functionname (right now I can only use __FUNCTION__ )
I realised in build 346, freemode is defaulted to false for CList and true for CArrayObj . This is confusing. They were all defaulted to true in previous build. Can you change it back all to true
I use CArrayObj extensively, very often I mix dynamically created objects and automatic created objects, CArrayObj delete the content without checking the pointer type. To avoid this, I have to turn off freemode at the expense of creating a lot
Does anyone have any idea how to trace the program to find out which objects are not deleted? I got a few undeleted objects in my EA after running Strategy tester . Thanks
I would like to request a feature to dump out the stack trace after abort (when array out of index or zero divide ). This is especially useful when an error happened in a common routine to trace the caller
I like MT5 very much, especially on the debugger. But right now it is slow and unstable, so in the meantime, I ported my MT4 codes over to MT5 and able to use the debugger. For most parts I can use functions to encapsulate the differences
I have a requirement to use stack in my indicator. Stack, as most of us know, is FIFO ADT with Push and Pop operation. Question is: How do I write a stack that can handle generic types? i.e., it should be able to Push and Pop
My indicator uses vertical lines drawn on the chart to determine the start and end dates use to compute instead of specifying them through the input parameters. This is more intuitive for user to drag the vertical lines to specific the
I have encountered the following compilation error: "[" - too many arrays I reduced the number of arrays declared as global variables it compliled ok yesterday. Today, I added more functions to my #include file, it gives me the same error