Difference between revisions of "Compilation Error (errLine 0, errColumn 0, errLineEnd 0, errColumnEnd 0)"

From MultiCharts
Jump to navigation Jump to search
Line 1: Line 1:
==If the operation system is Windows 8 or any newer, the very first steps should be the following:==
+
# [[What is my MultiCharts User ID|Please make sure your MultiCharts version is '''8.8 or any newer version''']]. If it is not, please [http://www.multicharts.com/trading-software-download/| update MC software].
# Please remove MultiCharts from your computer:  
+
# Remove MultiCharts from your computer:  
 
#* Windows '''Start'''
 
#* Windows '''Start'''
 
#* '''Control Panel'''
 
#* '''Control Panel'''
Line 10: Line 10:
 
#* Do '''NOT''' check the box "Remove MultiCharts user data from computer", leave it clear
 
#* Do '''NOT''' check the box "Remove MultiCharts user data from computer", leave it clear
 
#* '''Remove'''
 
#* '''Remove'''
#* After the uninstallation processes is over click '''Finish''' button
+
#* After the deinstallation processes is over click '''Finish''' button
# Please install MultiCharts again, using a specific different directory:
+
# Please install MultiCharts again, using a different directory:
 
#* If you don't have installer saved on your local drive, please [http://www.multicharts.com/trading-software-download/| download the latest release or beta version]
 
#* If you don't have installer saved on your local drive, please [http://www.multicharts.com/trading-software-download/| download the latest release or beta version]
 
#* Click '''Install'''
 
#* Click '''Install'''
Line 21: Line 21:
 
#* Change the folder name to '''C:\MC''' and click '''Ok'''
 
#* Change the folder name to '''C:\MC''' and click '''Ok'''
 
#* Click '''Next'''
 
#* Click '''Next'''
#* After the installation processes is over click '''Finish''' button
+
#* After the installation processes is over click '''Finish''' button.
# Try to compile the code in the Editor again, If this doesn't help, please read the next description of the issue and follow required steps.
+
# '''Launch MultiCharts''' by making '''right-click on its icon''' and selecting '''Run as administrator''' (''if you don't have this option, use regular double-click'').
 +
# In MultiCharts go to '''File''' menu and select '''Properties'''.
 +
# On the '''Directories''' tab change the directory of the folder with your studies by clicking '''...''' button for '''Studies'''. It is important to use a simply path. We recommend to create '''C:\MyStudies'''.
 +
# Close MultiCharts.
 +
# Make sure all [[MultiCharts Processes]] are ended in Windows Task Manager.
 +
# Restart MultiCharts.
 
<br>
 
<br>
 
