lex.db icon indicating copy to clipboard operation
lex.db copied to clipboard

.Net Native Error

Open zharchimage opened this issue 8 years ago • 3 comments

I´m using lex.db to load users from the db in a Windows 10 universal app. Whilst I execute it using the normal compiler everything works perfectly. But when selecting the

Compile with .NET Native tool chain

checkbox in the project-> build properties

I get an exception when calling this method:

var person = _placeDb.LoadByKey<Person>(id);

Unhandled exception at 0x02BC8831 (SharedLibrary.dll) in App10.exe: 0x80004005: Unspecified error.

I cloned the repository added a test app, and the method is failing when compiling in native is:

Add(Allocation.New(node)); in the Gather method of the DataMap.cs class

Do you have any idea why could it be?

Regards.

zharchimage avatar Mar 24 '16 22:03 zharchimage

I work on the .NET Native compiler team and stumbled upon this issue. If it's something you're still interested in getting resolved we'd be happy to help. The fastest way is to shoot us an email at [email protected]. Once we know what's happening it's likely that a small fix can be applied to work around whatever the issue is.

Sorry I didn't wander into it earlier :-(

MattWhilden avatar Jul 15 '16 00:07 MattWhilden

HI Matt,

I will write you guys an email with more details about the project I´m working on and the exceptions.

Regards.

zharchimage avatar Jul 16 '16 08:07 zharchimage

Tom Meschter from MS provided some valuable feedback regarding missing generics in resulting executable.

I hope next week I'll find some time to sort this issue out along with .NET standard support.

demigor avatar Jul 25 '16 11:07 demigor