[ome-users] showinf issue in C++ binding [bug report and fix]
Roger Leigh
rleigh at dundee.ac.uk
Wed Jun 24 15:01:07 BST 2015
On 23/06/15 16:03, Joe Ping-Lin Hsiao wrote:
> Alright I figured it out. The culprit is this line
>
> OMEXMLServiceImpl service;
>
> To solve the problem just delay the object's instantiation after JVM.
> Specifically change the line to
>
> OMEXMLServiceImpl *service;
> And use 'new' to instantiate the variable in main() instead
>
> try {
> JavaTools::createJVM();
> service = new OMEXMLServiceImpl();
> testRead(argc, argv);
> delete service;
> }
>
> Don't forget to search for each usage of 'service' and change the '.'
> operator to '->' because it is a pointer now.
Many thanks for tracking this down. I've opened a PR to correct this
here: https://github.com/openmicroscopy/bioformats/pull/1853
This should be in the forthcoming 5.1.3 stable release.
Regards,
Roger
--
Dr Roger Leigh -- Open Microscopy Environment
Wellcome Trust Centre for Gene Regulation and Expression,
College of Life Sciences, University of Dundee, Dow Street,
Dundee DD1 5EH Scotland UK Tel: (01382) 386364
The University of Dundee is a registered Scottish Charity, No: SC015096
More information about the ome-users
mailing list