+
Run PowerLanguage, create new study (any type) and try to compile it. Should be compiled without any errors. If the issue persists, please contact our support team in [[http://messenger.providesupport.com/messenger/tssupport.html| Live Chat]].
==General Issue Information==
 
 
 
If a customer experiences an issue with compilation errors for all his/her scripts in PowerLanguage Editor, most likely he/she has faced one of two compilation problems:
 
* '''Compilation issue connected with GCC short paths'''.
 
* '''Compilation issue connected with Virtual Allocation'''
 
It is extremely easy to check if you have one of the issues:
 
# In '''PowerLanguage Editor''' main menu go to '''File''', then '''New...'''  and in the pop up window choose any study type.
 
# Give it any name.
 
# Without putting a single keyword into the completely empty study, click on the '''Compile''' button in the ToolBar of PowerLanguage Editor.
 
# If the fresh blank study is compiled with error, it means that you have one of two compilation problems.
 
Depending on which type of compilation problem you have there are two ways to fix them. To find out which one you have:
 
# Open '''C:\ProgramData\TS Support\MultiCharts\StudyServer\Studies''' ''(for Windows 7/8)'' or '''%allusersprofile%\Application Data\TS Support\MultiCharts\StudyServer\Studies''' ''(for Windows XP)''.
 
# Open the file '''compiler_error.log'''.
 
:* If the file contains lines similar to:<br>"Internal error in mingw32_gt_pch_use_address, at config/i386/host-mingw32.c:151: VirtualAlloc (commit):"<br>"C:\PROGRA~1\TSSUPP~1\MULTIC~1\STUDYS~1\Studies\SrcCpp\INDICA~1\I_SBTE~1.CPP:1:fatal error: can't read PCH file: Invalid argument. Compilation terminated."<br>'''It means that this is the issue with virtual allocation.'''
 
:* If the file contains lines similar to:<br>"C:\PROGRA~1\TS Support\MultiCharts\make\MinGW\bin\dlltool: Can't open def file: C:\PROGRA~1\TS"<br>"C:\PROGRA~1\TS Support\MultiCharts\make\MinGW\bin\dllwrap.exe"<br>'''It means that this is the issue with GCC short paths.'''
 
 
 
<br>
 
 
 
== Compilation issue connected with Virtual Allocation==
 
 
 
To fix the issue:
 
# Close all MultiCharts products and make sure all [[MultiCharts Processes]] are finished in Windows Task Manager.
 
# If you are running '''MultiCharts 8.0''' then download the following zip archive onto your machine and unpack it.<br>For MC 8.0 Release 32 bit: https://dl.dropbox.com/u/95112551/MakeGCH_elapiver_163.zip<br>For MC 8.0 Release 64 bit: https://dl.dropbox.com/u/95112551/MakeGCH_elapiver_163_x64.zip<br>Run '''Updater.exe''', click on '''Update''', then make sure there are '''no errors''' in the log and click on '''Close'''.
 
# If you are running '''MultiCharts 8.5 or higher''' then go to Windows Control Panel->Programs and Feature if it’s Windows 7(Add or Remove Programs if it’s Windows XP)-> double left click on your version of MultiCharts –> Next-> Repair.
 
<br>
 
 
 
== Compilation Issue Connected with GCC Short Paths ==
 
 
 
When MultiCharts is in the process of installation on your computer it checks '''NtfsDisable8dot3NameCreation''' key in the registry: '''HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem'''. if the value of the key is '''1''', it may cause the issue. If it is '''1''', the following message pops up:
 
 
 
''The installer has detected that NtfsDisable8dot3NameCreation registry key in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem is set to 1. It may cause a compiler issue: studies may not be compiled in PowerLanguage Editor.<br>Click Next to continue or Cancel to exit the Setup Wizard and change registry key above to zero using regedit utility (click Windows Start button, select Run, type regedit and press Enter), restart the computer and run installer again.''
 
 
 
To fix the issue:
 
# Close all MultiCharts products and make sure all [[MultiCharts Processes]] are finished in Windows Task Manager.
 
# Click on '''Windows Start button''', then '''Run''' and type '''Regedit'''. Press '''Enter'''.
 
# In the Registry open the path: '''HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem'''
 
# Change the value of the '''NtfsDisable8dot3NameCreation''' key to '''0'''.
 
# Reboot the operation system.
 
# After the system is rebooted, do not launch Multicharts. Open '''C:\ProgramData\TS Support\MultiCharts\StudyServer\Studies''' ''(for Windows 7/8)'' or '''%allusersprofile%\Application Data\TS Support\MultiCharts\StudyServer\Studies''' ''(for Windows XP)''.
 
# Open the '''compiler_error.log file'''. Depending on what path is written in the file you will have to rename several folders in one of 2 possible locations:
 
:* '''C:\ProgramData\TS Support\...''' (example for Windows 7/8); '''C:\Documents and Settings\All Users\Application Data\TS Support\...''' (example for Windows XP)
 
:* '''C:\Program Files\TS Support\...''' (example for any Windows)
 
::# Rename the '''TS Support''' folder into '''TS SupportOld'''. Create new folder '''TS Support'''. Move everything from '''TS SupportOld''' into the new '''TS Support'''. Delete the '''TS SupportOld''' folder.
 
::# Open the new '''TS Support''' folder. Rename the '''MultiCharts''' folder into '''MultiChartsOld'''. Create new folder '''MultiCharts'''. Move everything from '''MultiChartsOld''' into the new '''MultiCharts'''. Delete the '''MultiChartsOld''' folder.
 
::# Open the new '''MultiCharts''' folder. Rename the '''StudyServer''' folder into '''StudyServerOld'''. Create new folder '''StudyServer'''. Move everything from '''StudyServerOld''' into the new '''StudyServer'''. Delete the '''StudyServerOld''' folder.
 
 
 
In case an empty Study still does not compile, the location of system TEMP and TMP folders should be changed:
 
# Click '''Windows Start''' button.
 
# Click '''Control Panel'''.
 
# Click '''System''', then select '''Advanced System Settings'''.
 
# Click '''Environment Variables''', then in User Variables window double click on '''TEMP''' variable or select it and then click '''Edit''' button.
 
# In the opened window, change Variable Value to '''C:\Windows\Temp''' and click OK.
 
# Double click on '''TMP''' Variable or select it and then click '''Edit''' button.
 
# In the opened window, change Variable Value to '''C:\Windows\Temp''' and click OK.
 
 
 
Run PowerLanguage, create new study (any type) and try to compile it. Should be compiled without any errors. If the issue persists, please contact our support team in [[http://messenger.providesupport.com/messenger/tssupport.html|Live Chat]].
 
  
 
[[Category:FAQ]]
 
[[Category:FAQ]]

Revision as of 13:58, 20 February 2014

  1. Please make sure your MultiCharts version is 8.8 or any newer version. If it is not, please update MC software.
  2. Remove MultiCharts from your computer:
    • Windows Start
    • Control Panel
    • Uninstall a program
    • MultiCharts
    • Uninstall
    • Next
    • Remove
    • Do NOT check the box "Remove MultiCharts user data from computer", leave it clear
    • Remove
    • After the deinstallation processes is over click Finish button
  3. Please install MultiCharts again, using a different directory:
    • If you don't have installer saved on your local drive, please download the latest release or beta version
    • Click Install
    • Click Next
    • Check the box "I accept the terms in the License Agreement"
    • Click Next
    • Click Next
    • Click Change
    • Change the folder name to C:\MC and click Ok
    • Click Next
    • After the installation processes is over click Finish button.
  4. Launch MultiCharts by making right-click on its icon and selecting Run as administrator (if you don't have this option, use regular double-click).
  5. In MultiCharts go to File menu and select Properties.
  6. On the Directories tab change the directory of the folder with your studies by clicking ... button for Studies. It is important to use a simply path. We recommend to create C:\MyStudies.
  7. Close MultiCharts.
  8. Make sure all MultiCharts Processes are ended in Windows Task Manager.
  9. Restart MultiCharts.


Run PowerLanguage, create new study (any type) and try to compile it. Should be compiled without any errors. If the issue persists, please contact our support team in [Live Chat].