On Monday, 20 June 2016 at 13:51:15 UTC, Mike Parker wrote:
interface Plugin {
   bool initialize();
   void terminate();
   Throwable getLastException();
   SomeObject getSomeObject();
   void returnSomeObject(SomeObject);
}

Sorry, I forgot a couple of commments. I did explain it in the text, though. It was supposed to read:

interface Plugin {
   bool initialize();
   void terminate();

   // Dont' do this! Allocate exceptions on app side.
   Throwable getLastException();

   // Do do this. Allocate plugin objects on DLL side.
   SomeObject getSomeObject();
   void returnSomeObject(SomeObject);
}

Wow, absolutely awesome! That's exactly what I have been looking for. I should have some time to try it out later this week. Many thanks for all the info. I very much appreciate that you took the time to explain everything. It helped me a lot!

Also thanks to everybody else for the input!

Reply via email to