question

AndrewMercer-9876 avatar image
0 Votes"
AndrewMercer-9876 asked Viorel-1 answered

disable integer overflow checks at smaller granularity

As a rule, my VB projects have integer overflow checks enabled. I can disable them for the project by: project, properties, compile, advanced, check 'remove integer overflow checks'. Is there a way to do this for a smaller unit, eg for a VB source file? Or for a VB sub/function? Or for a VB source line/statement? FYI VS 2019 community.

dotnet-visual-basic
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndrewMercer-9876 avatar image
0 Votes"
AndrewMercer-9876 answered

thanks viorel, i thought so but also thought i was missing something.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Viorel-1 avatar image
0 Votes"
Viorel-1 answered

It seems that VB does not include such features. Consider making a helper assembly (Class Library project) and functions (in VB) that perform the unchecked calculations.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.