MantisBT - Open CASCADE
View Issue Details
0029161Open CASCADE[OCCT] OCCT:Codingpublic2017-09-29 13:012019-07-10 19:27
kgv 
kgv 
normalminor 
newopen 
[OCCT] 7.2.0 
[OCCT] 7.5.0* 
0029161: Coding Rules - No_Exception is defined within packages ElSLib, HLRAlgo, HLRBRep, Intrv even for Debug target
The following pacakges unconditionally and without any comments define No_Exception macro: ElSLib, HLRAlgo, HLRBRep, Intrv.
#ifndef No_Exception
#define No_Exception
#endif


No_Exception is expected to be managed by OCCT building configuration parameters, not within the code - defining it within Debug builds effectively disables validation checks intended to protect against / reveal errors in code. This also introduces inconsistency of actual implementation of affected methods between specific packages and other parts of OCCT.

Thus, places currently defining No_Exception might be a subject for unreveleaed memory issues.
No tags attached.
related to 0029181assigned apn Open CASCADE Jenkins Certification Tool - testing with enabled exceptions (undefined No_Exception) 
Issue History
2017-09-29 13:01kgvNew Issue
2017-09-29 13:01kgvAssigned To => kgv
2017-09-29 13:01kgvDescription Updatedbug_revision_view_page.php?rev_id=17776#r17776
2017-09-29 13:02kgvSummaryCoding Rules - No_Exception is defined within => Coding Rules - No_Exception is defined within packages ElSLib, HLRAlgo, HLRBRep, Intrv even for Debug target
2017-09-29 13:03kgvRelationship addedrelated to 0028194
2017-10-04 11:18kgvRelationship addedrelated to 0029181
2019-07-10 19:27abvTarget Version7.4.0 => 7.5.0*

There are no notes attached to this issue.