Bug 21266 - NotImplementedException in LightCompiler on iOS when using RemObjects
Summary: NotImplementedException in LightCompiler on iOS when using RemObjects
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: General (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2014-07-11 14:50 UTC by Chris Hamons
Modified: 2014-11-10 04:51 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Chris Hamons 2014-07-11 14:50:07 UTC
According to the customer on desk case 77809 the following line won't work on iOS

var list = await fDataModule.DataAdapter.LoadListAsync(from x in fDataModule.DataAdapter.GetTable<AERZTE>() select x );

but this will

ar list = await fDataModule.DataAdapter.LoadListAsync(from x in fDataModule.DataAdapter.GetTable<AERZTE>()
select new {x.AdresseID,x.ArztID, x.Name ...} );

The exception attached shows

Unhandled Exception:
System.NotImplementedException: The requested feature is not implemented.
  at Microsoft.Scripting.Interpreter.LightCompiler.CompileMemberInitExpression (System.Linq.Expressions.Expression expr) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/LightCompiler.cs:1535 
  at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush (System.Linq.Expressions.Expression expr) [0x002a7] in /Developer/MonoTouch/Source/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/LightCompiler.cs:1663 
  at Microsoft.Scripting.Interpreter.LightCompiler.Compile (System.Linq.Expressions.Expression expr) [0x00008] in /Developer/MonoTouch/Source/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/LightCompiler.cs:1732 
  at Microsoft.Scripting.Interpreter.LightCompiler.CompileTop (System.Linq.Expressions.LambdaExpression node) [0x00055] in /Developer/MonoTouch/Source/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/LightCompiler.cs:221 

which is here:

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "expr")]
        private void CompileMemberInitExpression(Expression expr) {
            throw new System.NotImplementedException();
        }

These are generally due to lack of JIT, but mareks suggested filing a bug to look into anyway.
Comment 1 Miha Markic 2014-11-07 12:06:31 UTC
Same here when using CsvHelper. Could be due to the iOS restrictions?

Note You need to log in before you can comment on or make changes to this bug.