This is a migrated thread and some comments may be shown as answers.

Missing .PDB file causes RadGridView crash?

1 Answer 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Russell
Top achievements
Rank 1
Russell asked on 04 Apr 2012, 04:32 PM
Hi,

It appears that if you remove the Telerik.Windows.Controls.GridView.pdb from a project and then run the project in debug mode, an exception is thrown when you try to insert a row into an instance of the RadGridView control.

I'm just concerned about this because our application allows end users to create plug-in components, and some of them do this using Telerik controls, but they don't always provide the .pdb files. Since this is only happening in debug mode, it's probably not an issue, but I am curious why this is happening?

To reproduce:

Create a simple WPF application and add a RadGridView to the main window.

Create a simple data structure, example:

public class MyRecord
{
    public string MyField { get; set; }
}


Bind the grid to an observable collection of that data structure:

//...
public class MyWidget : UserControl
{
    public class MyRecord
    {
        public string MyField { get; set; }
    }
 
    public ObservableCollection<MyRecord> _items = new ObservableCollection<MyRecord>();
 
    public MyWidget()
    {
        InitializeComponent();
 
        this.myRadGridView.ItemsSource = this._items;
    }
}

Build the application in "Debug" mode, and then run it.

You should be able to insert rows into the RadGridView just fine.

Now, go into the output directory for the application and delete this file:

Telerik.Windows.Controls.GridView.pdb

Don't rebuild the application, just run it again, in debug mode.

If you try to insert a row into the grid, the system throws an exception and complains about a data binding object of some sort.

Any idea as to why this is happening? I thought .pdb files were only used in the event that an exception was thrown, so I'm a little unclear as to why RadGridView would crash *because* there is no .pdb file available...

Thanks.

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 05 Apr 2012, 07:36 AM
Hi,

 Can you post the exception stack trace?

Greetings,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
Russell
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or