Bonjour à toutes et tous !

J'essaie de remplir un DataGrid avec une basse de données SQLite. Base de données : "Tintin.db" Table "alim"

J'obtiens une erreur de division par zéro.
Ce qui est étrange, c'est que ce n'est pas systématique.
Lorsque je fais des modifications anodines dans mon code, par exemple je change le nom d'une variable, le DataGrid s'affiche bien avec ses données.
Puis si je relance, l'erreur réapparait.

J'espère que vous pourrez m'éclairer.

Code XAML :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<Window x:Class="MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApp3"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="293*"/>
            <ColumnDefinition Width="20*"/>
            <ColumnDefinition Width="487*"/>
        </Grid.ColumnDefinitions>
        <Button x:Name="Button1" Content="Button" HorizontalAlignment="Left" Margin="68,62,0,0" VerticalAlignment="Top" Height="78" Width="183"/>
        <DataGrid x:Name="DataGrid1" AutoGenerateColumns="True" Grid.Column="2" Margin="26,62,25,51" />
    </Grid>
</Window>
Code VB.NET :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Imports System.Data
Imports System.Xml
Imports Devart.Common
Imports Devart.Data.SQLite
 
Class MainWindow
 
    Private Sub Button1_Click(sender As Object, e As RoutedEventArgs) Handles Button1.Click
 
        Dim chaineDeConnexion As String = "Data Source=C:\tintin.db"
        Dim conn As SQLiteConnection
        conn = New SQLiteConnection(chaineDeConnexion)
        conn.Open()
 
 
        Dim commande As New SQLiteCommand With {
            .CommandText = "SELECT * FROM alim",
            .Connection = conn
        }
        Dim adaptateur As New SQLiteDataAdapter(commande)
 
 
 
        Dim dt As DataTable
        dt = New DataTable("alim")
 
        adaptateur.Fill(dt)
 
        DataGrid1.ItemsSource = dt.DefaultView
 
 
 
    End Sub
