Hi,
first impression is, that your MedSAFETrackingDevice is not correctly
declared as a smart-pointer object.
class MedSAFETrackingDevice : public TrackingDevice
{
public:
mitkClassMacro(MedSAFETrackingDevice, TrackingDevice);
itkNewMacro(Self);
...
Regards,
Matthias
Dr. Matthias Baumhauer Phone: (+49) 6221/42-2328
Deutsches Krebsforschungszentrum Fax: (+49) 6221/42-2345
Div. Medical and Biological Informatics (E130)
Im Neuenheimer Feld 280 email: [email protected]
D-69120 Heidelberg, Germany
http://www.dkfz-heidelberg.de/de/mbi
<http://www.dkfz-heidelberg.de/de/mbi>
From: Kostas Pachopoulos [mailto:[email protected]]
Sent: Wednesday, June 03, 2009 5:41 PM
To: [email protected]
Subject: [mitk-users] mitkIGT: cxx0030 error: expression cannot
beevaluated- while trying to create new TrackingDevice
Hi all,
i have a header file with the following:
class CrossRef {
...
private:
boost::shared_ptr<boost::thread> magtracker_reader;
mitk::MedSAFETrackingDevice::Pointer tracker;
mitk::TrackingDeviceSource::Pointer source;
....
and i try to implement in a separate cpp file:
void CrossRef::initMagneticTracker() {
tracker= mitk::MedSAFETrackingDevice::New(); //error thrown HERE
source = mitk::TrackingDeviceSource::New();
source->SetTrackingDevice(tracker);
source->Connect();
source->StartTracking();
}
The CrossRef constructor is the default one. The problem is, that an
"cxx0030 error: expression cannot be evaluated" is thrown by
itksmartpointer.h at:
SmartPointer &operator = (ObjectType *r)
{
if (m_Pointer != r)
....
Any ideas?
Thanks,
KP
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users