Sorry, my english is very bad。When I create an object of user-defined type in lua script。It throws an error when no corresponding constructor is found。But,it still create a lua object of user data type。then when lua gc run,it will call the destructor of user-defined type,then the program crash。
Sorry, my english is very bad。When I create an object of user-defined type in lua script。It throws an error when no corresponding constructor is found。But,it still create a lua object of user data type。then when lua gc run,it will call the destructor of user-defined type,then the program crash。