-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closing of OMCSession #62
Comments
@christiankral to delete a session you have to use |
I tried the following:
The third line causes an error message:
|
@christiankral , It seems there is a problem with Julia parser when parsing the results from omc, please disable the parser like below
|
OK. the option
|
@arun3688 Is the option |
@christiankral Well the immediate solution is to use |
Hi OliWard,
From the error message i can see that you are using old version of OMJulia,
please update your OMJulia package with the latest master and perform the
test.
regards
arun
…On Tue, Feb 14, 2023 at 3:35 PM Oli Ward ***@***.***> wrote:
@arun3688 <https://github.com/arun3688> Apologies that this is an old
thread but I am also encountering issues closing OMCSessions. Using sendExpression(omc,
"quit()") produces ERROR: OMJulia.Parser.ParseError as @christiankral
<https://github.com/christiankral> posted above. However, when I try sendExpression(omc,
"quit()", parsed=false), I get a method error:
ERROR: MethodError: no method matching sendExpression(::OMJulia.OMCSession, ::String; parsed=false)
Closest candidates are:
sendExpression(::Any, ::Any) at ~/.julia/packages/OMJulia/ZLXEs/src/OMJulia.jl:1012 got unsupported keyword argument "parsed"
Stacktrace:
[1] test()
@ Main.OMJ_V2 ./REPL[53]:15
[2] top-level scope
@ REPL[54]:1```
—
Reply to this email directly, view it on GitHub
<#62 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUNPJO6FYKRPZLBQE3IOQDWXOJ23ANCNFSM5YMM4OLA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @arun3688, Thank you for your quick reply. My issue stopped when I restarted my Julia session but I have also updated OMJulia since, thanks for pointing that out! |
When I run perform batch processes based on OMJulia, several hundret calls of
OMCSession
are performed.After that I have many abandonded processes which push the RAM consumption of my (Linux) computer to its limits.
I could neither find in the documentation nor in the examples, how I can free the memory resources by closing the used
OMCSession
. My question thus refers to an equivalence ofclose
, used after openening and writing a file. Is such closing alread implemented? If not, it possibly should be implemented.The text was updated successfully, but these errors were encountered: