I have read through the Programming Guide .NET and I have built my Strategy successfully in the PLeditor. I have VS 2010 and I clicked on the blue button in the editor to start debug. VS 2010 comes up, but has 102 errors. It doesn't recommend that I continue with debug and I'd agree.
The first error is quite revealing. It has "IndicatorObject" is not defined. As I have a strategy I do not use any such object. I searched in my strategy and indeed there is no reference to an "IndicatorObject". Where is this coming from? It appears to be a linker error where it is bringing in headers and failing to find the related source files or dll reference?
Visual Studio 2010 debug failure [SOLVED]
-
- Posts: 81
- Joined: 29 Apr 2013
- Location: www.threefoldmarkets.com
- Has thanked: 12 times
- Been thanked: 16 times
- Contact:
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Visual Studio 2010 debug failure
Hello tradetree,
Usually the source file the errors are coming from is specified in VS error list.
Are all errors coming from the same file? Is this the cs file with your strategy?
Are all studies compiled ok in your PowerLanguage .Net Editor (there are no uncompiled studies)?
Usually the source file the errors are coming from is specified in VS error list.
Are all errors coming from the same file? Is this the cs file with your strategy?
Are all studies compiled ok in your PowerLanguage .Net Editor (there are no uncompiled studies)?
-
- Posts: 81
- Joined: 29 Apr 2013
- Location: www.threefoldmarkets.com
- Has thanked: 12 times
- Been thanked: 16 times
- Contact:
Re: Visual Studio 2010 debug failure
Yes, the VS error list is all VB files, ie vb_Accum_Swing_Index.Indicator.VB. Project is "PLStudiesVB2010". None of the errors have anything to do with my source file or anything I even would need. These are all VB files.
"Are all studies compiled ok in your PowerLanguage .Net Editor (there are no uncompiled studies)?" I clicked on the two ways to build, and it comes back "Build Succeeded" in the PL editor. I don't know what else to do to compile other studies. I only have one file I have modified. Does it only compile opened files in the editor or all files? Either way it still should be fine because the one file I have is opened in the editor. I also know it compiles as I had many errors when I was developing the strategy, and it now compiles clean.
I also deleted a strategy that was part of the standard set, but I don't see why that would affect anything.
"Are all studies compiled ok in your PowerLanguage .Net Editor (there are no uncompiled studies)?" I clicked on the two ways to build, and it comes back "Build Succeeded" in the PL editor. I don't know what else to do to compile other studies. I only have one file I have modified. Does it only compile opened files in the editor or all files? Either way it still should be fine because the one file I have is opened in the editor. I also know it compiles as I had many errors when I was developing the strategy, and it now compiles clean.
I also deleted a strategy that was part of the standard set, but I don't see why that would affect anything.
-
- Posts: 81
- Joined: 29 Apr 2013
- Location: www.threefoldmarkets.com
- Has thanked: 12 times
- Been thanked: 16 times
- Contact:
Re: Visual Studio 2010 debug failure
Support this morning told me to ignore the VB errors. Kind of makes me uncomfortable, but for now that is how I'll proceed. I would suggest the documentation for debugging reflect this reality.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Visual Studio 2010 debug failure [SOLVED]
tradetree, you can disregard the error message you have for VB files.
In VB project there are no references for MC builds, unlike in C# project.
So there are no actual errors.
In VB project there are no references for MC builds, unlike in C# project.
So there are no actual errors.
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: Visual Studio 2010 debug failure
I had the same problem, which made the error list in VS hard to read since there were a lot of false positives from VB (which I don't use).Yes, the VS error list is all VB files, ie vb_Accum_Swing_Index.Indicator.VB. Project is "PLStudiesVB2010". None of the errors have anything to do with my source file or anything I even would need. These are all VB files.
To solve it, I went to the Solution Explorer in VS, right-clicked 'PLStudiesVB2010' and choose 'unload project'. That way only the C# project remains in the PLStudies2010 solution.