I keep accidentally stepping on things by exceeding my array bounds in Visual Studio 2005 (C++). Is there a switch I can flip somewhere in the environment so that the IDE will throw up a flag if I try to exceed my array bounds?
In Visual Studio 2005, is there any such thing as array bounds checking?
Well I am not sure about C++
But in VB and C# you can use the TRY CATCH statment to catch errors
For example (not sure of C++ syntax)
{
TRY
*add item to array here*
Catch EX as exception
messagebox.show(EX.tostring)
End try
}
Maybe this well help, good luck!
community survey
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment