Problem1:C# 尝试读取或写入受保护的内存,这通常指示其他内存已损坏。System.AccessViolationException Solution1:dll项目中的函数声明:CPPDLLEXPORT_API void bayes(char* inFileName,float* Tex,int &classifier); c#项目中的函数声明如下:[DllImport(@"..........\cppdllexport.dll", EntryPoint = "bayes")] extern static int ba...