Giter Club home page Giter Club logo

Comments (5)

Andrettin avatar Andrettin commented on September 28, 2024

Thanks, this helps a lot. So the issue wasn't with "final" being true, and the line the report points to is this one in unit.cpp (607):

delete[] Variable;

from wyrmgus.

Szunti avatar Szunti commented on September 28, 2024

The memory in #10 looks different though, so maybe it's two different bug.

in #10:

0x48ff130:  0x59000000  0x59000000  0x00000021  0x00000000
0x48ff140:  0x0c4e5d60  0x00000000  0x5d9fbb78  0x00007fc4
0x48ff150:  0x00000000  0x00000000  0x0488ccd0  0x00000000
0x48ff160:  0x04ec5670  0x00000000  0x04eca210  0x00000000
0x48ff170:  0x04ec74b0  0x00000000  0x04ec83d0  0x00000000
0x48ff180:  0x0c4fbee0  0x00000000  0x04ec92f0  0x00000000
0x48ff190:  0x0c4f6070  0x00000000  0x04852cb0  0x00000000
0x48ff1a0:  0x0c5678f0  0x00000000  0x0594bca0  0x00000000
0x48ff1b0:  0x04851670  0x00000000  0x0502d000  0x00000000
0x48ff1c0:  0x0502ecd0  0x00000000  0x04ec6590  0x00000000

And here:

0xc16b480:  0x0000014e  0x00000000  0xff2f0100  0x00000000
0xc16b490:  0x00000000  0xff2e0000  0x000000ff  0x00000054
0xc16b4a0:  0xff2f0001  0x00000000  0x00000000  0xff2c0000
0xc16b4b0:  0x00000000  0x00000000  0xff2b0000  0x00000000
0xc16b4c0:  0x00000000  0xff2a0000  0x00000000  0x00000000
0xc16b4d0:  0xff290000  0x00000000  0x00000000  0xff2a0000
0xc16b4e0:  0x00000000  0x00000000  0xff280000  0x00000000
0xc16b4f0:  0x00000000  0xff270000  0x00000000  0x00000000
0xc16b500:  0xff260000  0x00000009  0x00000000  0xff160000
0xc16b510:  0x00000007  0x00000000  0xff250000  0x00000005

from wyrmgus.

Szunti avatar Szunti commented on September 28, 2024

It seems that #10 is the delete[] Variable line too. (Using the disassembly).

from wyrmgus.

Szunti avatar Szunti commented on September 28, 2024

May I ask how was it fixed, or was it?

from wyrmgus.

Andrettin avatar Andrettin commented on September 28, 2024

Instead of copying variables, I copied their attributes (Enable, Value, etc.) instead, when inheriting from a parent. This should fix the bug, but let me know if it persists and I will reopen the issue.

from wyrmgus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.