New Version, new Trouble

Hi, with new 9.1 Oxygene cannot compile my application anymore.
With 8.x no problems at all.

It stops in global.asax:

Schweregrad Code Beschreibung Projekt Datei Zeile Unterdrückungszustand
Fehler (E3) “implementation” or interface section members (types or methods) expected D:\Prism 2015\ODSeasyNet\Global.asax 1
Fehler (E1) equals (=) expected, got open parenthesis D:\Prism 2015\ODSeasyNet\Global.asax 1
Fehler (E1) period (.) expected, got semicolon (:wink: D:\Prism 2015\ODSeasyNet\Global.asax 1
Fehler (E1) equals (=) expected, got assignment (:=) D:\Prism 2015\ODSeasyNet\Global.asax 1
Fehler (E12) Class member expected but ““begin”” found D:\Prism 2015\ODSeasyNet\Global.asax 1
Fehler (E1) colon (:slight_smile: expected, got period (.) D:\Prism 2015\ODSeasyNet\Global.asax 1
Fehler (E1) colon (:slight_smile: expected, got period (.) D:\Prism 2015\ODSeasyNet\Global.asax 1
Fehler (E1) equals (=) expected, got open parenthesis D:\Prism 2015\ODSeasyNet\Global.asax 1
Fehler (E51) Implementation for method “method Application_Start(sender: System.Object; e: System.EventArgs)” is missing D:\Prism 2015\ODSeasyNet\Global.asax 15
Fehler (E1) semicolon (:wink: expected, got period (.) D:\Prism 2015\ODSeasyNet\Global.asax 34
Fehler (E259) Duplicate identifier “fi” D:\Prism 2015\ODSeasyNet\Global.asax 34
Fehler (E1) semicolon (:wink: expected, got period (.) D:\Prism 2015\ODSeasyNet\Global.asax 35
Warnung (W24) Code after final “end.” ignored C:\Users\vdb\AppData\Local\Temp\Temporary ASP.NET Files\root\b46fc311\79d6355b\App_global.asax.gwzpcdy-.0.pas 36
Warnung (N1) Previous declaration was here D:\Prism 2015\ODSeasyNet\Global.asax 33

Code attached:

<%@ Application Language=“Oxygene” %>
<%@ Import Namespace=“System.Diagnostics” %>
<%@ Import Namespace=“System.Collections.Generic” %>
<%@ Import Namespace=“asthenis.utils” %>
<%@ Import Namespace=“System.Globalization” %>
<%@ Import Namespace=“System.Threading” %>

<%@ Import Namespace=“System.Reflection” %>
<%@ Import Namespace=“System.Configuration” %>
<%@ Import Namespace=“System.Web.Configuration” %>

a complete test case would be appreciated.

Cannot give you complete case, as huge application with many additional Dlls.

Global.asax attached

Mit freundlichen Grüssen

Marcus van den Bergh

Geschäftsführer

asthenis GmbH

ah! Looks like we regressed some syntax. In your method:

method Application_Start(sender: Object; e: EventArgs);
    var  sect : HttpRuntimeSection;
            t : &Type;
            oRequestValidationMode : System.Reflection.PropertyInfo;
  begin

Move the vars after begin:

method Application_Start(sender: Object; e: EventArgs);
  begin
    var  sect : HttpRuntimeSection;
    var t : &Type;
    var oRequestValidationMode : System.Reflection.PropertyInfo;

I can’t promise a fix for this, as I need to discuss options with my colleagues first.

Hi Carlo,

OK, I will try. Will come back to you if (doesn’t) work

Cheers

Marcus

1 Like

OK, this seems to work.

But loads of other problems, e.g. inc on int32 properties does not work anymore:

inc(ListeRecord.UICC_1);

Schweregrad

Code

Beschreibung

Projekt

Datei

Zeile

Unterdrückungszustand

Fehler

(E111) Variable expected

D:\Prism 2015\ODSeasyNet\AuswertungNachsorgematrix2011.aspx.pas

861

With var ListeRecord : MatrixRecord := new MatrixRecord;

With

type MatrixRecord = public class

private

FAnzahlPrimaerPatImFollowUp : system.Int32;

public

property JahrErstdiagnose : System.Int32;

property AnzahlPrimaerPat : System.Int32;

property AnzahlPrimaerPatImFollowUp : System.Int32 read FAnzahlPrimaerPatImFollowUp write FAnzahlPrimaerPatImFollowUp;

property UICC_1 : System.Int32;

property UICC_2 : System.Int32;

property UICC_3 : System.Int32;

property UICC_4 : System.Int32;

property UICC_KEIN : System.Int32;

property PatMitMalignerVorerkrankung : System.Int32;

property DatenKrebsregister : System.Int32;

property DatenAndereQuelle : System.Int32;

property KeineRueckmeldung : System.Int32;

property NachsorgeQuote : System.Single;

property PatTumorfrei : System.Int32;

property PatNichtTumorfrei : System.Int32;

property Rezidiv : System.Int32;

property Lymphknoten : System.Int32;

property Fernmetastasen : System.Int32;

property Zweitkarzinome : System.Int32;

property VerstTumorbedingt : System.Int32;

property VerstNichtTumorbedingt : System.Int32;

end;

OK, bad coding, bad was working before

Cheers

Hi Carlo,

after a few changes it runs perfect.

Thanks

Mit freundlichen Grüssen

Marcus van den Bergh

Geschäftsführer

asthenis GmbH

cool. Glad to hear that.