Author Topic: An exception that can't be handeled.  (Read 8221 times)

ToxicBunny

  • Posts: 6
An exception that can't be handeled.
« on: May 14, 2016, 02:05:24 AM »
Downloaded trial version. Installed. Started VA. Downloaded and installed Windows text to speech program (VA said it wasn't installed so i did). Now i get an error message saying:

(translated from swedish)
An exception that can't be handeled has appeared in your adaptation program.

System.ArgumentOutOfRangeException: Addition or subtraction results in a parametername: Value
***
(vid = at(at system.Date))
***
vid System.DateTime.AddTicks(Int64 value)
   vid System.DateTime.Add(Double value, Int32 scale)
   vid ..(Object , EventArgs )
   vid System.Windows.Forms.Form.OnLoad(EventArgs e)
   vid ..OnLoad(EventArgs e)
   vid System.Windows.Forms.Form.OnCreateControl()
   vid System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   vid System.Windows.Forms.Control.CreateControl()
   vid System.Windows.Forms.Control.WmShowWindow(Message& m)
   vid System.Windows.Forms.Control.WndProc(Message& m)
   vid System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   vid System.Windows.Forms.ContainerControl.WndProc(Message& m)
   vid System.Windows.Forms.Form.WmShowWindow(Message& m)
   vid System.Windows.Forms.Form.WndProc(Message& m)
   vid System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   vid System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   vid System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

after that there's some system text, corelib etc.



What is all this? VA Isn't working and it is started as admin. Microsoft windows 10 is in swedish 64-bit. If it is date and time related as it mentions datetimeaddticks - we write day-month-year. If that makes it easier, idk.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: An exception that can't be handeled.
« Reply #1 on: May 14, 2016, 08:50:44 PM »
The only time that I see that type of error is when VoiceAttack is in trial mode and it is run under one Windows language, stopped and then run again in another language.  The only fix I have for that right now is to put the language back to what it was initially and run VoiceAttack.

ToxicBunny

  • Posts: 6
Re: An exception that can't be handeled.
« Reply #2 on: May 15, 2016, 08:24:26 AM »
That's odd. I only have one language and that's swedish. If i change it into english in settings. It's still in swedish.

I got that error the first time i started VA, not the second or third. Seems wierd language settings should matter at all?  ???

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: An exception that can't be handeled.
« Reply #3 on: May 15, 2016, 02:25:15 PM »
What normally happens is information regarding the date of first time you run VA is serialized and added to your registry.  The date info is written in whatever format indicated by Windows.  For instance, in the U.S., it would be written Month/Day/Year + Time.  When the information is read back, it is expected to be in the same format.  If the date is not valid, an exception is raised and the software crashes.  In the past, I have not put much handling in there, as it's a delicate area and I don't want to chance messing up somebody's trial (a lot of people use the beta, even in trial mode).  Not sure why it would bomb on the first run with that exception, as the code shows that if the data isn't there, it's created.  The only other things that would cause issue would be if the data was tampered with, or the possible (however highly unlikely) corrupt registry write.

I'm adding handling to the code to try to help out when something like this occurs.  May be in the next beta release.

ToxicBunny

  • Posts: 6
Re: An exception that can't be handeled.
« Reply #4 on: May 15, 2016, 06:39:14 PM »
Okay. I'll just wait to that beta then. I'm in no way shape or form a codewriter so i'll let you handle that part. Will i be able to trial the next beta when it is finished or is my trial-time used up by this version?

Curious thought. PC OS is in swedish but Microsoft Speech SDK 5.1 is in english. Would that mess anything up? If not just ignore the question.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: An exception that can't be handeled.
« Reply #5 on: May 15, 2016, 08:56:15 PM »
I have some code that seems to be working.  I need to test it a bit more, though.

I don't think have a speech sdk installed would hurt anything.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: An exception that can't be handeled.
« Reply #6 on: May 21, 2016, 12:41:50 AM »
You should try the new beta:

http://voiceattack.com/SMF/index.php?topic=101.0

It has some extra handling for the date/time exception.  However, it doesn't solve the problem of the speech engine not being there.