[Question] Domain Manager? menu

User Tag List

Results 1 to 4 of 4
  1. #1
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] Domain Manager?

    Hi guys,

    Im using Apoc's Domain Manager which was posted on here.

    The code can be found at http://www.ownedcore.com/forums/worl...ml#post1915992 (.Net Managed Assembly Removal)


    The problem im having is in the
    CurrentDomain_AssemblyResolve
    event.

    On my English OS this works fine. However on my German OS(or any none-english) it fails to load, and results in a Stack Overflow.

    The args that cause the stack overflow are:
    Code:
    mscorlib.resources, Version=4.0.0.0, Culture=de-DE, PublicKeyToken=b77a5c561934e089
    Ive searched here on OC & Google and cant see why.

    Any ideas?

    EDIT: On my English OS if I search for mscorlib.resources it doesn't exist... yet on German it does.
    Last edited by -Ryuk-; 02-03-2012 at 07:25 PM.
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

    [Question] Domain Manager?
  2. #2
    TOM_RUS's Avatar Legendary
    Reputation
    914
    Join Date
    May 2008
    Posts
    699
    Thanks G/R
    0/52
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I had same problem when using it on Windows with Russian locale and decided to hack fix it with:
    Code:
    if (args.Name.Contains("mscorlib.resources"))
        return null;
    in CurrentDomain_AssemblyResolve event handler.

    Proper fix would be according to docs:
    When loading an assembly, the event handler must not use any of the AppDomain.Load or Assembly.Load method overloads that can cause the AssemblyResolve event to be raised recursively, because this can lead to a stack overflow.
    And that bug probably caused by this breaking change:
    Beginning with the .NET Framework 4, the ResolveEventHandler event is raised for all assemblies, including resource assemblies. In earlier versions, the event was not raised for resource assemblies. If the operating system is localized, the handler might be called multiple times: once for each culture in the fallback chain.
    Last edited by TOM_RUS; 02-03-2012 at 07:50 PM.

  3. #3
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TOM_RUS View Post
    I had same problem when using it on Windows with Russian locale and decided to hack fix it with:
    Code:
    if (args.Name.Contains("mscorlib.resources"))
        return null;
    in CurrentDomain_AssemblyResolve event handler.

    Proper fix would be according to docs:
    [quite]
    When loading an assembly, the event handler must not use any of the AppDomain.Load or Assembly.Load method overloads that can cause the AssemblyResolve event to be raised recursively, because this can lead to a stack overflow.
    [/QUOTE]


    I had thought about that... Is it just that one file?
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  4. #4
    Bananenbrot's Avatar Contributor
    Reputation
    153
    Join Date
    Nov 2009
    Posts
    384
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you use the RelativeAssemblyResolver I PM'd you, it loads only those files it can resolve. No Assembly.Load is used, only Assembly.LoadFrom, and if the file doesn't exist in the folder of the currently executing assembly, it just returns null.
    If you don't do any other subscribing and messing around with AssemblyResolve, it should just work.
    For everyone else to profit: #3311249 - Pastie
    Just a static readonly instance in your EntryPoint class and forget about it.

Similar Threads

  1. [Question] Input management from Session 0
    By Jadd in forum WoW Memory Editing
    Replies: 8
    Last Post: 10-21-2013, 02:45 AM
  2. [Question] Object Manager relationships.
    By Twarwizard in forum WoW Memory Editing
    Replies: 2
    Last Post: 09-19-2011, 12:28 PM
  3. Apocs Domain Manager
    By streppel in forum WoW Memory Editing
    Replies: 3
    Last Post: 06-26-2011, 05:38 AM
  4. [Question] Object Manager
    By hestas in forum WoW Memory Editing
    Replies: 11
    Last Post: 10-31-2009, 02:02 PM
  5. Question:Will Blizzard track you through your domain?
    By doomicide in forum WoW Scams Help
    Replies: 6
    Last Post: 07-29-2008, 12:49 PM
All times are GMT -5. The time now is 03:03 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search