View Single Post
  #11  
Old 07-05-2017, 02:18
Debugger Debugger is offline
Friend
 
Join Date: May 2013
Posts: 60
Rept. Given: 51
Rept. Rcvd 8 Times in 6 Posts
Thanks Given: 69
Thanks Rcvd at 38 Times in 26 Posts
Debugger Reputation: 8
Quote:
Originally Posted by sendersu View Post
exactly as forecasted - crashing!

http://prntscr.com/fr9hql


here is a stack track - the food for your mind

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at KeyGen.Form1.button1_Click_1(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.81.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
KeyGen
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///E:/KeyGen.exe
----------------
I tried changing my Date time and Location to UTC and London, then generating serial, It still works.

Anyway if you still finding it crashing just change the code line
from
Code:
fP = p3 + p4 + p5 + p6.Substring(0,10);
to
Code:
fP = p3 + p4 + p5 + p6;
I tried and registered with success.

Let me know if it works for you.
Reply With Quote
The Following User Says Thank You to Debugger For This Useful Post:
e0qs (07-06-2017)