Fatal Exception / Unknown Exception menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    Viano's Avatar Active Member
    Reputation
    37
    Join Date
    May 2008
    Posts
    172
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fatal Exception / Unknown Exception

    Hello there,

    I've run into a strange problem. My applications injects via EasyHook and hooks EndScene via Apoc's WhiteMagic. I open a separated thread for the GUI. As soon as I close the GUI all hooks are removed in Form_Closing() via WhiteMagic.Detours.RemoveAll(). The code for EndScene is as follows.

    Code:
    public static EndScene() 
    {
    // nothing else here
    ObjectManager.Instance.Pulse();
    CallOriginalEndScene();
    }
    Any ideas what the reason might be for WoW crashing after the window form is closed with fatal exception/unknown exception?

    If I comment out ObjectManager.Instance.Pulse() WoW is not crashing anymore.

    I mean if EndScene is unhooked what can possibly go wrong in WoW's process?
    Viano

    Fatal Exception / Unknown Exception
  2. #2
    amadmonk's Avatar Active Member
    Reputation
    124
    Join Date
    Apr 2008
    Posts
    772
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Race condition?
    Don't believe everything you think.

  3. #3
    Viano's Avatar Active Member
    Reputation
    37
    Join Date
    May 2008
    Posts
    172
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, maybe. But why if I am not changing data from other threads. It is EndScene that executes everything.
    Viano

  4. #4
    amadmonk's Avatar Active Member
    Reputation
    124
    Join Date
    Apr 2008
    Posts
    772
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Consider what happens if your EndScene hook code becomes invalid before you remove the hook: WoW might start running (or BE running) the hook at the same time, and crash.

    Without seeing your code it's just a SWAG, but in my experience most "unload" type crashes boil down to some race condition or another.

    Edit: well, if they're not just something dumb like forgetting to remove a hook or something. But I'm assuming that that's not what's happening here, since that would be boring
    Don't believe everything you think.

  5. #5
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I simply set a bool in my EndScene class that indicates it should shut down at the next frame. Then at the frame, it first calls the original end scene and stores the return value - then it disposes some objects and removes the detour. Finally it returns the stored return value.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

Similar Threads

  1. [Fatal] [Program]: Mooege terminating because of unhandled exception.
    By FlexoBG in forum Diablo 3 Emulator Servers
    Replies: 7
    Last Post: 12-28-2014, 10:05 PM
  2. Remove all doors! except VC
    By Darg in forum World of Warcraft Model Editing
    Replies: 34
    Last Post: 06-05-2012, 06:36 AM
  3. Replies: 2
    Last Post: 05-01-2012, 08:51 PM
  4. Night Elf -> Blood Elf Successful except for one problem...
    By grampa5000 in forum World of Warcraft Model Editing
    Replies: 6
    Last Post: 09-06-2006, 01:32 PM
All times are GMT -5. The time now is 05:07 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search