Wrote some code in Visual Studio 2010. It wouldn't compile, the error massage was ~6500 characters long!.
Should I post it?
The longest error message you ever seen.What's the longest you've seen.
Page 1 of 1
5 Replies - 7944 Views - Last Post: 18 July 2009 - 11:23 PM
Replies To: The longest error message you ever seen.
#2
Re: The longest error message you ever seen.
Posted 18 July 2009 - 12:48 AM
are you wish!
#3
Re: The longest error message you ever seen.
Posted 18 July 2009 - 02:41 AM
How many lines was the actual program?
#4
Re: The longest error message you ever seen.
Posted 18 July 2009 - 02:00 PM
#5
Re: The longest error message you ever seen.
Posted 18 July 2009 - 02:03 PM
I gotta see this Adam. The longest I've ever seen was about 1500 characters long (Maybe not quite 1500 but it was very long).
What the hell did you do to generate such a long error anyways?
What the hell did you do to generate such a long error anyways?
#6
Re: The longest error message you ever seen.
Posted 18 July 2009 - 11:23 PM
Can't figure out the what I did to get the 6500 one.(As it crash a few seconds later and it wasn't saved)
I was doing timing performance on the parallel extensions.
The Code
Resulting in a 2401 Char Error Message.
4669 Char Error Message, No Code (Crash again)
The 6500 char was more or less the same.
I was doing timing performance on the parallel extensions.
The Code
Module Module1
Dim pp2 As IPermutator(Of String)
Sub Main()
Dim a() As String = {"A", "B", "C", "D", "E", "F"}
Dim i As New List(Of String) From {"A", "B", "C", "D"}
pp2 = New IPermutator(Of String)(i, New Func(Of String, String, Integer)(Function(_A As String, _B As String) _A.CompareTo(_B)), Function() "")
Dim sw As New Diagnostics.Stopwatch
sw.start()
Threading.Parallel.ForEach(pp2, Sub(_R As IList(Of String))
Console.WriteLine("")
Threading.Parallel.ForEach(_R, Sub(_RE As String)
Console.Write(String.Format("{0} ", _RE))
End Sub
)
End Sub
)
sw.Stop()
Debug.WriteLine(String.Format("{0} ms", sw.ElapsedMilliseconds))
Console.ReadKey()
End Sub
Resulting in a 2401 Char Error Message.
Error 1 Overload resolution failed because no accessible 'ForEach' can be called with these arguments: 'Public Shared Function ForEach(Of TSource)(source As System.Collections.Concurrent.OrderablePartitioner(Of TSource), body As System.Action(Of TSource, System.Threading.ParallelLoopState, Long)) As System.Threading.ParallelLoopResult': Data type(s) of the type parameter(s) cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error. 'Public Shared Function ForEach(Of TSource)(source As System.Collections.Concurrent.Partitioner(Of TSource), body As System.Action(Of TSource, System.Threading.ParallelLoopState)) As System.Threading.ParallelLoopResult': Data type(s) of the type parameter(s) cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error. 'Public Shared Function ForEach(Of TSource)(source As System.Collections.Concurrent.Partitioner(Of TSource), body As System.Action(Of TSource)) As System.Threading.ParallelLoopResult': Data type(s) of the type parameter(s) cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error. 'Public Shared Function ForEach(Of TSource)(source As System.Collections.Generic.IEnumerable(Of TSource), body As System.Action(Of TSource, System.Threading.ParallelLoopState, Long)) As System.Threading.ParallelLoopResult': Data type(s) of the type parameter(s) cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error. 'Public Shared Function ForEach(Of TSource)(source As System.Collections.Generic.IEnumerable(Of TSource), body As System.Action(Of TSource, System.Threading.ParallelLoopState)) As System.Threading.ParallelLoopResult': Data type(s) of the type parameter(s) cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error. 'Public Shared Function ForEach(Of TSource)(source As System.Collections.Generic.IEnumerable(Of TSource), body As System.Action(Of TSource)) As System.Threading.ParallelLoopResult': Data type(s) of the type parameter(s) cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error. C:\Users\Adam Speight\Documents\Visual Studio 10\Projects\Test_Ipmutator(Of T)\Test_Ipmutator(Of T)\Module1.vb 9 14 Test_Ipmutator(Of T)
4669 Char Error Message, No Code (Crash again)
Error 1 Overload resolution failed because no accessible 'ForEach' can be called with these arguments: 'Public Shared Function ForEach(Of System.Collections.Generic.IList(Of String))(source As System.Collections.Concurrent.OrderablePartitioner(Of System.Collections.Generic.IList(Of String)), body As System.Action(Of System.Collections.Generic.IList(Of String), System.Threading.ParallelLoopState, Long)) As System.Threading.ParallelLoopResult': Value of type 'Test_Ipmutator_Of_T_.IPermutator(Of String)' cannot be converted to 'System.Collections.Concurrent.OrderablePartitioner(Of System.Collections.Generic.IList(Of String))'. 'Public Shared Function ForEach(Of System.Collections.Generic.IList(Of String))(source As System.Collections.Concurrent.OrderablePartitioner(Of System.Collections.Generic.IList(Of String)), body As System.Action(Of System.Collections.Generic.IList(Of String), System.Threading.ParallelLoopState, Long)) As System.Threading.ParallelLoopResult': Nested sub does not have a signature that is compatible with delegate 'System.Action(Of System.Collections.Generic.IList(Of String), System.Threading.ParallelLoopState, Long)'. 'Public Shared Function ForEach(Of System.Collections.Generic.IList(Of String))(source As System.Collections.Concurrent.Partitioner(Of System.Collections.Generic.IList(Of String)), body As System.Action(Of System.Collections.Generic.IList(Of String), System.Threading.ParallelLoopState)) As System.Threading.ParallelLoopResult': Value of type 'Test_Ipmutator_Of_T_.IPermutator(Of String)' cannot be converted to 'System.Collections.Concurrent.Partitioner(Of System.Collections.Generic.IList(Of String))'. 'Public Shared Function ForEach(Of System.Collections.Generic.IList(Of String))(source As System.Collections.Concurrent.Partitioner(Of System.Collections.Generic.IList(Of String)), body As System.Action(Of System.Collections.Generic.IList(Of String), System.Threading.ParallelLoopState)) As System.Threading.ParallelLoopResult': Nested sub does not have a signature that is compatible with delegate 'System.Action(Of System.Collections.Generic.IList(Of String), System.Threading.ParallelLoopState)'. 'Public Shared Function ForEach(Of System.Collections.Generic.IList(Of String))(source As System.Collections.Concurrent.Partitioner(Of System.Collections.Generic.IList(Of String)), body As System.Action(Of System.Collections.Generic.IList(Of String))) As System.Threading.ParallelLoopResult': Value of type 'Test_Ipmutator_Of_T_.IPermutator(Of String)' cannot be converted to 'System.Collections.Concurrent.Partitioner(Of System.Collections.Generic.IList(Of String))'. 'Public Shared Function ForEach(Of System.Collections.Generic.IList(Of String))(source As System.Collections.Concurrent.Partitioner(Of System.Collections.Generic.IList(Of String)), body As System.Action(Of System.Collections.Generic.IList(Of String))) As System.Threading.ParallelLoopResult': Nested sub does not have a signature that is compatible with delegate 'System.Action(Of System.Collections.Generic.IList(Of String))'. 'Public Shared Function ForEach(Of System.Collections.Generic.IList(Of String))(source As System.Collections.Generic.IEnumerable(Of System.Collections.Generic.IList(Of String)), body As System.Action(Of System.Collections.Generic.IList(Of String), System.Threading.ParallelLoopState, Long)) As System.Threading.ParallelLoopResult': Nested sub does not have a signature that is compatible with delegate 'System.Action(Of System.Collections.Generic.IList(Of String), System.Threading.ParallelLoopState, Long)'. 'Public Shared Function ForEach(Of System.Collections.Generic.IList(Of String))(source As System.Collections.Generic.IEnumerable(Of System.Collections.Generic.IList(Of String)), body As System.Action(Of System.Collections.Generic.IList(Of String), System.Threading.ParallelLoopState)) As System.Threading.ParallelLoopResult': Nested sub does not have a signature that is compatible with delegate 'System.Action(Of System.Collections.Generic.IList(Of String), System.Threading.ParallelLoopState)'. 'Public Shared Function ForEach(Of System.Collections.Generic.IList(Of String))(source As System.Collections.Generic.IEnumerable(Of System.Collections.Generic.IList(Of String)), body As System.Action(Of System.Collections.Generic.IList(Of String))) As System.Threading.ParallelLoopResult': Nested sub does not have a signature that is compatible with delegate 'System.Action(Of System.Collections.Generic.IList(Of String))'. C:\Users\Adam Speight\Documents\Visual Studio 10\Projects\Test_Ipmutator(Of T)\Test_Ipmutator(Of T)\Module1.vb 16 5 Test_Ipmutator(Of T)
The 6500 char was more or less the same.
This post has been edited by AdamSpeight2008: 19 July 2009 - 08:46 AM
Page 1 of 1

New Topic/Question
Reply



MultiQuote




|