Skip to content

Using OpenTLD in a Managed Application #45

@vreddy1990

Description

@vreddy1990

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions