Exposed the third param for a run-time dir to the C# binding thus preventing crashes.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
This commit is contained in:
Dimitar Dobrev
2015-03-09 21:34:25 +02:00
parent 0c808276fa
commit f51c57baa3

View File

@@ -295,7 +295,7 @@ namespace openalprnet {
{
public:
// Allocate the native object on the C++ Heap via a constructor
AlprNet(System::String^ country, System::String^ configFile) : m_Impl( new Alpr(marshal_as<std::string>(country), marshal_as<std::string>(configFile)) ) { }
AlprNet(System::String^ country, System::String^ configFile, System::String^ runtimeDir) : m_Impl( new Alpr(marshal_as<std::string>(country), marshal_as<std::string>(configFile), marshal_as<std::string>(runtimeDir)) ) { }
// Deallocate the native object on a destructor
~AlprNet(){