E0: Internal error: System.NullReferenceException

Hi Team,

While building the project we are getting an error, E0: Internal error: System.NullReferenceException: Object reference not set to an instance of an object.
Below attached whole stack trace.

When we click on the error it goes to Remobjects.Elements.targets file.
So we are not able to find which line of code/file we are getting this error.
Could you please help us. We are ready to share the remote session if necessary.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\RemObjects Software\Elements\RemObjects.Elements.targets(53,3): error E0: Internal error: System.NullReferenceException: Object reference not set to an instance of an object.
3> at D.VisitExpression(Expression a)
3> at D.f(Expression a)
3> at D.VisitIfStatement(IfStatement a)
3> at D.VisitStatement(Statement a)
3> at D.VisitBeginStatement(BeginStatement a)
3> at D.VisitStatement(Statement a)
3> at RemObjects.Oxygene.Code.BaseVisitor.VisitScopeStatement(ScopeStatement element)
3> at D.VisitScopeStatement(ScopeStatement a)
3> at D.VisitStatement(Statement a)
3> at E.a(IMutableMethodImplementation a)
3> at RemObjects.Oxygene.Code.CombinedParsedType.ForAllMethods(Func`2 action)
3> at E.b(IMutableParsedType a)
3> at E.g()
3> at E.a(Stream a)
3> at E.GenerateExecutable()
3> at RemObjects.Oxygene.Code.Compiler.Compiler.GenerateExecutable()
3> at RemObjects.Oxygene.Code.Compiler.Compiler.Compile()
3> ← Phase Generating Output failed.
3> ← Target Echoes failed compiling.
3> ← Task Compile failed for adato_scheduler, took 7,2855s (7.336s).
3> ← Task RemObjects.EBuild.Elements.ElementsBuildProject failed for adato_scheduler, took 0,0000s (7.346s).
3> ← Project adato_scheduler failed, took 7.346s.
3> Project ‘adato_scheduler’ failed to build.
3> Solution ‘adato_scheduler’ failed to build project ‘adato_scheduler’.
3> ← Task RemObjects.EBuild.BuildSolution failed for adato_scheduler, took 7,3485s (7.348s).
3> D: Saving XML details to D:\adato_webapp_oxygene\adato_scheduler\obj\Debug\adato_scheduler.xml.
3> Output Item(s): FinalOutput=
3> Output Item(s): FinalOutputForReferencing=
3>Done building project “adato_scheduler.elements” – FAILED.

Thank you!

Hi,

I apologizes for this inconvenience. Any chance we could see the project, so we can look into this? you can post int here or send it privately via DM or to support@remobjects.com. thanx!

That is “normal” for certain internal errors. these are by definition unexpected compiler bugs, and might not always happen in a place that can, at the time they occur, be traced back to a specific place in the code.

Hi Team,

For the application we sent an email.

Thankyou!

1 Like

Logged as bugs://E25165.

Hi Team,

That’s great you found the issue hopefully you will resolve it very soon!

Mean while can you give me some hint for which line/function/file of code making issue so I can remove that line of code and make progress?

Thankyou!

Hello Team,

Can you please provide any help on code? Please!

Thankyou!

Once the compiler team had a chance to look at the bug and figure out whats causing it, yes.

bugs://E25165 was closed as fixed.

It’s fixed. Friday’s build fixes it, but it was caused by the {$IFDEF’d] initialization/finalization sections.

1 Like

Thankyou Team, For such quick help!

2 Likes