Skip to content

Commit 996f8d0

Browse files
author
Rubens F. N. da Silva
committed
Add call for device opening
This should prevent errors <NOT OPEN> when the application is running outside the CSP enviroment. e.g. Using the Forgery lib.
1 parent c95b357 commit 996f8d0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cls/Frontier/Method.cls

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,8 @@ Method Invoke(Output methodReturn = "", Output stack As %Stream.Object = "") As
438438
set io = $io
439439
merge methodArguments = ..Arguments
440440
set returnType = ..MethodDescriptor.ReturnType
441-
441+
442+
open $$$NULL
442443
use $$$NULL
443444

444445
new $estack
@@ -453,8 +454,9 @@ Method Invoke(Output methodReturn = "", Output stack As %Stream.Object = "") As
453454
do ##class(Frontier.Exception).CaptureStack(.stack)
454455
set sc = ex.AsStatus()
455456
}
456-
457+
457458
use io
459+
close $$$NULL
458460
return sc
459461
}
460462

0 commit comments

Comments
 (0)