Bug 499952

Summary: System.InvalidCastException: Len
Product: [Mono] Mono: Class Libraries Reporter: Rolf Kvinge <rkvinge>
Component: VB RuntimeAssignee: Rolf Kvinge <rkvinge>
Status: RESOLVED DUPLICATE QA Contact: Mono Bugs <mono-bugs>
Severity: Normal    
Priority: P5 - None    
Version: SVN   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: sample.vb

Description Rolf Kvinge 2009-04-30 22:28:54 UTC
Created attachment 289382 [details]
sample.vb

repro:

vbnc sample.vb
mono sample.exe

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Module1 ---> System.InvalidCastException: Cannot cast from source type to destination type.
  at Microsoft.VisualBasic.Strings.GetSize (System.Object Expression) [0x00000] 
  at Microsoft.VisualBasic.Strings.Len (System.Object Expression) [0x00000] 
  at Module1..cctor () [0x00000] 
  --- End of inner exception stack trace ---
Comment 1 Rolf Kvinge 2009-05-20 07:59:34 UTC
Duplicate.

*** This bug has been marked as a duplicate of bug 505042 ***