luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.
MIT License
574 stars 109 forks source link

Fixed: CallbackOnCollectedDelegate exception occurred. #122

Open stjeong opened 5 years ago

stjeong commented 5 years ago

Passing delegate instance into native function directly can produce CallbackOnCollectedDelegate after GC.

codecov[bot] commented 5 years ago

Codecov Report

Merging #122 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #122   +/-   ##
=======================================
  Coverage   65.68%   65.68%           
=======================================
  Files         215      215           
  Lines       38993    38993           
  Branches     4091     4091           
=======================================
  Hits        25613    25613           
  Misses      13118    13118           
  Partials      262      262
Flag Coverage Δ
#WGL_net35_x64_Release 92.25% <ø> (ø) :arrow_up:
#WGL_net35_x86_Release 91% <ø> (ø) :arrow_up:
#WGL_net461_x64_Release 65.26% <ø> (ø) :arrow_up:
#WGL_net461_x86_Release 90.74% <ø> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d0e10f2...58e501d. Read the comment docs.