Original Post
When using the shared keyword for an interface a class uses, I can not longer reload it properly.
Script code is something like
If I reload this script then calling MyFunc() from C++ code no longer works.
The way I reload is to use DiscardModule() in script engine and then create it from scratch (just like I did the first time it was created).
If I remove "shared" from iMyInterface declaration, all works fine.
Script code is something like
shared interface iMyInterface {
void MyFunc();
}
class cMyClass : iMyInterface {
void MyFunc() {
//Do stuff
}
}If I reload this script then calling MyFunc() from C++ code no longer works.
The way I reload is to use DiscardModule() in script engine and then create it from scratch (just like I did the first time it was created).
If I remove "shared" from iMyInterface declaration, all works fine.