Forum for TradeSim Users  

Go Back   Forum for TradeSim Users > Vitamin-C for MetaStock > Bug Reports, Problems and Troubleshooting

Bug Reports, Problems and Troubleshooting If you think you have found a bug with the software then post your comments here

Reply
 
Thread Tools Display Modes
  #1  
Old 26th July 2010, 07:41 PM
Hank Hank is offline
Junior Member
Site Admin
 
Join Date: Sep 2007
Posts: 12
Default Error Code 31

Hi David...

When I do a syntax check from the VitaminC editor, I get the messages:
"Problems trying to run syntax checker" and "Problems trying to run batch file with error code 31".

This is on the step1 code from the manual, and it happens weather there is an error in the code or not. Borland C++ 5.5 is installed in the default directory, and both it and VitaminC are on my "C" disk.

I have tried cleaning up my registry, but to no avail...

Help... Please!!

Hank
Reply With Quote
  #2  
Old 27th July 2010, 03:12 AM
David Samborsky David Samborsky is offline
Administrator
Site Admin
 
Join Date: Jan 2003
Posts: 1,077
Default

What OS are you running ?
__________________
Compuvision Australia Pty Ltd.
Power Tools for Metastock users.
http://www.compuvision.com.au
Reply With Quote
  #3  
Old 27th July 2010, 07:45 AM
Hank Hank is offline
Junior Member
Site Admin
 
Join Date: Sep 2007
Posts: 12
Default

I'm running Windows XP, service pack 3.
Reply With Quote
  #4  
Old 27th July 2010, 01:22 PM
David Samborsky David Samborsky is offline
Administrator
Site Admin
 
Join Date: Jan 2003
Posts: 1,077
Default

Try running Vitamin-C in administrator mode.

ie right click on the Vitamin-C icon and select properties -> compatibility mode -> Run this program as administrator = enabled
__________________
Compuvision Australia Pty Ltd.
Power Tools for Metastock users.
http://www.compuvision.com.au
Reply With Quote
  #5  
Old 27th July 2010, 02:07 PM
Hank Hank is offline
Junior Member
Site Admin
 
Join Date: Sep 2007
Posts: 12
Default

I tried what you suggested. The properties->compatibility window does not have an administrator choice. There are "compatibility modes" (4 of them).
I tried all four and the results were always the same error.

I have administrator privilege for my whole system ( I'm the only user).
Reply With Quote
  #6  
Old 27th July 2010, 03:33 PM
David Samborsky David Samborsky is offline
Administrator
Site Admin
 
Join Date: Jan 2003
Posts: 1,077
Default

Yes you don't have this option in XP.

What antivirus software are you running ?
__________________
Compuvision Australia Pty Ltd.
Power Tools for Metastock users.
http://www.compuvision.com.au
Reply With Quote
  #7  
Old 27th July 2010, 03:59 PM
Hank Hank is offline
Junior Member
Site Admin
 
Join Date: Sep 2007
Posts: 12
Default

I'm using "BitDefender Total Security 2010".

I tried turning off all security, but still the same problem...

Hank
Reply With Quote
  #8  
Old 28th July 2010, 10:16 AM
Hank Hank is offline
Junior Member
Site Admin
 
Join Date: Sep 2007
Posts: 12
Default further thoughts on error code 31

Hi David...

As an experiment, I tried to run C++ from the C:\ prompt. My source code is "MySimple.C" which the first 5 lines of "Simple.C", and is in C:\VitaminCscript library. My command at the Dos prompt was "BCC32 C:\VITAMINCSCRIPT\MYSIMPLE.C". The result was four errors FROM BCC32, the things you would expect from an incomplete C++ program. (i not defined, etc.). Since these error messages came from C++ 5.5, I know that the programs are in place, and for some reason the linkage from the syntax check routine of VitaminC is not getting through to Borland C++.

I have the paths set up through AUTOEXEC.BAT. Hope this helps.

Hank
Reply With Quote
  #9  
Old 29th July 2010, 08:06 AM
David Samborsky David Samborsky is offline
Administrator
Site Admin
 
Join Date: Jan 2003
Posts: 1,077
Default

According to Windows documentation the error is produced because their is no action associated with the batch file.

Quote:
SE_ERR_NOASSOC

There is no application associated with the given file name extension. This error will also be returned if you attempt to print a file that is not printable.
I found this fix on another forum and have not tried it myself. Download and Run the BAT File Association fix from this site.

http://www.dougknox.com/xp/file_assoc.htm

regards
david
__________________
Compuvision Australia Pty Ltd.
Power Tools for Metastock users.
http://www.compuvision.com.au
Reply With Quote
  #10  
Old 29th July 2010, 12:23 PM
Hank Hank is offline
Junior Member
Site Admin
 
Join Date: Sep 2007
Posts: 12
Default error 31 FIXED!!!

Hi David...

That did the trick!! Works like a champ...

Thanks for all your help.

Regards..
Hank
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:23 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright Compuvision Australia Pty Ltd, 2000-2009, All Rights Reserved