System.Reflection.TargetInvocationException in mscorlib.dll

  • Thread starter Thread starter Padpanix
  • Start date Start date
P

Padpanix

Guest
Hi,

I use Vb Express 2010 - .NET Framework 4 Client Profile, OS : Windows 10 version 1909)!

when I do a filter on a bindingsource, I have an error


Dim BDS_DT as bindingsource = nothing
Dim DT as datatable = loadDT(FileName) ' Load DataTable
BDS_DT = New BindingSource(DT,Nothing)
DataGridView1.DataSource = BDS_DT

When I perform an operation on a filter that does not give a result, like :

BDS_DT.Filter = "TYPE = 'FT' AND TYPE ='PLA'"

I have errors of this type which do not crash the program but which slightly slow down the execution at the time of the filter

Une exception de première chance de type 'System.Reflection.TargetInvocationException' s'est produite dans mscorlib.dll
Une exception de première chance de type 'System.ArgumentOutOfRangeException' s'est produite dans System.dll
Une exception de première chance de type 'System.ArgumentOutOfRangeException' s'est produite dans System.Windows.Forms.dll
Une exception de première chance de type 'System.Reflection.TargetInvocationException' s'est produite dans mscorlib.dll
Une exception de première chance de type 'System.ArgumentOutOfRangeException' s'est produite dans System.dll
Une exception de première chance de type 'System.ArgumentOutOfRangeException' s'est produite dans System.Windows.Forms.dll
Une exception de première chance de type 'System.Reflection.TargetInvocationException' s'est produite dans mscorlib.dll
Une exception de première chance de type 'System.ArgumentOutOfRangeException' s'est produite dans System.dll

By displaying all the errors in the CLR.

1548197.png

I do the filter on a string type column and not a date type!

Thanks for your help






Steeve

Continue reading...
 
Back
Top