History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-29382
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Eugene Pasynkov
Reporter: Vladimir Reshetnikov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

VS2005 crashes

Created: 05 Oct 06 12:14   Updated: 18 Oct 06 15:34
Component/s: Code Analysis
Fix Version/s: 2.5
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. File RaceCondition.rar (7 kb)


Build: 263
Fixed in build: 300


 Description  « Hide
I have the following code (experimental, just to test some ReSharper's features):
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Threading;

class Stuff<T>
{}

public class Foo
{
    public static void Throw<TException, UException>() 
        where TException : UException, new()
        where UException : TException
    {
        try
        {
            throw new TException();
        }
        catch(System.Object ex)
        {
            Equals(null, null);
        }
        catch(UException tex)
        {
            
        }
    }
}

class  Program
{
    static void Main()
    {
        Foo.Throw<Exception, Exception>();
    }
}

When I position the caret onto 'try' keyword and press Ctrl+W (Extend Selection), VS2005 crashes. If I uninstall ReSharper, everything is OK.
See attachment for full solution.



 All   Comments   Work Log   Change History      Sort Order:
Vladimir Reshetnikov - 05 Oct 06 15:03
Further simplification shows that ReSharper cannot correctly handle circular dependency of generic parameters.
Simply copy-paste the following code in code editor:
class Foo
{
    static void Throw<TException, UException>() 
        where TException : UException
        where UException : TException
    {
        try
        {
        }
        catch(UException ex)
        {
        }
    }
}

VS2005 will crash.


Sergey Coox - 10 Oct 06 11:21
ctrl+W has nothing in common with the problem, ReSharper craches as daemon starts.