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..

 채택된 답변

Walter Roberson
Walter Roberson 2012년 6월 28일

0 개 추천

댓글 수: 2

vivek
vivek 2012년 7월 2일
편집: vivek 2012년 7월 2일
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) ?
Walter Roberson
Walter Roberson 2012년 7월 2일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by