AW: [mono-vb] MS.VB.Compilerservices

Jochen Wezel jwezel@compumaster.de
Tue, 20 Jul 2004 11:01:58 +0200


Hi Jambunathan,

Yes, you've got the source of the problem! :)

[root@lwezel Wezel]# mono objtst.exe

Unhandled Exception: System.ArgumentException: Object is not a Boolean.
in <0x0007c> System.Boolean:CompareTo (object)
in <0x001e5> Microsoft.VisualBasic.CompilerServices.ObjectType:ObjTst =
(object,object,bool)
in <0x0004a> M:Main ()

[root@lwezel Wezel]#

Thanking you!

Regards
Jochen

-----Urspr=FCngliche Nachricht-----
Von: mono-vb-admin@lists.ximian.com =
[mailto:mono-vb-admin@lists.ximian.com] Im Auftrag von Jambunathan =
Jambunathan
Gesendet: Dienstag, 20. Juli 2004 08:09
An: mono-vb@lists.ximian.com
Betreff: Re: [mono-vb] MS.VB.Compilerservices

On second thoughts ...
ObjTst typically gets generated for the If statements by MS's vbc.

Here is a simple test case that reproduces the bug. Compile this source =
aginst vbc and execute the MS's exe against mono.

Imports System
Module M
	Sub Main
		Dim B as Boolean =3D true
		Dim O1 as Object =3D B
		Dim O2 as Object =3D Nothing

		If O1 =3D O2 Then
			Console.WriteLine("Equal")
		Else
			Console.WriteLine("Not Equal")
		End If=20
	End Sub
End Module

I have opened a bug in bugzilla
http://bugzilla.ximian.com/show_bug.cgi?id=3D61749.
Btw, any takers for fixing this bug ? Joao, Rob  ...

Could you please confirm that this is the scenario with you as well ?


Regards,
Jambunathan K.


>>> "Jambunathan Jambunathan" <kjambunathan@novell.com> 7/20/2004
11:02:07 AM >>>
> Unfortunality, I cannot resolve where the problem starts in my code=20
> since there is not direct call the ObjectType :(

Howabout doing a "mono --debug whatever.exe". That way you should be =
able to catch the line numbers.

Regards,
Jambunathan K.


>>> "Jochen Wezel" <jwezel@compumaster.de> 7/20/2004 12:53:15 AM >>>
Hi Jambunathan!

Here is a small bug I can report today:

Stack Trace: System.ArgumentException: Object is not a Boolean.
in <0x0007c> System.Boolean:CompareTo (object) in <0x001b6> =
Microsoft.VisualBasic.CompilerServices.ObjectType:ObjTst
(object,object,bool)
in <0x000e4>
CompuMaster.camm.WebManager.WMSystem:InitializeEnvironment
()

Unfortunality, I cannot resolve where the problem starts in my code =
since there is not direct call the ObjectType :(

Thanks!

Regards
Jochen


Here the complete error:

Server error in '/' application

------------------------------------------------------------------------
--------

Description: Error processing request.=20
Error Message: HTTP 500.=20

Stack Trace: System.ArgumentException: Object is not a Boolean.
in <0x0007c> System.Boolean:CompareTo (object) in <0x001b6> =
Microsoft.VisualBasic.CompilerServices.ObjectType:ObjTst
(object,object,bool)
in <0x000e4>
CompuMaster.camm.WebManager.WMSystem:InitializeEnvironment
()
in <0x0001a>
CompuMaster.camm.WebManager.WMSystem:set_CurrentServerIdentString
(string)
in <0x000d7> ASP.cammWebManager_ascx:SetupAdditionalConfiguration () in =
<0x0000e> ASP.cammWebManager_ascx:LoadConfiguration () in <0x00026> =
CompuMaster.camm.WebManager.Controls.cammWebManager:System_Init () in =
<0x0000e> =
CompuMaster.camm.WebManager.Controls.cammWebManager:OnWebManagerInit
(object,System.EventArgs)
in <0x00069> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs)
in <0x00086> System.Web.UI.Control:OnInit (System.EventArgs) in =
<0x0003a> System.Web.UI.UserControl:OnInit (System.EventArgs) in =
<0x00273> System.Web.UI.Control:InitRecursive
(System.Web.UI.Control)
in <0x00185> System.Web.UI.Control:InitRecursive
(System.Web.UI.Control)
in <0x00060> System.Web.UI.Page:InternalProcessRequest () in <0x000c2> =
System.Web.UI.Page:ProcessRequest
(System.Web.HttpContext)
in <0x00359> System.Web.HttpServerUtility:Execute
(string,System.IO.TextWriter,bool)
in <0x000bb> System.Web.HttpServerUtility:Transfer (string,bool) in =
<0x00016> System.Web.HttpServerUtility:Transfer (string) in <0x00028> =
ASP.index_aspx:__RenderTree
(System.Web.UI.HtmlTextWriter,System.Web.UI.Control)
in <0x00069> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_HtmlTextWriter_Control
(System.Web.UI.HtmlTextWriter,System.Web.UI.Control)
in <0x00048> System.Web.UI.Control:RenderChildren
(System.Web.UI.HtmlTextWriter)
in <0x00011> System.Web.UI.Control:Render
(System.Web.UI.HtmlTextWriter)
in <0x0001c> System.Web.UI.Control:RenderControl
(System.Web.UI.HtmlTextWriter)
in <0x00429> System.Web.UI.Page:InternalProcessRequest () in <0x000c2> =
System.Web.UI.Page:ProcessRequest
(System.Web.HttpContext)
in <0x002f3> ExecuteHandlerState:Execute () in <0x00084> =
StateMachine:ExecuteState
(System.Web.HttpApplication/IStateHandler,bool&)

=20
_______________________________________________
Mono-vb mailing list
Mono-vb@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-vb
_______________________________________________
Mono-vb mailing list
Mono-vb@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-vb
_______________________________________________
Mono-vb mailing list
Mono-vb@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-vb