rewind() function

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
3 posts • Page 1 of 1
shokkul
Posts:37
Joined: Mon Feb 25, 2019 8:50 am

rewind() function

Post by shokkul »

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

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: rewind() function

Post by leoknipp »

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

ozangor
Posts:44
Joined: Thu Sep 22, 2011 2:57 pm

Re: rewind() function

Post by ozangor »

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. :)

3 posts • Page 1 of 1