Re: C++ wrappers
Posted: Fri Apr 15, 2016 3:27 pm
Hi All,
For information.
I use classes from wrapper in my own classes. I create my classes using new(). Because memory allocated don't initialized with zero, I had some problems with used timers and other. I had unpredictable behavior of my program.
I have added in wrapper in constructors memset(&data, 0, sizeof(data)) for all private data. And had resolved all of my issues related with wrapper.
As I understand wrapper mostly use with allocation in global memory which was initialized with zero.
Currently i use this wrapper and it covers all my needs.
Thanks.
For information.
I use classes from wrapper in my own classes. I create my classes using new(). Because memory allocated don't initialized with zero, I had some problems with used timers and other. I had unpredictable behavior of my program.
I have added in wrapper in constructors memset(&data, 0, sizeof(data)) for all private data. And had resolved all of my issues related with wrapper.
As I understand wrapper mostly use with allocation in global memory which was initialized with zero.
Currently i use this wrapper and it covers all my needs.
Thanks.