[vtkusers] Reverse color in vtkScalarsToColors?

Andras Lasso lasso at queensu.ca
Sun Sep 23 16:07:12 EDT 2018


Most common root cause of different behavior in Release/Debug mode is that in Debug mode variables are initialized to 0, while in Release mode there is no value initialization.

Try to use AppVerifier tool. It can often help the software crash in Debug or RelWithDebInfo mode that otherwise would just crash in Release mode.

Andras

-----Original Message-----
From: vtkusers <vtkusers-bounces at public.kitware.com> On Behalf Of andyjk
Sent: Sunday, September 23, 2018 2:24 PM
To: vtkusers at vtk.org
Subject: Re: [vtkusers] Reverse color in vtkScalarsToColors?

I have a strange bug related to this.

If I create a custom vtkLookupTable as suggested above, it all works - as long as I compile in ReleaseWithDebugInfo

If I build with Release the software crashes when I try to use the custom look up table.

Identical code. Windows with VS2017.

The fact it works in RelWithDebug makes it hard to debug!

Anyone have any ideas?



--
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%7Cf6bc45fe40694e37f3ae08d62181ce18%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636733238726404349&sdata=ScBS9pm2%2BoRwaJqGlyLUJQE7Q52BgpEi0IIB%2Fp4JRXo%3D&reserved=0
_______________________________________________
Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7Cf6bc45fe40694e37f3ae08d62181ce18%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636733238726404349&sdata=35cgI6JnYjWoOVVx5RsU4evbDuVqYmeQQiLBPoZiV4o%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%7Cf6bc45fe40694e37f3ae08d62181ce18%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636733238726404349&sdata=v4XyrBSzVnaPiBib6T4WQ6bNtttk9FWUSIkGf%2B55yiU%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%7Cf6bc45fe40694e37f3ae08d62181ce18%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636733238726404349&sdata=6tsI9fJuY7Yo0M34FaPyfYxgdkuc0GCkiTA2LyYrTIU%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%7Cf6bc45fe40694e37f3ae08d62181ce18%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636733238726404349&sdata=Aswx6xkPEutnoJyHRRMwCuaepR5Fsv6rdo0fsgtCseg%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%7Cf6bc45fe40694e37f3ae08d62181ce18%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636733238726404349&sdata=AAwitM2SMsghl%2BPazSbwZPj9%2BhVZ7OUMlPd4%2BALy5R0%3D&reserved=0


More information about the vtkusers mailing list