in vb.net i can declare a void function:
Declare Function some_func& Lib "some_lib.dll" ()
then try to assign its return value to a variable:
some_return = some_func()
and get no errors during compilation, not even a warning
but in runtime it produces integer arithmetic overflow exception
in what way it is not even a warning?

  • 0
    Well, it's a runtime error, not something you can really detect beforehand. Be prepared for more and more cryptic shit when dealing with external dlls
  • 2
    obscure shit....

    What did you exepct?
  • 0
    There's your answer.
  • 0
    It's vb.net
Add Comment