GmodDotNet icon indicating copy to clipboard operation
GmodDotNet copied to clipboard

[BUG] native library unloads on both sides

Open SupinePandora43 opened this issue 5 years ago • 5 comments

Describe the bug unloading module on server side, will unload native requirements, while client side uses them

To Reproduce

Example module with native dll requirement SV: dotnet_load("Example") CL: dotnet_load("Example") SV: dotnet_unload("Example") CL: try use code from native library CL: System.AccessViolationException // something like nullpointerexception

Expected behavior

not unload native requirement

  • [x] Garry's Mod Windows

i'm working on making my module server sided. this can't be done easily i think. it's not critical. just todo maybe

SupinePandora43 avatar Nov 03 '20 12:11 SupinePandora43

@SupinePandora43 Can we have a code to reproduce?

GlebChili avatar Nov 05 '20 01:11 GlebChili

@SupinePandora43 Can we have a code to reproduce?

It only require module with native requirements

SupinePandora43 avatar Nov 05 '20 04:11 SupinePandora43

@SupinePandora43 Can you also tell us a version of GmodDotNet you have been using?

GlebChili avatar Nov 05 '20 16:11 GlebChili

will test on 0.7.0-alpha.2.26877661.new-load-model

SupinePandora43 avatar Nov 07 '20 08:11 SupinePandora43

It crashes now

SupinePandora43 avatar Nov 07 '20 09:11 SupinePandora43