Hi,
We wrote our own file class with using existing winCC OA class functions and when we name one of our class function as rewind() and use it, the system is allocating immense memory that can shut the system. When we changed the class function's name everything is solved.
I want to report this bug that may help others.
Thanks
rewind() function
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: rewind() function
There is already a CTRL function rewind() existing.
Maybe there is a name conflict and therefore you run into this problem because you are calling a different function.
Best Regards
Leopold Knipp
Senior Support Specialist
Maybe there is a name conflict and therefore you run into this problem because you are calling a different function.
Best Regards
Leopold Knipp
Senior Support Specialist
- ozangor
- Posts:44
- Joined: Thu Sep 22, 2011 2:57 pm
Re: rewind() function
Exactly. Seems like the member function is called recursively and infinitely.
So it is not possible to use a class member function name as an already existing function (if you do not call it from the member, no problems i guess).
I feel like it is time to introduce namespaces, and put those free functions into namespaces.
So it is not possible to use a class member function name as an already existing function (if you do not call it from the member, no problems i guess).
I feel like it is time to introduce namespaces, and put those free functions into namespaces.