[mono-vb] Detection of the correct overloaded sub

A Rafael D Teixeira rafaelteixeirabr@hotmail.com
Wed, 03 Mar 2004 13:08:08 -0300


Please Jochen, open a bugzilla for this...

Thanks

Rafael "Monoman" Teixeira
Mono Hacker since 16 Jul 2001 - http://www.go-mono.org/
MonoBrasil Founding Member - Membro Fundador do MonoBrasil 
http://monobrasil.softwarelivre.org
English Blog: http://monoblog.blogspot.com/
Brazilian Portuguese Blog: http://monoblog.weblogger.terra.com.br/


>From: "Jochen Wezel" <jwezel@compumaster.de>
>To: <mono-vb@lists.ximian.com>
>Subject: [mono-vb] Detection of the correct overloaded sub
>Date: Tue, 2 Mar 2004 18:29:24 +0100
>
>I've done some tests with out current version of mbas, jay, xsp. We're 
>getting close :)
>
>Currently, the generated code of my sample aspx page contains that line:
>  
>__output.Write(""&Microsoft.VisualBasic.Strings.ChrW(10)&"<html>"&Microsoft.VisualBasic.Strings.ChrW(10)&"<head><title>Test</title></head>"&Microsoft.VisualBasic.Strings.ChrW(10)&"<body>"&Microsoft.VisualBasic.Strings.ChrW(10))
>
>This results in following error (I've added the output of the value in the 
>exception message for debugging purposes). It seem for me to be a problem 
>of the correct detection, which of the overloaded methods should be used: 
>__output then tries to use that one with parameter type Int32 and tries to 
>convert the parameter (the string) to an Int32 which must fail...
>
>Jochen
>
>Server error in '/' application
>
>Description: Error processing request.
>Error Message: HTTP 500.
>Stack Trace:
>System.Exception: Value=
><html>
><head><title>Test</title></head>
><body>
>  ---> System.FormatException: Invalid format
>in <0x002b4> System.Int32:Parse (string)
>in <0x0001a> Microsoft.VisualBasic.CompilerServices.IntegerType:FromString 
>(string)
>--- End of inner exception stack trace ---
>
>in <0x00073> Microsoft.VisualBasic.CompilerServices.IntegerType:FromString 
>(string)
>in <0x00158> ASP.index_aspx:__RenderTree 
>(System.Web.UI.HtmlTextWriter,System.Web.UI.Control)
>in <0x0005a> (wrapper delegate-invoke) 
>System.MulticastDelegate:invoke_void_HtmlTextWriter_Control 
>(System.Web.UI.HtmlTextWriter,System.Web.UI.Control)
>in <0x00052> 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 <0x0041f> System.Web.UI.Page:InternalProcessRequest ()
>in <0x0008d> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
>in <0x00186> ExecuteHandlerState:Execute ()
>in <0x0007e> StateMachine:ExecuteState 
>(System.Web.HttpApplication/IStateHandler,bool&)

_________________________________________________________________
MSN Messenger: instale grátis e converse com seus amigos. 
http://messenger.msn.com.br