Allow to reliably disable gc for objects created with the debugger

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P3
    • tbd
    • Affects Version/s: 22
    • Component/s: core-svc
    • None

      Currently if only one thread is suspended in the debugged process,
      the resulting object of:
         any InvokeMethod
         ClassType.NewInstance
         ArrayType.NewInstance
         CreateString
      commands may be garbage collected immediately. And even the subsequent DisableCollection command for such objects will already fail.
      This leads to ugly workarounds like doing:
         CreateString - DisableCollection
      in a loop to get the new string mirror reliably.

      That would be great to have a reliable solution for such cases.

            Assignee:
            Chris Plummer
            Reporter:
            Egor Ushakov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: