I want to make a bot for facebook using the Microsoft Bot Framework (C #) and also use a tool called ChatScript, which is written in C ++.
I turned chatscript into a DLL and called it in a console application in C #, which worked.
When I try to do the same thing in a bot framework project, I get System.StackOverflow when I call the DLL. What can it be?
Note: chatscript.dll is inside the bin folder along with the Application.dll bot generated by the project.
public static int InitSystem(int argc, SWIGTYPE_p_p_char argv, string unchangedPath, string readonlyPath, string writablePath) {
int ret = ChatScriptPINVOKE.InitSystem__SWIG_0(argc, SWIGTYPE_p_p_char.getCPtr(argv), unchangedPath, readonlyPath, writablePath);
return ret; }
[global::System.Runtime.InteropServices.DllImport("chatscript.dll", EntryPoint="CSharp_ChatScript_InitSystem__SWIG_0")]
public static extern int InitSystem__SWIG_0(int jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, string jarg4, string jarg5);