is 128 bits the max?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've written a script that uses bits to store permissions, however, once I go
over 128 bits I get an error:

System.OverflowException: Arithmetic operation resulted in an overflow.

Is this a limitation of the system?
 
What do you use to store those bits ?

If you want to store more bits you'll have to use more bytes (AFAIK the .NET
framework has also a specialized class for this that could perhaps be
usefull).

Patrice
 
Its ok thanks, I eventually re-cast them as integers and that seemed to solve
the problem.
 
Back
Top