[mono-vb] Detection of the correct overloaded sub

Jochen Wezel jwezel@compumaster.de
Tue, 2 Mar 2004 18:29:24 +0100


This is a multi-part message in MIME format.

------_=_NextPart_001_01C4007B.E8217993
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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>"&Microso=
ft.VisualBasic.Strings.ChrW(10)&"<head><title>Test</title></head>"&Micros=
oft.VisualBasic.Strings.ChrW(10)&"<body>"&Microsoft.VisualBasic.Strings.C=
hrW(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.=20
Error Message: HTTP 500.=20
Stack Trace:=20
System.Exception: Value=3D
<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&)=09




*************************************************************************=
***
*************************************************************************=
***
CompuMaster GmbH
Agentur f=FCr moderne Kommunikation
Jochen Wezel, Multimedia-Programmierung
Rhein-Mosel-Stra=DFe 69, 56281 Emmelshausen, GERMANY
Fon: +49 6747 95084-12 / Fax: +49 6747 95084-50
http://www.compumaster.de eMail: jwezel@compumaster.de
+++ Mitglied im DEUTSCHEN MULTIMEDIA VERBAND d m m v, http://www.dmmv.de =
+++

*************************************************************************=
***
Unsere aktuellen AGBs befinden sich auf unserer Website im Bereich
"Rechtliches"
*************************************************************************=
***

Diese eMail enth=E4lt vertrauliche und/oder rechtlich gesch=FCtzte =
Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt=FCmlich
erhalten haben, informieren Sie bitte sofort den Absender und vernichten =
Sie
diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe =
dieser
Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If =
you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the material in =
this
e-mail is strictly forbidden.
*************************************************************************=
***
*************************************************************************=
***


------_=_NextPart_001_01C4007B.E8217993
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.6944.0">
<TITLE>Detection of the correct overloaded sub</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">I've done some tests with out current =
version of mbas, jay, xsp. We're getting close :)</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Currently, the generated code of my =
sample aspx page contains that line:</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">&nbsp;__output.Write(&quot;&quot;&amp;Microsoft.VisualBasi=
c.Strings.ChrW(10)&amp;&quot;&lt;html&gt;&quot;&amp;Microsoft.VisualBasic=
.Strings.ChrW(10)&amp;&quot;&lt;head&gt;&lt;title&gt;Test&lt;/title&gt;&l=
t;/head&gt;&quot;&amp;Microsoft.VisualBasic.Strings.ChrW(10)&amp;&quot;&l=
t;body&gt;&quot;&amp;Microsoft.VisualBasic.Strings.ChrW(10))</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">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&#8230;</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Jochen</FONT>
</P>

<P><B><FONT COLOR=3D"#FF0000" SIZE=3D6 FACE=3D"Times New Roman">Server =
error in '/' application</FONT></B>
</P>

<P><B><FONT FACE=3D"Times New Roman">Description:</FONT></B> <FONT =
FACE=3D"Times New Roman">Error processing request. </FONT>

<BR><B><FONT FACE=3D"Times New Roman">Error Message:</FONT></B> <FONT =
FACE=3D"Times New Roman">HTTP 500. </FONT>

<BR><B><FONT FACE=3D"Times New Roman">Stack Trace:</FONT></B>=20

