‚Buffer Overflow‘ And Integer

„After 32766 Documents the agent hangs with ‚Buffer Overflow‘.“
I’ve heard this so often.
„Do you have a counter variable?“
„You’ve declared it as integer, right?“
„So, what’s the scope of integer?“
„hmm. -32,768 to 32,767?“
„OK, then correct your Dim statement and better don’t you use counter variables if you don’t really need them, cause they are performance muncher.“