[mono-vb] "Internal compiler error" and then "Unexpected error: Argument is out of range."
Rolf Bjarne Kvinge
rolf at xamarin.com
Thu Jan 23 23:43:18 UTC 2014
Hi Cris,
I enabled Option Strict On in Visual Studio and got a lot of compiler
errors:
D:\Documentos\Rolf\Xamarin\TestVB\ApplicationEvents.vb(26) : error BC30574:
Option Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(3) : error BC30209: Option
Strict On requires all variable declarations to have an 'As' clause.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(4) : error BC30209: Option
Strict On requires all variable declarations to have an 'As' clause.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(10) : error BC30209: Option
Strict On requires all variable declarations to have an 'As' clause.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(78) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(86) : error BC30512: Option
Strict On disallows implicit conversions from 'Object' to
'System.Collections.Specialized.StringCollection'.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(115) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(151) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(177) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(202) : error BC30512: Option
Strict On disallows implicit conversions from 'String' to 'Integer'.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(206) : error BC30512: Option
Strict On disallows implicit conversions from 'String' to 'Integer'.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(295) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(402) : error BC30512: Option
Strict On disallows implicit conversions from 'String' to 'Double'.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(403) : error BC30512: Option
Strict On disallows implicit conversions from 'String' to 'Double'.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(404) : error BC30512: Option
Strict On disallows implicit conversions from 'String' to 'Double'.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(407) : error BC30512: Option
Strict On disallows implicit conversions from 'String' to 'Integer'.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(412) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(412) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(492) : error BC30512: Option
Strict On disallows implicit conversions from 'String' to 'Double'.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(493) : error BC30512: Option
Strict On disallows implicit conversions from 'String' to 'Double'.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(494) : error BC30512: Option
Strict On disallows implicit conversions from 'String' to 'Double'.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(497) : error BC30512: Option
Strict On disallows implicit conversions from 'String' to 'Integer'.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(502) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(502) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(518) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(532) : error BC30512: Option
Strict On disallows implicit conversions from 'String' to 'Double'.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(540) : error BC30512: Option
Strict On disallows implicit conversions from 'String' to 'Double'.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(552) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(556) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(558) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(619) : error BC32013: Option
Strict On disallows operands of type Object for operator '<>'. Use the 'Is'
operator to test for object identity.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(619) : error BC32013: Option
Strict On disallows operands of type Object for operator '<>'. Use the 'Is'
operator to test for object identity.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(681) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(682) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(772) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(772) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(842) : error BC32013: Option
Strict On disallows operands of type Object for operator '='. Use the 'Is'
operator to test for object identity.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(844) : error BC32013: Option
Strict On disallows operands of type Object for operator '='. Use the 'Is'
operator to test for object identity.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(849) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(849) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(869) : error BC32013: Option
Strict On disallows operands of type Object for operator '<>'. Use the 'Is'
operator to test for object identity.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(962) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(963) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(1000) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(1001) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(1002) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(1002) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(1004) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(1005) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(1005) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\Form1.vb(1028) : error BC30512: Option
Strict On disallows implicit conversions from 'String' to 'Integer'.
D:\Documentos\Rolf\Xamarin\TestVB\MessageBoxAutoClose.vb(30) : error
BC30512: Option Strict On disallows implicit conversions from 'Double' to
'Integer'.
D:\Documentos\Rolf\Xamarin\TestVB\RESTQuery.vb(53) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\RESTQuery.vb(66) : error BC30574: Option
Strict On disallows late binding.
D:\Documentos\Rolf\Xamarin\TestVB\RESTQuery.vb(68) : error BC30512: Option
Strict On disallows implicit conversions from 'Integer' to 'Boolean'.
Did you enable it for the correct project?
Rolf
On Wed, Jan 22, 2014 at 2:43 PM, cris70 <criguada+mono at gmail.com> wrote:
> Rolf,
> today I had time (at last!) to try you suggestion.
>
> I set "option strict ON" in visual studio and then tried to rebuild my
> solution. Result: it was built without a problem, no errors, no warnings.
>
> Could you be so kind as to tell me what it is in my code that is giving
> trouble to the mono vb compiler?
> You talked about late bindings, which I do recall I have been using (but
> I'm
> not sure this was the project in which I used it), but since VStudio is not
> complaining I'm not sure about which lines of code you're talking about.
>
> Thank you in advance.
>
> Bye
> Cris
>
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Internal-compiler-error-and-then-Unexpected-error-Argument-is-out-of-range-tp4661737p4661766.html
> Sent from the Mono - VB mailing list archive at Nabble.com.
> _______________________________________________
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb
>
--
* Microsoft and Xamarin Partner Globally. Learn more.
<http://blog.xamarin.com/microsoft-and-xamarin-partner-globally/>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-vb/attachments/20140124/012bd776/attachment.html>
More information about the Mono-vb
mailing list