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

#1 AdamSpeight2008   User is offline

  • MrCupOfT
  • member icon

Reputation: 2298
  • View blog
  • Posts: 9,535
  • Joined: 29-May 08

The longest error message you ever seen.

Posted 18 July 2009 - 12:44 AM

Wrote some code in Visual Studio 2010. It wouldn't compile, the error massage was ~6500 characters long!.
Should I post it?
Is This A Good Question/Topic? 0
  • +

Replies To: The longest error message you ever seen.

#2 noorahmad   User is offline

  • Untitled
  • member icon

Reputation: 210
  • View blog
  • Posts: 2,290
  • Joined: 12-March 09

Re: The longest error message you ever seen.

Posted 18 July 2009 - 12:48 AM

are you wish!
Was This Post Helpful? 0
  • +
  • -

#3 firebolt   User is offline

  • D.I.C Lover
  • member icon

Reputation: 93
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: The longest error message you ever seen.

Posted 18 July 2009 - 02:41 AM

:P I think we have a policy where we have to post any error messages. :P

How many lines was the actual program?
Was This Post Helpful? 0
  • +
  • -

#4 Locke   User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 552
  • View blog
  • Posts: 5,624
  • Joined: 20-March 08

Re: The longest error message you ever seen.

Posted 18 July 2009 - 02:00 PM

View PostAdamSpeight2008, on 18 Jul, 2009 - 01:44 AM, said:

Wrote some code in Visual Studio 2010. It wouldn't compile, the error massage was ~6500 characters long!.
Should I post it?


Post it in a codebox...that will cut down the area used. SCROLLBARS FTW. :)
Was This Post Helpful? 0
  • +
  • -

#5 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1663
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

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?
Was This Post Helpful? 0
  • +
  • -

#6 AdamSpeight2008   User is offline

  • MrCupOfT
  • member icon

Reputation: 2298
  • View blog
  • Posts: 9,535
  • Joined: 29-May 08

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
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

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1