Joseph Musser

Results 395 comments of Joseph Musser

Awesome! For example, when the handle is managed by a System.Windows.Forms.Control. ```cs var form = new System.Windows.Forms.Form(); User32.GetDC(form.Handle); ``` If `form` is not mentioned below the GetDC statement, a background...

This applies any time there is the potential for a managed object to free a handle which it exposes as an IntPtr rather than a SafeHandle, as Windows Forms does....

There's also the potential for there to be a third-party library that provides a completely separate object model which messes up and exposes IntPtrs instead of SafeHandles, over native handle...

Another thought. If you remove the IntPtr overloads, it becomes painful to use user32 APIs for users solely using your libraries and not Windows Forms. That's where `SafeWindowHandle` overloads in...

Deprecated might be a bit strong. There's been no plan to obsolete it. That's a message the Windows Forms API designers can act on, not p/invoke writers who are forced...

I'm also having infinite recursion issues and I got it well defined and pinned down to a test at #1074. It is caused by a merge changeset having as a...

Same bug? Mine looks like this, using git-tfs 0.29.0 on a project I'm not familiar with. Right before the repeating starts: ``` C7451 = 3cf407a1d29ff9527e83d37c65cdd632a553758f GC Countdown: 192 Looking for...

This is a bug with both [TD (on the right)](https://mermaid.live/edit#pako:eNpNj0EOgyAQRa8ymbX0ACQuqmIP0C7ZTGRaTYsaxEVjvHupYMKsePnvT4YNu8kwSnw5mnt4NHqEMFcoyxKqHOoIdZ5ESJ0KxEWAOpMM2kNT5zYhBLQ5pKQ5OrcI6ugEwAItO0uDCVdu_1Cj79myRhmehtxbox734K2zIc_KDH5yKJ_0WbhAWv10_44dSu9WPqVmoPBjm6z9B8k7RoU) and [LR (on the bottom)](https://mermaid.live/edit#pako:eNpNjzEOgzAMRa9ieSY9QCSGAqFLp3bNYhG3oDaA0jBUiLs3TUCKJz_9Z8tesZsMo8Sno7mH602PEOoMZVlClUOdoM6TBE2CCsRJgDqSDNqoqWObEALaHPakiTOXBCrOBMACLTtLgwlXrv9Qo-_ZskYZWkPupVGPW_CW2ZBnZQY_OZQPen-4QFr8dP-OHUrvFj6kZqDwsd2t7QfO_UaL) in these cases. ![image](https://user-images.githubusercontent.com/8040367/174341926-02efd71c-4c29-4c91-ac1c-b3a5f82aa778.png) ![image](https://user-images.githubusercontent.com/8040367/174341988-3225afa1-9f63-4a14-9362-c5be1dbe6db9.png)

I discovered that `--filter SomeName`, where SomeName is not compared via `=`, `!=` or `~`, means the same as `FullyQualifiedName ~ SomeName` [(docs)](https://github.com/Microsoft/vstest-docs/blob/master/docs/filter.md). Updated Possibility 3 above.

@CharliePoole If you have an alternative proposal, would you mind sharing it here?