Jump to content
  • 0

[SOLVED] Heap Corruption Detected


eduardoxmenezes

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.01
  • Content Count:  35
  • Reputation:   5
  • Joined:  04/10/20
  • Last Seen:  

Hello all!

Does anybody know about fixing heap corruption error? (picture attached). I don't actually understand what that is. Found this error as a follow-up from my post at 

, as I already have made many edits mostly at mob.cpp, as well as on mob_ai_hard, mob_ai_lazy, etc.  Slaveclone with skills are working so far, and I limit the max number of it.  Then all of sudden, (maybe due to char's job I chose?), this crashes. I could ignore this error once, but not more.

So, in which cpp file should I edit more? 

Thanks!

karni.PNG

karni2.PNG

Edited by eduardoxmenezes
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.01
  • Content Count:  35
  • Reputation:   5
  • Joined:  04/10/20
  • Last Seen:  

Update:

Although I thought this was caused by music skill of Clown, or spirit skill of Champion, the debugger says it is caused by deletion of md after it's dead. So, I double-filter this out and does nothing when dead, only for my slaveclone.

unit.cpp --> unit_free function --> BL_MOB case --> 

// Heap corrupt
            if (mob_is_clone(md->mob_id)) {
                if (md->special_state.clone > 0) {   //slaveclone
                    // ShowMessage("heap?\n");
                } else mob_clone_delete(md);         //regular mob
            }

Have a nice day!

Edited by eduardoxmenezes
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...