forked from zk00006/OpenTLD
-
Notifications
You must be signed in to change notification settings - Fork 195
Open
Description
I have tried compiling OpenTLD as a dll and importing into a c# application. I am able to create and delete objects in the unmanaged dll from the managed application using pInvoke. But as after I create a pointer to Main the application will crash if I do any of the following:
- Delete the Unmanaged object containing a pointer to Main
- Run any of the main->tld-> functions
- Even cvReleaseImage(&img); crashes the application
The message that I get is 'System.AccessViolationException' occurred - Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Has anyone used OpenTLD as a dll in a managed application? Are there any memory issues that I should be aware of?
Metadata
Metadata
Assignees
Labels
No labels