Summary
My excuses, I forgot to make the title more clarifying about this problem.
When I try to run my app, I get an error.
Output window
Fatal VM exception: System.InvalidCastException: Expected Class but got Closure.
at Objo.VM.Value.ThrowInvalidCast(ObjoType expected)
at Objo.VM.Value.get_AsClass()
at Objo.VM.VM.Run(Int32 exitAtFp)
at Objo.VM.VM.Execute(ObjoClosure closure)
at Objo.Host.Desktop.Program.<>c__DisplayClass0_0.<Main>b__5()
<source>:1:2: NothingReferenceException: Undefined variable 'Db1'.
Call stack:
at <script> (<source>:1)
at <script> (<source>:1)
at <script> (App:1)
Errors & Warnings window
[Error] NothingReferenceException: Undefined variable 'Db1'.
When I do an Analyze Solution there are no errors.
Db1 is defined only once and used once in the same method.
Var Db1 As New SQLiteDatabase(Filename)
# Db1.EncryptionKey = modGlobal.cDbKey # No encryption in Objo!
Return Db1
I have no idea why this is happening.
Objo Studio Version
26.6.5
Operating System
Select the operating system(s) affected as tags for this post.
macOS
Steps To Reproduce
Expected Result
Actual Result
Screenshots, Logs, Or Sample Project