- ago
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)
0
429
Solved
12 Replies

Reply

Bookmark

Sort
- ago
#1
Reinstallation of build13 doesn't help...

I'll try my laptop one later)
0
- ago
#2
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?
0
Best Answer
- ago
#3
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.
0
- ago
#4
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
1
- ago
#5
Glad you got it up and running again.

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.
1
Glitch8
 ( 11.81% )
- ago
#6
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.

0
Glitch8
 ( 11.81% )
- ago
#7
0
- ago
#8
Hmmm, I've simply removed that folder, and... it was empty befor that...
0
Glitch8
 ( 11.81% )
- ago
#9
Are you still seeing the exception?
0
- ago
#10
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).
0
Glitch8
 ( 11.81% )
- ago
#11
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.
1
- ago
#12
Thanks, Glitch. I'm glad taking a small part in getting WL7 better)
0

Reply

Bookmark

Sort