# Oxygene 10 gives an internal error on some aspects code

**URL:** https://talk.remobjects.com/t/oxygene-10-gives-an-internal-error-on-some-aspects-code/17638
**Category:** Oxygene
**Created:** [October 12, 2018, 11:07am UTC](https://talk.remobjects.com/t/oxygene-10-gives-an-internal-error-on-some-aspects-code/17638 "2018-10-12T11:07:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jeroenvandezan](https://talk.remobjects.com/user_avatar/talk.remobjects.com/jeroenvandezan/32/8216_2.png) [@jeroenvandezan](https://talk.remobjects.com/u/jeroenvandezan)
#### Post date: [October 12, 2018, 11:07am UTC](https://talk.remobjects.com/t/oxygene-10-gives-an-internal-error-on-some-aspects-code/17638/1 "2018-10-12T11:07:56Z")

</div>

Remobjects Elements 10.0.0.2331 Visual Studio 2017 Community

- Unzip the included zip file:

[OxygeneAspects.zip](https://talk.remobjects.com/uploads/default/original/2X/f/f7a1f3c23ac8ab7bf6b9c930bc754781ee8ca38d.zip) (1.4 MB)

- Open the “PrismStandardAspects.sln” solution in Visual Studio 2017
- Compile  
 → you get this compiler error:  
(E0) Internal error: System.NullReferenceException: Object reference not set to an instance of an object.  
at RemObjects.Oxygene.Code.AssignmentStatementTransform.ResolveStatement(ScopeInfo aScope, AssignmentStatement assignmentStatement)  
at RemObjects.Oxygene.Code.Compiler.NewResolveExpressionAndStatement.VisitStatement(ScopeInfo aScope, Statement element)  
at RemObjects.Oxygene.Code.BeginStatementTransform.ResolveStatement(ScopeInfo aScope, BeginStatement beginStatement)  
at RemObjects.Oxygene.Code.Compiler.NewResolveExpressionAndStatement.VisitStatement(ScopeInfo aScope, Statement element)  
at RemObjects.Oxygene.Code.AnonymousMethodExpressionTransform.ResolveAnonymousMethod(ScopeInfo aScope, AnonymousMethodExpression anonymousMethodExpression, BaseType aFixedDelegate, IList`1 aUnresolvedMethodArguments, Boolean aSkipReset, Boolean aNoEscape) at RemObjects.Oxygene.Code.AnonymousMethodExpressionTransform.SelectAnonymousMethod(ScopeInfo aScope, AnonymousMethodExpression anonymousMethodExpression, BaseType aFixedDelegate, IList`1 aUnresolvedMethodArguments, Boolean aSkipReset, Boolean aNoEscape)  
at RemObjects.Elements.Cirrus.AspectInfo.FixAnonymousMethodToStatement(Compiler Caller, ScopeInfo aScope, AnonymousMethodExpression aMethod, Boolean aAuto)  
at RemObjects.Oxygene.Code.Compiler.Compiler.AnonSelectCompatibleParameter(ScopeInfo aScope, BaseType SelfType, IList`1 GenPar, Argument& Par, IMethodInfo aMeth, IParamInfo B, BaseType ParType) at RemObjects.Oxygene.Code.Compiler.Compiler.FindBestMatch(IPosition aErrorPos, String aID, ScopeInfo aScope, BaseType aSelfType, FindBestMatchFlags aFlags, ResultList aRestList, MutableInvokeExpression aParams, Func`1 aAlternative)  
at RemObjects.Oxygene.Code.CallExpressionTransform.ResolveExpression(ScopeInfo aScope, CallExpression incall, CallMode aCM)  
at RemObjects.Oxygene.Code.Compiler.NewResolveExpressionAndStatement.VisitExpression(ScopeInfo aScope, Expression element)  
at RemObjects.Oxygene.Code.AssignmentStatementTransform.ResolveStatement(ScopeInfo aScope, AssignmentStatement assignmentStatement)  
at RemObjects.Oxygene.Code.Compiler.NewResolveExpressionAndStatement.VisitStatement(ScopeInfo aScope, Statement element)  
at RemObjects.Oxygene.Code.BeginStatementTransform.ResolveStatement(ScopeInfo aScope, BeginStatement beginStatement)  
at RemObjects.Oxygene.Code.Compiler.NewResolveExpressionAndStatement.VisitStatement(ScopeInfo aScope, Statement element)  
at RemObjects.Oxygene.Code.IfStatementTransform.ResolveStatement(ScopeInfo aScope, IfStatement ifStatement)  
at RemObjects.Oxygene.Code.Compiler.NewResolveExpressionAndStatement.VisitStatement(ScopeInfo aScope, Statement element)  
at RemObjects.Oxygene.Code.BeginStatementTransform.ResolveStatement(ScopeInfo aScope, BeginStatement beginStatement)  
at RemObjects.Oxygene.Code.Compiler.NewResolveExpressionAndStatement.VisitStatement(ScopeInfo aScope, Statement element)  
at RemObjects.Oxygene.Code.Compiler.Compiler.ResolveMethodBody(ScopeInfo aScope, IMethodImplementation aMethod)  
at RemObjects.Oxygene.Code.Compiler.Compiler.\<\>c\_\_DisplayClass40.b\_\_5(IParsedType aType)  
at RemObjects.Oxygene.Code.Compiler.Compiler.ForAllInternalTypes(Action`1 aAt)  
at RemObjects.Oxygene.Code.Compiler.Compiler.ResolveMembers() Prism.StandardAspects D:\Repositories\GSD\Thunderbolt\Software\Common\SubRepositories\oxygeneaspects\trunk\Source\Prism.StandardAspects\DependencyPropertyAttribute.pas 78

Extra issue: if you double click on the E0 error in the error list to make it jump to the code, VS will completely hang up (Both VS2017 and VS2015)

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [October 12, 2018, 11:10am UTC](https://talk.remobjects.com/t/oxygene-10-gives-an-internal-error-on-some-aspects-code/17638/2 "2018-10-12T11:10:39Z")

</div>

Thanks, logged as bugs://81219 (IDE)

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [October 12, 2018, 11:10am UTC](https://talk.remobjects.com/t/oxygene-10-gives-an-internal-error-on-some-aspects-code/17638/3 "2018-10-12T11:10:41Z")

</div>

Thanks, logged as bugs://81220 (Compiler)

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [October 12, 2018, 11:19am UTC](https://talk.remobjects.com/t/oxygene-10-gives-an-internal-error-on-some-aspects-code/17638/4 "2018-10-12T11:19:05Z")

</div>

bugs://81220 got closed with status fixed.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [October 12, 2018, 11:42am UTC](https://talk.remobjects.com/t/oxygene-10-gives-an-internal-error-on-some-aspects-code/17638/5 "2018-10-12T11:42:45Z")

</div>

bugs://81219 got closed with status fixed.
