Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] so when it calls SetMap on teleport, the old map (old m_currMap) is already deleted?

[DiscordArchive] so when it calls SetMap on teleport, the old map (old m_currMap) is already deleted?

[DiscordArchive] so when it calls SetMap on teleport, the old map (old m_currMap) is already deleted?

Pages (6): Previous 1 2 3 4 5 6 Next
rektbyfaith
Administrator
0
07-14-2024, 01:51 PM
#41
Archived author: Tea • Posted: 2024-07-14T13:51:32.333000+00:00
Original source

`E` is freed and nothing prevents the os from reusing its memory for something else
rektbyfaith
07-14-2024, 01:51 PM #41

Archived author: Tea • Posted: 2024-07-14T13:51:32.333000+00:00
Original source

`E` is freed and nothing prevents the os from reusing its memory for something else

rektbyfaith
Administrator
0
07-14-2024, 01:52 PM
#42
Archived author: Foe • Posted: 2024-07-14T13:52:55.836000+00:00
Original source

But wouldn't it then crash on E being a nullptr? It seems like E still exists, but the eventMgr does not, so it's almost like we're hitting a race condition where parts of the state is closed but others aren't
rektbyfaith
07-14-2024, 01:52 PM #42

Archived author: Foe • Posted: 2024-07-14T13:52:55.836000+00:00
Original source

But wouldn't it then crash on E being a nullptr? It seems like E still exists, but the eventMgr does not, so it's almost like we're hitting a race condition where parts of the state is closed but others aren't

rektbyfaith
Administrator
0
07-14-2024, 01:53 PM
#43
Archived author: Tea • Posted: 2024-07-14T13:53:18.339000+00:00
Original source

no, ofc no
rektbyfaith
07-14-2024, 01:53 PM #43

Archived author: Tea • Posted: 2024-07-14T13:53:18.339000+00:00
Original source

no, ofc no

rektbyfaith
Administrator
0
07-14-2024, 01:53 PM
#44
Archived author: Foe • Posted: 2024-07-14T13:53:19.549000+00:00
Original source

It's weird that E isn't nullptr, but eventMgr is
rektbyfaith
07-14-2024, 01:53 PM #44

Archived author: Foe • Posted: 2024-07-14T13:53:19.549000+00:00
Original source

It's weird that E isn't nullptr, but eventMgr is

rektbyfaith
Administrator
0
07-14-2024, 01:53 PM
#45
Archived author: Tea • Posted: 2024-07-14T13:53:47.971000+00:00
Original source

freeing memory doesnt set all the pointers pointing to it to nullptr
rektbyfaith
07-14-2024, 01:53 PM #45

Archived author: Tea • Posted: 2024-07-14T13:53:47.971000+00:00
Original source

freeing memory doesnt set all the pointers pointing to it to nullptr

rektbyfaith
Administrator
0
07-14-2024, 01:54 PM
#46
Archived author: Foe • Posted: 2024-07-14T13:54:00.833000+00:00
Original source

Oh I see, I understand
rektbyfaith
07-14-2024, 01:54 PM #46

Archived author: Foe • Posted: 2024-07-14T13:54:00.833000+00:00
Original source

Oh I see, I understand

rektbyfaith
Administrator
0
07-14-2024, 01:54 PM
#47
Archived author: Tea • Posted: 2024-07-14T13:54:01.614000+00:00
Original source

eventMgr is only nullptr because you do that in ~Eluna()
rektbyfaith
07-14-2024, 01:54 PM #47

Archived author: Tea • Posted: 2024-07-14T13:54:01.614000+00:00
Original source

eventMgr is only nullptr because you do that in ~Eluna()

rektbyfaith
Administrator
0
07-14-2024, 01:54 PM
#48
Archived author: Foe • Posted: 2024-07-14T13:54:10.203000+00:00
Original source

Yeah, I get you
rektbyfaith
07-14-2024, 01:54 PM #48

Archived author: Foe • Posted: 2024-07-14T13:54:10.203000+00:00
Original source

Yeah, I get you

rektbyfaith
Administrator
0
07-14-2024, 01:59 PM
#49
Archived author: Foe • Posted: 2024-07-14T13:59:16.680000+00:00
Original source

Cleanest fix would probably be to clear elunaEvents earlier in the chain
rektbyfaith
07-14-2024, 01:59 PM #49

Archived author: Foe • Posted: 2024-07-14T13:59:16.680000+00:00
Original source

Cleanest fix would probably be to clear elunaEvents earlier in the chain

rektbyfaith
Administrator
0
07-14-2024, 01:59 PM
#50
Archived author: Foe • Posted: 2024-07-14T13:59:27.596000+00:00
Original source

ie. prior to their map being changed
rektbyfaith
07-14-2024, 01:59 PM #50

Archived author: Foe • Posted: 2024-07-14T13:59:27.596000+00:00
Original source

ie. prior to their map being changed

Pages (6): Previous 1 2 3 4 5 6 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)