TD-20714: ilasm error: warning -- 'instance' added to method's calling

Report TD 5.x and 6.x bugs and possible workarounds.
ggd

TD-20714: ilasm error: warning -- 'instance' added to method's calling

Post by ggd » 16 Aug 2013, 19:15

Hi All!

I migrating a ERP system ctd151 to gtd61.net, and I have some errors. What causes this mistake?

warning -- 'instance' added to method's calling conventionC:\Users\...\AppData\Local\Temp\m5edufoo.051\xmcl.il(162742) :

IL_0052: box [Unify.TD.Runtime.NumberDate]Unify.TD.Runtime.SalSystem.SalDecimal
IL_0053: callvirt void [Unify.TD.Runtime.System]Unify.TD.Runtime.SalSystem.WindowsMsgEventArgs::set_wParam(object) <-- row: 162742
IL_0054: box [Unify.TD.Runtime.NumberDate]Unify.TD.Runtime.SalSystem.SalDecimal

I found this in this topic: http://www.cetix.de/DotNetNews/Thread17 ... _Call.aspx

- Windows7
- .NET framework 3.0, 3.5, 4.0
- GTD 6.1-SP3.NET

ggd

Re: TD-20714: ilasm error: warning -- 'instance' added to method's calling

Post by ggd » 30 Aug 2013, 16:56

I reproduced the mistake in a mini test application. Although the error message is other, than the big ERP system, but the manner of the solution same thing.

Code: Select all

SQLWindows Error Log

 Application File: D:\test.app

--- Begin Error Output ---

Error encountered assembling: test.app(0) : error : syntax error at token ''(class [Unify.TD.Runtime.Syste' in:     IL_004f: newobj   instance void class [Unify.TD.Runtime.Wpf.Windows]Unify.TD.Runtime.Windows.SalColumn/CreateEventHandler::.ctor(object,

--- End Error Output  ---
The mistake comes then when the name of a column begins with two underscore character and there is a message handling under it. That is if I delete one underscore character or I delete it all of the messages handling from under it, will be compiling and running.

Code: Select all

Form Window: frm
    Child Grid: tbl
        Contents
            Column: __col_wrong
                Message Actions
                    On SAM_Create
            Column: _col_good1
                Message Actions
                    On SAM_Create
            Column: __col_good2
                Message Actions
- Windows Server 2008 R2 Standard
- .NET framework 3.5.1, 4.0
- GTD 6.1-SP3.NET fresh install, activated

ps: Only silently ask, there was already anybody, anywhere, anytime, who succesfully migrate a big system (>150 module (exe), more thousand functions (window/dialog), custom DLL-s) to TD6.1-.NET (from ctd151ptf6)?
You do not have the required permissions to view the files attached to this post.

ggd

Re: TD-20714: ilasm error: warning -- 'instance' added to method's calling

Post by ggd » 17 Sep 2013, 16:29

Dear Gupta!

We have roughly 150 modules (exe), ~11250000 Sal Lines, ~7500 functions (form/table windows, dialog boxes) we would like to migrate our code to .NET.
We would like to know on which level you deals with the mentioned problem so that we could consider our further steps.
Formerly, we attached a test program with a complexity of a reactor controller. The test would last only 10 seconds...

We wait for your answer very much (ex.: worksforme) .

best regards

ggd

Re: TD-20714: ilasm error: warning -- 'instance' added to method's calling

Post by ggd » 17 Feb 2014, 14:24

Dear Gupta!

I tested with the new TD version. Unfortunately I have the same problem.

Environment:
- Windows 7 Enterprise 64bit
- .NET framework 3.0, 3.5, 4.0
- TD 6.2-SP1.NET

best regards

VEspinal

Re: TD-20714: ilasm error: warning -- 'instance' added to method's calling

Post by VEspinal » 18 Mar 2014, 22:04

Hi:

Just to let you know that I was able to reproduce the issue and logged a defect TD-20714.

We will keep you informed on any updates.

Thanks for the information.

Regards,
Victor Espinal

Return to “Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 1 guest