2

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?

Comments
  • 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
    vb.net.
    obscure shit....

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