http://bugzilla.novell.com/show_bug.cgi?id=585659
http://bugzilla.novell.com/show_bug.cgi?id=585659#c0 Summary: Compiler Crash with functions Today() & Now() Classification: Mono Product: Mono: Compilers Version: unspecified Platform: All OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basic AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.2) I'm new working with the project Mono. Use Fedora 12 as operating system and trying to load the page that is publish, the compiler sends me several error messages, which correspond to: When I use the following syntax, the Mono compiler crash: If Session("Validator") Is Nothing Then Session("Validator") = Now() The same happens when I use the function Today() with different methods for example: CInt(CDbl(Today().ToOADate)) The error message sent by the compiler is: "Error VBNC30471: Only arrays and methods can have argument lists." We found that the error is produced by the function Today() and Now(), because if we exchange for numeric values, the compiler sends another errors, product of syntax located below on the same page. Reproducible: Always Steps to Reproduce: 1.When trying to load the page. 2. 3. Actual Results: In any aspx page using the function today () in Page_Load sub. Expected Results: We receive the following error: Error VBNC30471: Only arrays and methods can have argument lists. Compiler Error Message: VBNC_CRASH: Visual Basic.Net Compiler version 0.0.0.5914 (Mono 2.4.2 - r) Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved. /tmp/apache-temp-aspnet-0/d35d9679/App_Web_172e3009_1.vb (113,45) : Error VBNC30471: Only arrays and methods can have argument lists. /tmp/apache-temp-aspnet-0/d35d9679/App_Web_172e3009_1.vb (122,109) : Error VBNC30506: Handles clause requires a variable declared with WithEvents. /tmp/apache-temp-aspnet-0/d35d9679/App_Web_172e3009_1.vb (126,109) : Error VBNC30506: Handles clause requires a variable declared with WithEvents. /tmp/apache-temp-aspnet-0/d35d9679/App_Web_172e3009_1.vb (130,109) : Error VBNC30506: Handles clause requires a variable declared with WithEvents... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
