blender2ogre 0.5.8 export error - ReferenceError: StructRNA of type Mesh has been removed When trying to export a mesh from Blender to Ogre using the blender2ogre exporter I'm getting an error I have never encountered before :

ReferenceError: StructRNA of type Mesh has been removed.

location: :-1





Through the process of elimination I've figured out the error only occurs when I export with modifiers on my mesh, in my case the edge split and armature modifiers. Has anyone experienced this error before and what steps can be taken to remedy it? 

I have had a search around on google where some people have suggested it is to do with unparented bones, however when I deleted my armature and tried to export I had the same issue. If I delete the APC mesh and replace it with a simple square then export I have no issues. The error seems to be tied to the specific mesh.
It could perhaps help to update your version of the Orge3D exporter from 0.58 to 0.60 from  the bitbucket page. It seems the version you use (0.5.8) is written for blender 2.65 and the latest 0.6.0 version supports blender 2.66. Failing that I suggest taking steps to contact the guy who currently maintains the addon for advice.