|
-
Oct 5th, 2011, 06:10 AM
#1
Thread Starter
Junior Member
Did i reach a string limit?
Hi guys,
I have a string wich contains a couple of values, these values are run through by a loop. The only problem is that my program gives the following error:
Code:
System.InvalidOperationException was unhandled
Message=Er is een fout opgetreden bij het maken van het formulier. Zie ExceptionInnerException voor details. De fout is: De rekenkundige bewerking heeft geresulteerd in een overloop.
Source=Hash Creator
StackTrace:
bij Hash_Creator.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:regel 190
bij Hash_Creator.My.MyProject.MyForms.get_Form1()
bij Hash_Creator.My.MyApplication.OnCreateMainForm() in C:\Users\Gebruiker\documents\visual studio 2010\Projects\Hash Creator\Hash Creator\My Project\Application.Designer.vb:regel 35
bij Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
bij Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
bij Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
bij Hash_Creator.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:regel 81
bij System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
bij System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bij Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bij System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bij System.Threading.ThreadHelper.ThreadStart()
InnerException: System.OverflowException
Message=De rekenkundige bewerking heeft geresulteerd in een overloop.
Source=Hash Creator
StackTrace:
bij Hash_Creator.Form1..ctor() in C:\Users\Gebruiker\documents\visual studio 2010\Projects\Hash Creator\Hash Creator\Hash Creator.vb:regel 13
InnerException:
when I run my program.
The specific string is as follows:
Code:
Dim chars As String() = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"}
What is strange is that when I remove one value, the program runs perfectly. Anyone got an idea what may be causing this?
Jordy
Saying thanks only takes a few seconds.
Please give kama if you found this post helpful
(click the scales  on the left <--)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|