End Class
Console de débogage :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
'WpfApp3.exe' (CLR v4.0.30319: DefaultDomain)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: DefaultDomain)*: Chargé 'C:\Users\mail\source\repos\WpfApp3\WpfApp3\bin\Debug\WpfApp3.exe'. Les symboles ont été chargés.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresentationCore.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\Remote Debugger\x86\Runtime\Microsoft.VisualStudio.Debugger.Runtime.Desktop.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
Pas à pas détaillé*: pas à pas principal dans le code non-utilisateur 'WpfApp3.Application..ctor'
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
Pas à pas détaillé*: pas à pas principal dans le code non-utilisateur 'WpfApp3.Application.InitializeComponent'
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_fr_b77a5c561934e089\mscorlib.resources.dll'. Le module a été généré sans symboles.
Pas à pas détaillé*: pas à pas principal dans le code non-utilisateur 'WpfApp3.MainWindow..ctor'
Pas à pas détaillé*: pas à pas principal dans le code non-utilisateur 'WpfApp3.MainWindow.InitializeComponent'
Pas à pas détaillé*: pas à pas principal dans le code non-utilisateur 'WpfApp3.MainWindow.System_Windows_Markup_IComponentConnector_Connect'
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
Pas à pas détaillé*: pas à pas principal dans le code non-utilisateur 'WpfApp3.MainWindow.set_Button1'
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.Aero2\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.Aero2.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
Pas à pas détaillé*: pas à pas principal dans le code non-utilisateur 'WpfApp3.MainWindow.set_DataGrid1'
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.resources\v4.0_4.0.0.0_fr_31bf3856ad364e35\PresentationFramework.resources.dll'. Le module a été généré sans symboles.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemXml\v4.0_4.0.0.0__b77a5c561934e089\PresentationFramework-SystemXml.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\PresentationCore.resources\v4.0_4.0.0.0_fr_31bf3856ad364e35\PresentationCore.resources.dll'. Le module a été généré sans symboles.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'c:\program files\microsoft visual studio\2022\community\common7\ide\commonextensions\microsoft\xamldiagnostics\Framework\x86\Microsoft.VisualStudio.DesignTools.WpfTap.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\UIAutomationProvider\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationProvider.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization.resources\v4.0_4.0.0.0_fr_b77a5c561934e089\System.Runtime.Serialization.resources.dll'. Le module a été généré sans symboles.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\assembly\GAC_MSIL\Devart.Data.SQLite\6.3.21.0__09af7300eec23701\Devart.Data.SQLite.dll'. Le module a été généré sans symboles.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\assembly\GAC_MSIL\Devart.Data\6.0.21.0__09af7300eec23701\Devart.Data.dll'. Le module a été généré sans symboles.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Data.resources\v4.0_4.0.0.0_fr_b77a5c561934e089\System.Data.resources.dll'. Le module a été généré sans symboles.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemData\v4.0_4.0.0.0__b77a5c561934e089\PresentationFramework-SystemData.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
'WpfApp3.exe' (CLR v4.0.30319: WpfApp3.exe)*: Chargé 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Transactions.resources\v4.0_4.0.0.0_fr_b77a5c561934e089\System.Transactions.resources.dll'. Le module a été généré sans symboles.
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Exception non prise en charge</Description><AppDomain>WpfApp3.exe</AppDomain><Exception><ExceptionType>System.DivideByZeroException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Tentative de division par zéro.</Message><StackTrace>   à System.Windows.Controls.VirtualizingStackPanel.MeasureOverrideImpl(Size constraint, Nullable`1&amp;amp; lastPageSafeOffset, List`1&amp;amp; previouslyMeasuredOffsets, Nullable`1&amp;amp; lastPagePixelSize, Boolean remeasure)
   à System.Windows.Controls.VirtualizingStackPanel.MeasureOverride(Size constraint)
   à System.Windows.Controls.Primitives.DataGridRowsPresenter.MeasureOverride(Size constraint)
   à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   à System.Windows.UIElement.Measure(Size availableSize)
   à System.Windows.ContextLayoutManager.UpdateLayout()
   à System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   à System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   à System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   à System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   à System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   à System.Windows.Threading.DispatcherOperation.InvokeImpl()
   à System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   à MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   à MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   à System.Windows.Threading.DispatcherOperation.Invoke()
   à System.Windows.Threading.Dispatcher.ProcessQueue()
   à System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
   à MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
   à MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   à System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   à MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   à MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&amp;amp; msg)
   à System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   à System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   à System.Windows.Application.RunDispatcher(Object ignore)
   à System.Windows.Application.RunInternal(Window window)
   à System.Windows.Application.Run(Window window)
   à System.Windows.Application.Run()
   à WpfApp3.Application.Main()</StackTrace><ExceptionString>System.DivideByZeroException: Tentative de division par zéro.
   à System.Windows.Controls.VirtualizingStackPanel.MeasureOverrideImpl(Size constraint, Nullable`1&amp;amp; lastPageSafeOffset, List`1&amp;amp; previouslyMeasuredOffsets, Nullable`1&amp;amp; lastPagePixelSize, Boolean remeasure)
   à System.Windows.Controls.VirtualizingStackPanel.MeasureOverride(Size constraint)
   à System.Windows.Controls.Primitives.DataGridRowsPresenter.MeasureOverride(Size constraint)
   à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   à System.Windows.UIElement.Measure(Size availableSize)
   à System.Windows.ContextLayoutManager.UpdateLayout()
   à System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   à System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   à System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   à System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   à System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   à System.Windows.Threading.DispatcherOperation.InvokeImpl()
   à System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   à MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   à MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   à System.Windows.Threading.DispatcherOperation.Invoke()
   à System.Windows.Threading.Dispatcher.ProcessQueue()
   à System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
   à MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
   à MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   à System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   à MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   à MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&amp;amp; msg)
   à System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   à System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   à System.Windows.Application.RunDispatcher(Object ignore)
   à System.Windows.Application.RunInternal(Window window)
   à System.Windows.Application.Run(Window window)
   à System.Windows.Application.Run()
   à WpfApp3.Application.Main()</ExceptionString><DataItems><Data></Data></DataItems></Exception></TraceRecord>
Une exception non gérée du type 'System.DivideByZeroException' s'est produite dans PresentationFramework.dll
Tentative de division par zéro.
 
Document incorporé « System.Windows.Controls\VirtualizingStackPanel.cs » extrait dans « C:\Users\mail\AppData\Local\Temp\.vsdbgsrc\2214e491cd32bdcf1e729fca34a021635c623b31ac15e43059e2835744c9c8e2\VirtualizingStackPanel.cs »