MQ2 BUG: CTD when unloading map w/ map open

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

MacroFiend
a grimling bloodguard
a grimling bloodguard
Posts: 662
Joined: Mon Jul 28, 2003 2:47 am

MQ2 BUG: CTD when unloading map w/ map open

Post by MacroFiend » Sat Nov 15, 2003 10:05 pm

Subject pretty much says it all.

Had the map window open with all mapfilter options enabled.

Typed /plugin mq2map unload

Instant CTD.

Haven't looked at how to enable debug spew in MQ2 yet but that is how you should be able to reproduce it.

*edit: Unloaded ok when map window closed but CTD when tried to re-open the map w/o the plugin.

*edit2: with /mapfilter all (hide), could unload mq2map with the window open or closed and not CTD. Also enabled DebugSpew, so spew from loading mq2map until CTD to follow.

Code: Select all

CCommandHook::Detour(/plug mq2map)

LoadMQ2Plugin(mq2map)

MQ2Map Module Loaded

Initializing MQ2Map

AddCommand(/mapfilter,0x2941A90)

AddDetour(0x4FB065,0x2941E60,0x2941040)

Detour success.

WriteChatColor(Plugin 'mq2map' loaded.)

MQ2ChatWnd::OnWriteChatColor(Plugin 'mq2map' loaded.)

MQToSTML(Plugin 'mq2map' loaded.)

CCommandHook::Detour(/mapfil all)

WriteChatColor(All is now set to: hide)

MQ2ChatWnd::OnWriteChatColor(All is now set to: hide)

MQToSTML(All is now set to: hide)

CCommandHook::Detour(/plug mq2map unload)

UnloadMQ2Plugin

Shutting down MQ2Map

RemoveDetour(4FB065)

Detour removed.

MQ2Map Module Unloaded

WriteChatColor(Plugin 'mq2map' unloaded.)

MQ2ChatWnd::OnWriteChatColor(Plugin 'mq2map' unloaded.)

MQToSTML(Plugin 'mq2map' unloaded.)

CCommandHook::Detour(/plug mq2map)

LoadMQ2Plugin(mq2map)

MQ2Map Module Loaded

Initializing MQ2Map

AddCommand(/mapfilter,0x2941A90)

AddDetour(0x4FB065,0x2941E60,0x2941040)

Detour success.

WriteChatColor(Plugin 'mq2map' loaded.)

MQ2ChatWnd::OnWriteChatColor(Plugin 'mq2map' loaded.)

MQToSTML(Plugin 'mq2map' loaded.)

CCommandHook::Detour(/mapfil all)

WriteChatColor(All is now set to: show)

MQ2ChatWnd::OnWriteChatColor(All is now set to: show)

MQToSTML(All is now set to: show)

CCommandHook::Detour(/plug mq2map unload)

UnloadMQ2Plugin

Shutting down MQ2Map

RemoveDetour(4FB065)

Detour removed.

MQ2Map Module Unloaded

WriteChatColor(Plugin 'mq2map' unloaded.)

MQ2ChatWnd::OnWriteChatColor(Plugin 'mq2map' unloaded.)

MQToSTML(Plugin 'mq2map' unloaded.)

MQ2ChatWnd Module Unloaded

MQ2ItemDisplay Module Unloaded

MQ2FPS Module Unloaded

MQ2Labels Module Unloaded
Last edited by MacroFiend on Sat Nov 15, 2003 10:20 pm, edited 1 time in total.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Sat Nov 15, 2003 10:19 pm

ClearMapAllocs() was not getting called on unload. Fixed by calling plugins OnCleanUI before shutdown. Zip updated.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0