Skip to content
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

C# call GlobalDictInterface.Update works fine and then it doesn't #25

Open
lgeissbauer-btig opened this issue Nov 3, 2023 · 0 comments

Comments

@lgeissbauer-btig
Copy link

the following works just fine:

julia> for i in 1:10000 GlobalDictInterface.Update("c1", "k$i", "v$i"^1000) end

But stress testing it it doesn't:

julia> while true; for i in 1:1000 GlobalDictInterface.Update("c1", "k$i", "v$i"^1000) end; sleep(1); end
ERROR: CLRException: System.MissingMethodException: Method 'GlobalDictInterfaceForJulia.GlobalDictInterface.Update' not found.
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at CLRBridge.Meta.InvokeMember(IntPtr type, String name, BindingFlags bindingFlags, IntPtr binder, IntPtr target, IntPtr[] providedArgs, UInt32 argCount, IntPtr& exception)
Stacktrace:
 [1] track_and_throw(exhandle::UInt64)
   @ DotNET.CLRBridge C:\Users\<user>\.julia\packages\DotNET\Rx490\src\CLRBridge.jl:46
 [2] InvokeMember(type::UInt64, name::String, bindingFlags::UInt32, binder::Int64, target::UInt64, providedArgs::Vector{Union{}})
   @ DotNET.CLRBridge C:\Users\<user>\.julia\packages\DotNET\Rx490\src\CLRBridge.jl:325
 [3] invokemember(::UInt32, ::CLRObject, ::CLRObject, ::Symbol)
   @ DotNET C:\Users\<user>\.julia\packages\DotNET\Rx490\src\marshalling.jl:83
 [4] invokemember
   @ C:\Users\<user>\.julia\packages\DotNET\Rx490\src\marshalling.jl:94 [inlined]
 [5] getproperty(obj::CLRObject, sym::Symbol)
   @ DotNET C:\Users\<user>\.julia\packages\DotNET\Rx490\src\operators.jl:89
 [6] top-level scope
   @ .\REPL[15]:1

But trying after the error happend it works again:

julia> for i in 1:10000 GlobalDictInterface.Update("c1", "k$i", "v$i"^1000) end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant