This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

class "this" gets corrupted

Hello,

I am having a very strange behavior on my project.
I am calling a class method that access a certain atribute. I have debugged the application and on the second method call I have noticed that the attribute address changes. The class this pointer have changed and the atribute update was not accomplished successfully.

Does anyone have noticed this bug?

Regards,
André Moutinho

  • No, we don't have your project, so we obviously can't notice this bug.

    If you do post the source, we might be able to spot the bug in your code - unless you just have too little stack space or are using dynamic memory allocations and have failed to set up a large enough heap.

  • Thanks for your response.

    Unfortunatelly I cannot post the source code. It is very big and has around 200 modules (cpp files). I will try increasinng the stack space. I have noticed this problem by creating a static class firstly. I then have changed to dynamic allocation and the problem did happened again.

    Thanks
    André Moutinho