
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
well I don't know Why,
but after getting acquainted with this topic & some of my tests, that I will not reproduce now, - I found that such code ONLY
with such use
- shows IF bad pointer occurs...
- the pointer is equal to NULL;
- the object has been deleted using the delete operator.
and if refactor this code for such signature
without CObject* use - it always only throws error "invalid pointer access" (& need some efforts to identify where exactly)... though arrMyClass was inherited from CArrayObject... but only using CObject* as intermediary - in LocalWindow "bad pointer" is seen!... otherwise not.
I don't know why yet, but will prefer to use such a form of checking errors in Debug & Experts_sheet... while will not find more neat way to see bad pointers in CArrayObj in Debug (without just throwing errors)
P.S.
perhaps GetPointer from "this" will be needed if used in class - though
It's also prohibited to pass the pointer as a function argument.