problem while running a code

i m using Matlab 7.8.0(R2009a) in my 64 bit window 7 pc, and i m facing an error while running a (.m) file, it shows the following error(s)
Error in ==> gaunc at 111
Error in ==> ga at 279
Error in ==> allcrossoversc2 at 23
??? C:\Program Files\MATLAB\R2009a\toolbox\matlab\codetools\opentoline.m: Too many files open; check that FILES = 20
in your CONFIG.SYS file.
however the same code is running successfully on a pc having 32bit window xp.
what is the probable cause of this kind of error and what may be the solution for this, can anyone help me and tell me the solution for this or where i c an find the file CONFIG.SYS.
thanks in advance..

 Risposta accettata

Walter Roberson
Walter Roberson il 28 Giu 2012

0 voti

2 Commenti

vivek
vivek il 2 Lug 2012
Modificato: vivek il 2 Lug 2012
thanxx for your answer, i got both the files config.sys and autoexec.bat and manipulated as well;
i modified the files=40 parameter in file, but the problem still exists,
??? C:\Program Files\MATLAB\R2009a\toolbox\matlab\codetools\opentoline.m: Too many files open; check that FILES = 20 in your CONFIG.SYS file.
i also tried the same in config.nt but didnt get any +ve result,
can anyone tell me how to overcome this problem?, if i m doing any mistake then what exactly to be written in that file(s) ?
I suspect that the message about CONFIG.SYS is left over in the code, referring to older operating systems. You might be ending up with too many files open, but for reasons that have nothing to do with CONFIG.SYS . In Windows 7 you should be able to open at least 2045 files, possibly 16381 files; see http://stackoverflow.com/questions/870173/is-there-a-limit-on-number-of-open-files-in-windows
You could be running in to the limit if the routine you are invoking from ga is opening files but not closing them. Please show your code.

Accedi per commentare.

Più risposte (0)

Categorie

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by