All pastes #882014 Raw Edit

Jemand

public text v1 · immutable
#882014 ·published 2008-01-30 01:11 UTC
rendered paste body
// Need special initialization code here for a stupid restriction at least in 
// MSVC 7.1:
// 
//   Fatal Error C1509:
//   compiler limit : too many exception handler states in function 'function'. 
//   simplify function
//
//   The code exceeds an internal limit on exception handler states 
//   (1,920 states).
//
//   Most common cause 
//     - The function contains a complex expression of user-defined class 
//       variables and arithmetic operators. 
//   Possible solutions 
//     - Simplify expressions by assigning common subexpressions to temporary 
//       variables. 
//     - Split the function into smaller functions. 
//
// So MSVC 7.1 is unable to call 4002 times a non-default contructor in an 
// array initialization, because someone has put a hardlimit of 1920 states.
// To circumvent this we need an explizit initialization function which does 
// 7035 function calls in a row.