<BR><FONT SIZE=3D2 FACE=3D"Courier New">System.Exception: =
Value=3D</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">&lt;html&gt;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">&lt;head&gt;&lt;title&gt;Test&lt;/title&gt;&lt;/head&gt;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">&lt;body&gt;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">&nbsp;---&gt; =
System.FormatException: Invalid format</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">in &lt;0x002b4&gt; =
System.Int32:Parse (string)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">in &lt;0x0001a&gt; =
Microsoft.VisualBasic.CompilerServices.IntegerType:FromString =
(string)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">--- End of inner exception stack =
trace ---</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">in &lt;0x00073&gt; =
Microsoft.VisualBasic.CompilerServices.IntegerType:FromString =
(string)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">in &lt;0x00158&gt; =
ASP.index_aspx:__RenderTree =
(System.Web.UI.HtmlTextWriter,System.Web.UI.Control)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">in &lt;0x0005a&gt; (wrapper =
delegate-invoke) =
System.MulticastDelegate:invoke_void_HtmlTextWriter_Control =
(System.Web.UI.HtmlTextWriter,System.Web.UI.Control)</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Courier New">in &lt;0x00052&gt; =
System.Web.UI.Control:RenderChildren =
(System.Web.UI.HtmlTextWriter)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">in &lt;0x00011&gt; =
System.Web.UI.Control:Render (System.Web.UI.HtmlTextWriter)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">in &lt;0x0001c&gt; =
System.Web.UI.Control:RenderControl =
(System.Web.UI.HtmlTextWriter)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">in &lt;0x0041f&gt; =
System.Web.UI.Page:InternalProcessRequest ()</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">in &lt;0x0008d&gt; =
System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">in &lt;0x00186&gt; =
ExecuteHandlerState:Execute ()</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">in &lt;0x0007e&gt; =
StateMachine:ExecuteState =
(System.Web.HttpApplication/IStateHandler,bool&amp;)<BR>
</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Courier =
New">********************************************************************=
********</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier =
New">********************************************************************=
********</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">CompuMaster GmbH</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">Agentur f=FCr moderne =
Kommunikation</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">Jochen Wezel, =
Multimedia-Programmierung</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier New">Rhein-Mosel-Stra=DFe 69, 56281 =
Emmelshausen, GERMANY</FONT>

<BR><SPAN LANG=3D"fr"><FONT SIZE=3D2 FACE=3D"Courier New">Fon: +49 6747 =
95084-12 / Fax: +49 6747 95084-50</FONT></SPAN>

<BR><SPAN LANG=3D"de"></SPAN><A HREF=3D"http://www.compumaster.de"><SPAN =
LANG=3D"de"><U><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Courier =
New">http://www.compumaster.de</FONT></U></SPAN><SPAN =
LANG=3D"de"></SPAN></A><SPAN LANG=3D"de"></SPAN><SPAN =
LANG=3D"fr"></SPAN><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier =
New"> eMail: jwezel@compumaster.de</FONT></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier New">+++ Mitglied =
im DEUTSCHEN MULTIMEDIA VERBAND d m m v, </FONT></SPAN><A =
HREF=3D"http://www.dmmv.de"><SPAN LANG=3D"de"><U><FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Courier =
New">http://www.dmmv.de</FONT></U></SPAN></A><SPAN LANG=3D"de"><FONT =
SIZE=3D2 FACE=3D"Courier New"> +++</FONT></SPAN>
</P>

<P><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier =
New">********************************************************************=
********</FONT></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier New">Unsere =
aktuellen AGBs befinden sich auf unserer Website im =
Bereich</FONT></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier =
New">&quot;Rechtliches&quot;</FONT></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier =
New">********************************************************************=
********</FONT></SPAN>
</P>

<P><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier New">Diese eMail =
enth=E4lt vertrauliche und/oder rechtlich gesch=FCtzte =
Informationen.</FONT></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier New">Wenn Sie nicht =
der richtige Adressat sind oder diese E-Mail irrt=FCmlich</FONT></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier New">erhalten =
haben, informieren Sie bitte sofort den Absender und vernichten =
Sie</FONT></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier New">diese Mail. =
Das unerlaubte Kopieren sowie die unbefugte Weitergabe =
dieser</FONT></SPAN>

<BR><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Courier New">Mail ist =
nicht gestattet.</FONT></SPAN>
</P>

<P><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Courier New">This e-mail =
may contain confidential and/or privileged information. If =
you</FONT></SPAN>

<BR><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Courier New">are not the =
intended recipient (or have received this e-mail in error)</FONT></SPAN>

<BR><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Courier New">please =
notify the sender immediately and destroy this e-mail.</FONT></SPAN>

<BR><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Courier New">Any =
unauthorized copying, disclosure or distribution of the material in =
this</FONT></SPAN>

<BR><SPAN LANG=3D"en-gb"><FONT SIZE=3D2 FACE=3D"Courier New">e-mail is =
strictly forbidden.</FONT></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier =
New">********************************************************************=
********</FONT></SPAN>

<BR><SPAN LANG=3D"de"><FONT SIZE=3D2 FACE=3D"Courier =
New">********************************************************************=
********</FONT></SPAN>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C4007B.E8217993--