Unregister_message within the function callback
I am hooking user msg ClCorpse and unhooking it through the function callback but i am having an issue afterwards with hooking the function, the question is, is it safe to unhook message handler inside the function callback or outside?
|
Re: Unregister_message within the function callback
What issue are you having?
I vaguely remember a few years ago I reported a crash to Arkshine when using unregister_message inside the message hook directly. I think it was fixed, but as I said, it was a long time ago so I don't properly remember. So, are you using 1.8.2? If so, try delaying the unregister_message call with a 0.1 task. |
Re: Unregister_message within the function callback
I am using
AMX Mod X 1.10.0.5417 When i am unregistering a message out side the function callback i get alot of crashes, no idea why, but i think it might to do with unregistering the message while execution which ruins the iteration, and makes an infinite loop or somthing. but if i use the unregistering_message within the callback function of register_message the crashes goes away they stop. But if i use it that way, i get an issues of the hook not being hooked even tho i hooked it, the function callback gets called one time then it stops getting called. WHY? that's what i am trying to figure it out. Also can you inform me what is m_Forwards max size? |
Re: Unregister_message within the function callback
Bunp
|
| All times are GMT -4. The time now is 21:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.