Comments (1)
I googled and tinker around a bit. Consider this code from MonitorCaptureConfiguration.cs
:
Lets see using dnSpy what it translated to after compilation:
This new ScreenCaptureCallbackWithContext(MonitorCaptureConfiguration.OnNewFrame)
is successfully passed to unmanaged library but it's, as i assumed in OP, indeed used nowhere else and held by no one in managed code and thus can be GC'ed while some unmanaged code still use it. So this object needs to be placed in field or something, that's what i did in PR #157
from screen_capture_lite.
Related Issues (20)
- linux modify resolution crash HOT 2
- Version 17.1.460 broken for MinGW-w64 HOT 5
- Building window 7 version HOT 6
- Capturing Multiple monitors together. HOT 2
- Handling display change events. HOT 1
- How do I use the newest release as a library in a C# project? HOT 2
- Compile tutorial? HOT 2
- Strange border HOT 18
- How to build for MinGW HOT 2
- Is cursor on Windows guaranteed to be always 32x32 in size? HOT 1
- [Help] How to avoid some overlaying controls be captured? HOT 3
- Are there any plans to re-integrate screen capture lite to unity ? HOT 9
- black screen captured HOT 6
- Code writing inquiry: penetrate the specified window to achieve desktop screenshots
- GetMonitors in a virtual machine HOT 2
- Release crashes in Visual Studio 2022 vcxproj type project (so no cmake) HOT 1
- 'PW_RENDERFULLCONTENT': undeclared identifier in file GDIFrameProcessor.cpp HOT 1
- macOS: Use of deprecated API HOT 1
- CSharp not working?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from screen_capture_lite.