[vtkusers] vtkLookupTable crashes in release mode. VTK8.1.1
Andras Lasso
lasso at queensu.ca
Tue Sep 25 16:41:17 EDT 2018
Order of operations matter. This works well:
https://github.com/Slicer/Slicer/blob/master/Libs/MRML/Core/vtkMRMLColorTableNode.cxx#L642-L648
Andras
-----Original Message-----
From: vtkusers <vtkusers-bounces at public.kitware.com> On Behalf Of Vipul Pai Raikar
Sent: Tuesday, September 25, 2018 2:47 PM
To: vtkusers at vtk.org
Subject: [vtkusers] vtkLookupTable crashes in release mode. VTK8.1.1
Hi,
I am having issues creating a vtkLookupTable. I am encountering a peculiar issue with lookup tables when in release mode. Whenever I am trying to SetHueRange (or SaturationRange or ValueRange) I run into an access violation. But this works as expected in debug mode. Any one run into the same issue? Any help will be greatly appreciated.
Example Code:
vtkSmartPointer<vtkLookupTable> bwLut = vtkSmartPointer<vtkLookupTable>::New();
bwLut->SetHueRange (0, 0);
bwLut->SetSaturationRange (0, 0);
bwLut->SetValueRange (0, 1);
bwLut->Build();
bwLut->SetTableRange (0, 255);
--
Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&data=02%7C01%7Classo%40queensu.ca%7Cfc2fc98579cf487ee08108d623173bf8%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636734980033059634&sdata=vh%2BAIob8RcPNFIKqTXxPFrWag5tpIs%2Fi%2Fv4e7crlL8Y%3D&reserved=0
_______________________________________________
Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7Cfc2fc98579cf487ee08108d623173bf8%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636734980033059634&sdata=ydqBqIoi0brPwFm2PtZQmxCPsTXBsv62sM3COKW1yzM%3D&reserved=0
Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7Cfc2fc98579cf487ee08108d623173bf8%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636734980033059634&sdata=Ng7pZ6ohz1J1NkeEVA4tx9sQoIVUZ0ttK9OgYTUstTg%3D&reserved=0
Please keep messages on-topic and check the VTK FAQ at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7Cfc2fc98579cf487ee08108d623173bf8%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636734980033059634&sdata=E4utitZcoGaEhPhYmhSgdfz4pyzvAvQbU2dbgfuhXKo%3D&reserved=0
Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7Cfc2fc98579cf487ee08108d623173bf8%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636734980033059634&sdata=cOg%2FcimwE8fI0HtxljpU8WENsrfRVQy%2FcSs89bPPejo%3D&reserved=0
Follow this link to subscribe/unsubscribe:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7Cfc2fc98579cf487ee08108d623173bf8%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636734980033059634&sdata=TD6xZu3x2nzYtumVwHzxvP92UzqU1DmihzJVS8pfLXA%3D&reserved=0
More information about the vtkusers
mailing list