There were no problems yesterday, but today I get this on starting. And if I try to continue it gets stuck on "Initializing Drawing Objects..."
System.ArgumentOutOfRangeException: Length cannot be less than zero. (Parameter 'length')
at System.String.Substring(Int32 startIndex, Int32 length)
at TestsInfo.ViewRegistry(Object , Int32 , Int32 , TestsInfo )
at WealthLab.Core.Tokenizer..ctor(String source)
at WealthLab.Core.ParameterList.Parse(String s)
at WealthLab.Core.Configurable.ProcessConfig()
at WealthLab.Core.Configurable.set_Configuration(String value)
at WealthLab.Core.Configurable.LoadConfig()
at AdapterPolicy.InstantiateError(Object , AdapterPolicy )
at WealthLab.ChartWPF.DrawingObjectFactory.CreateInstance(Type t)
at WealthLab.ChartWPF.DrawingObjectFactory.ChangeAttr(Type t)
at WealthLab.ChartWPF.DrawingObjectFactory.Initialize()
at PageModel.QueryRef(PageModel )
at WealthLab7.MainController..ctor()
at WealthLab7.MainController.CreateInstance()
at WealthLab7.App.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
System.ArgumentOutOfRangeException: Length cannot be less than zero. (Parameter 'length')
at System.String.Substring(Int32 startIndex, Int32 length)
at TestsInfo.ViewRegistry(Object , Int32 , Int32 , TestsInfo )
at WealthLab.Core.Tokenizer..ctor(String source)
at WealthLab.Core.ParameterList.Parse(String s)
at WealthLab.Core.Configurable.ProcessConfig()
at WealthLab.Core.Configurable.set_Configuration(String value)
at WealthLab.Core.Configurable.LoadConfig()
at AdapterPolicy.InstantiateError(Object , AdapterPolicy )
at WealthLab.ChartWPF.DrawingObjectFactory.CreateInstance(Type t)
at WealthLab.ChartWPF.DrawingObjectFactory.ChangeAttr(Type t)
at WealthLab.ChartWPF.DrawingObjectFactory.Initialize()
at PageModel.QueryRef(PageModel )
at WealthLab7.MainController..ctor()
at WealthLab7.MainController.CreateInstance()
at WealthLab7.App.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Rename
Reinstallation of build13 doesn't help...
I'll try my laptop one later)
I'll try my laptop one later)
1. You should delete Settings.txt which might have become corrupt due to abnormal termination.
https://www.wealth-lab.com/Discussion/Is-Intraday-Days-Multiplier-persistent-beween-sessions-in-Debug-mode-6465
2. Next, move this folder out because apparently some drawing object is broken:
AppData\Roaming\WealthLab7\DrawingsV2
Also, do you run multiple copies of WL7 side by side?
https://www.wealth-lab.com/Discussion/Is-Intraday-Days-Multiplier-persistent-beween-sessions-in-Debug-mode-6465
2. Next, move this folder out because apparently some drawing object is broken:
AppData\Roaming\WealthLab7\DrawingsV2
Also, do you run multiple copies of WL7 side by side?
QUOTE:
You should delete Settings.txt which might have become corrupt due to abnormal termination.
Btw, can I use my laptop Settings.txt for desktop WL7?
QUOTE:
Also, do you run multiple copies of WL7 side by side?
Do you mean on the same PC? Sometimes I do so (not sure I did it yesterday) - something like one copie for data updating and the other one in debug mode for strategy development.
Thanks, it helped. I also tried to use Settigs.txt from another computer - it worked. But it seems like charts setting look different... doesn't matter anyway
Glad you got it up and running again.
Yes. Wealth-Lab 7 can run multiple instances on the same PC most of the time but IMHO this increases the chance of some file corruption.
QUOTE:
Do you mean on the same PC?
Yes. Wealth-Lab 7 can run multiple instances on the same PC most of the time but IMHO this increases the chance of some file corruption.
The problem here was parsing one of the chart drawing objects. If you send in the zipped contents of your "DrawingsV2" folder we might be able to zero in on the specific issue. To overcome this for now you could rename that folder which would effectively remove all of your saved drawing objects.
Hmmm, I've simply removed that folder, and... it was empty befor that...
Are you still seeing the exception?
QUOTE:
Are you still seeing the exception?
No, no it's ok now, deleting Settings.txt helped (because I tried delete drawing folder first and it didn't help).
And yes, I see the error is related to initializing one of the drawing object types from the factory, not creating an instance from an object you drew. I'm going to add some defensive code around that factory method, like we do in other areas. It should have been there from the get go.
Thanks, Glitch. I'm glad taking a small part in getting WL7 better)
Your Response
Post
Edit Post
Login is required