Cougar Mountain Software Support Productivity Tools
For Cougar Mountain Software Support's
Professional Version (V2012, V2011, V2010, V2009, V12-V6)

 

Reporting to the MAX including Point of Sale and Non-profit Versions Tech Tip

Question:
A CodeBasic error message -20 is received when trying to work in Reporting to the MAX.

 

Answer:
There are several possible causes for this error:

1. The specified file already exists. By default, when Reporting to the MAX including Point of Sale and Non-profit Versions attempts to create a data, index, or memo file, it does not over-write any existing file of the same name, and instead returns an error.

2. Reporting to the MAX including Point of Sale and Non-profit Versions ran out of valid file handles.

3. Codebasic errors can also be caused by specifying an illegal file name, attempting to create a file which is open, attempting to create a file which already exists, having a full directory, or by having a disk problem.

Resolution

Check the file handles in CONFIG.NT (CONFIG.SYS in Windows 98) and increase to 250:
1. Go to start > search > files and folders.
2. In the named field, type config.nt
3. In the search in select the local C drive.
4. Click Search now
5. It will find 2 files
6. Right click on the one in the folder C:\winnt\system32\ (C:\windows\system32 in XP).
7. Select Open With
8. From the list of programs that opens choose Notepad
9. When it opens, scroll to the bottom of the file.
10. Change the line that says files=x (x is any number) to files=250.
11. Click File > save
12. Click File > Close
13. Reboot your computer

Please use the standard numbers given for file handles as much as possible. For example some NT server setups will not work with a setting of 255.

More Information

This error is rare.