Runtime Instrumentation RRS feed

  • Question

  • Requirement: Without modifying the code of an .net application want to intercept the calls using runtime instrumentation/profiling and control the state based on some rules. For now looking we are looking at  controlling the state of menu and toolbar items.

    Tried exploring profiling, able to intercept the calls but didn't find a way to control the state. For e.g. i want to profile/intercept "System.Windows.Forms.Control.Enabled" and enable or disable the menu/toolbar items based on some rules. 

    Want to know if  runtime instrumentation is possible on .NET Framework?
    Saturday, June 14, 2008 10:55 AM


All replies

  • Check out the result of this Google query.  None of this stuff appears to be done or flexible enough to me.
    Hans Passant.
    • Marked as answer by Bruno Yu Tuesday, June 17, 2008 5:58 AM
    Saturday, June 14, 2008 6:21 PM
  • Thanks Hans Passant.

    Got to know about RAIL (Runtime Assembly Instrumentation Library)( through your Google search query and evaluating the same for runtime instrumentation.
    • Edited by Praveen Kumar D Monday, June 23, 2008 4:46 AM Missed adding link to RAIL library.
    Monday, June 23, 2008 4:45 AM