gitpush-force / heekscad

Automatically exported from code.google.com/p/heekscad
Other
0 stars 0 forks source link

Plugin version check #158

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Maybe HeeksCAD should check the version, or build number, of the plugin
shared libraries and only try to load valid ones which were built with the
same revision of HeeksCADInterface.h.
Currently HeeksCAD often fails to start because the shared library has been
built with an older version of HeeksCADInterface.h, which may have slightly
different functions than the one built into HeeksCAD.

Original issue reported on code.google.com by danhe...@gmail.com on 9 Jun 2009 at 11:08

GoogleCodeExporter commented 8 years ago
Maybe if the heekscadinterface object had a version define in it. People would 
have
to increment it when changing heekscadinterface though. 

Original comment by jonpry@gmail.com on 11 Jun 2009 at 10:09

GoogleCodeExporter commented 8 years ago
yes, I thought about that, but I know I would forget to increment the version 
number.
It's better than nothing, though. There is already a const wxChar* 
GetRevisionNumber();

Original comment by danhe...@gmail.com on 11 Jun 2009 at 11:27

GoogleCodeExporter commented 8 years ago
I don't know why all the methods are virtual in heekscadinterface. Getting rid 
of
this would get rid of most of the problems. Right now just adding a method to 
the
interface causes the vtable to be reordered, thus breaking the plugins. Get rid 
of
the vtable and this isn't a problem anymore.

Original comment by jonpry@gmail.com on 22 Jun 2009 at 9:40