evertonlb Posted October 21, 2014 Report Share Posted October 21, 2014 Camaradas.. sei que esta minha duvida não faz parte do objeto principal desta lista. Peço licença aos moderadores. To com um problema num cliente. O que ocorre é o seguinte: Tenho rodando num cliente uma versão em Clipper. Foi colocado uma máquina nova i3-4150 com Win7 32, acessando um computador no caixa ( servidor ) com Win XP A máquina nova acessa o XP e abre o programa certinho, o que ta acontecendo é uma demora de quase 2 segundos para as respostas do ESC, ENTER, Troca de Menu, etc... Já na entrada, quando clico sobre o atalho, demora uns 25 segundos para aparecer algo na tela. Tenho a tela que pede a senha do operador e da loja, são 4 get´s, demora uns 2 a 3 segundos para passar de um get pra outro. Dentro de um cadastro de cliente, onde tem muitos get´s, ele passa rapidinho por todos.. Só da uma travada quando tem algum acesso ao Banco de Dados (DBF) Tenho mais máquinas com o Win7 32 rodando em outros clientes sem problemas, mas aqui ta demorado. Ja alterei as propriedades de uso da memória, mas nada muda. Pensando que pudesse ser algo na rede coloquei uma cópia no HD local pra ver se melhorava... Não melhorou as "paradas" continuam as mesmas!!! Alguem já passou por isso, ou em alguma ideia do que posso fazer?? Att. Everton Quote Link to comment Share on other sites More sharing options...
kapiaba Posted October 21, 2014 Report Share Posted October 21, 2014 Não... pera! Explique, pois ficou confuso: Quem é o SERVIDOR? O Windows 7 ou XP? Você alterou as configurações do AUTOEXEC.NT e do CONFIG.NT das duas máquinas. PS.; Não é recomendável, que o XP(Que já está fora de combate) seja o SERVIDOR e o WINDOWS 7, um TERMINAL. abs. Quote Link to comment Share on other sites More sharing options...
evertonlb Posted October 21, 2014 Author Report Share Posted October 21, 2014 O Servidor é o XP. Esta "redinha" já esta em funcionamento a bastante tempo, os config e autoexec estão configurados. A não ser que tenha algo que eu não saiba e nunca tenha feito, e mesmo assim até agora não fez muita diferença. Sei que não é recomendável ter o XP como servidor... Mas a lentidão não é originada por este fato.. o Win7, executando o programa em Clipper instalado no HD local, isto é, na propria máquina que tem o Win7, tambem fica lento... inclusive no momento da impressão... Mando uma etiqueta para a argox, demora cerca de 12 segundos para começar a impressão... Quote Link to comment Share on other sites More sharing options...
kapiaba Posted October 21, 2014 Report Share Posted October 21, 2014 mostre o AUTOEXEC.NT e CONFIG.NT das duas máquinas. Já viu virus? Quote Link to comment Share on other sites More sharing options...
evertonlb Posted October 21, 2014 Author Report Share Posted October 21, 2014 ja mando os autoexec e config... Considerei que a máquina é nova e não vi virus.. vou ver agora... Att. Everton Quote Link to comment Share on other sites More sharing options...
evertonlb Posted October 21, 2014 Author Report Share Posted October 21, 2014 Autoexec do XP @echo off REM AUTOEXEC.BAT nao ‚ usado para inicializar o ambiente MS-DOS. REM AUTOEXEC.NT ‚ usado para inicializar o ambiente MS-DOS, a nao REM ser que se especifique um arquivo de inicializa‡ao diferente REM no arquivo de informa‡oes de programa (PIF) do aplicativo. REM Instalar as extensoes CD ROM lh %SystemRoot%\system32\mscdexnt.exe REM Instalar o redirecionador da rede (carregar antes do dosx.exe) lh %SystemRoot%\system32\redir REM Instalar o suporte DPMI lh %SystemRoot%\system32\dosx Config do XP REM Arquivo de inicialização do MS-DOS no Windows REM REM CONFIG.SYS x CONFIG.NT REM O arquivo CONFIG.SYS não é usado para inicializar o ambiente REM do MS-DOS. Com este fim é usado o arquivo CONFIG.NT, a não ser REM que um arquivo de inicialização diferente seja especificado no REM arquivo de informação de programa (PIF) de um aplicativo. REM REM ECHOCONFIG REM Por padrão, nenhuma informação é exibida ao se inicializar o REM ambiente do MS-DOS. Para exibir as informações dos arquivos REM CONFIG.NT e AUTOEXEC.NT, adicione o comando ECHOCONFIG ao arquivo REM CONFIG.NT ou a outro arquivo de inicialização. REM REM NTCMDPROMPT REM Quando se retorna de um programa residente na memória ao prompt REM de comando ou enquanto se executa um aplicativo do MS-DOS, o Windows REM executa o COMMAND.COM para permitir que o programa residente permaneça REM ativo. Se você desejar que o Prompt de comando do Windows (CMD.EXE) REM seja executado ao invés do COMMAND.COM, adicione o comando ntcmdprompt REM ao arquivo CONFIG.NT ou a outro arquivo de inicialização. REM REM DOSONLY REM Por padrão, você pode iniciar qualquer aplicativo executando o programa REM COMMAND.COM. Se você iniciar um aplicativo que não seja do MS-DOS, é REM possível que programas residentes na memória sejam interrompidos. Para REM garantir que somente aplicativos do MS-DOS possam ser iniciados, adicione REM o comando dosonly ao arquivo CONFIG.NT ou a outro arquivo de REM inicialização. REM REM EMM REM Você pode usar a linha de comando EMM para configurar o gerenciador REM de memória expandida (EMM). A sintaxe é a seguinte: REM REM EMM = [A=ConjRegMapAlts] [b=SegmentoBase] [RAM] REM REM ConjRegMapAlts REM especifica o total de conjuntos de registros de mapeamento REM alternativos que você deseja que o sistema aceite. REM 1 <= AltRegSets <= 255. O valor padrão é 8. REM SegmentoBase REM especifica o endereço do segmento inicial na memória REM convencional do DOS em que você deseja que o sistema aloque REM os quadros de páginas do EMM. O valor deve ser fornecido em REM números hexadecimais. 0x1000 <= SegmentoBase <= 0x4000. REM O valor é arredondado para baixo no limite de 16 Kb. REM O valor padrão é 0x4000. REM RAM REM especifica que o sistema deve alocar somente 64 Kb do espaço REM de endereçamento da área do Bloco de Memória Superior (UMB) REM para quadros de páginas do EMM e deixar o restante (se REM houver) para ser usado pelo DOS para aceitar comandos REM loadhigh e devicehigh. Por padrão, o sistema aloca o REM máximo possível para os quadros de páginas. REM REM O tamanho do EMM é determinado pelo arquivo PIF associado ao REM aplicativo ou pelo arquivo _default.pif. Se o tamanho do arquivo REM PIF for igual a zero, o EMM será desativado e a linha de comando REM EMM ignorada. REM dos=high, umb device=%SystemRoot%\system32\himem.sys files=250 Quote Link to comment Share on other sites More sharing options...
evertonlb Posted October 21, 2014 Author Report Share Posted October 21, 2014 Autoexec do Win7-32 @echo off REM AUTOEXEC.BAT is not used to initialize the MS-DOS environment. REM AUTOEXEC.NT is used to initialize the MS-DOS environment unless a REM different startup file is specified in an application's PIF. REM Install CD ROM extensions lh %SystemRoot%\system32\mscdexnt.exe REM Install network redirector (load before dosx.exe) lh %SystemRoot%\system32\redir REM Install DPMI support lh %SystemRoot%\system32\dosx REM The following line enables Sound Blaster 2.0 support on NTVDM. REM The command for setting the BLASTER environment is as follows: REM SET BLASTER=A220 I5 D1 P330 REM where: REM A specifies the sound blaster's base I/O port REM I specifies the interrupt request line REM D specifies the 8-bit DMA channel REM P specifies the MPU-401 base I/O port REM T specifies the type of sound blaster card REM 1 - Sound Blaster 1.5 REM 2 - Sound Blaster Pro I REM 3 - Sound Blaster 2.0 REM 4 - Sound Blaster Pro II REM 6 - SOund Blaster 16/AWE 32/32/64 REM REM The default value is A220 I5 D1 T3 and P330. If any of the switches is REM left unspecified, the default value will be used. (NOTE, since all the REM ports are virtualized, the information provided here does not have to REM match the real hardware setting.) NTVDM supports Sound Blaster 2.0 only. REM The T switch must be set to 3, if specified. SET BLASTER=A220 I5 D1 P330 T3 REM To disable the sound blaster 2.0 support on NTVDM, specify an invalid REM SB base I/O port address. For example: REM SET BLASTER=A0 Config do Win7-32 REM Windows MS-DOS Startup File REM REM CONFIG.SYS vs CONFIG.NT REM CONFIG.SYS is not used to initialize the MS-DOS environment. REM CONFIG.NT is used to initialize the MS-DOS environment unless a REM different startup file is specified in an application's PIF. REM REM ECHOCONFIG REM By default, no information is displayed when the MS-DOS environment REM is initialized. To display CONFIG.NT/AUTOEXEC.NT information, add REM the command echoconfig to CONFIG.NT or other startup file. REM REM NTCMDPROMPT REM When you return to the command prompt from a TSR or while running an REM MS-DOS-based application, Windows runs COMMAND.COM. This allows the REM TSR to remain active. To run CMD.EXE, the Windows command prompt, REM rather than COMMAND.COM, add the command ntcmdprompt to CONFIG.NT or REM other startup file. REM REM DOSONLY REM By default, you can start any type of application when running REM COMMAND.COM. If you start an application other than an MS-DOS-based REM application, any running TSR may be disrupted. To ensure that only REM MS-DOS-based applications can be started, add the command dosonly to REM CONFIG.NT or other startup file. REM REM EMM REM You can use EMM command line to configure EMM(Expanded Memory Manager). REM The syntax is: REM REM EMM = [A=AltRegSets] [b=BaseSegment] [RAM] REM REM AltRegSets REM specifies the total Alternative Mapping Register Sets you REM want the system to support. 1 <= AltRegSets <= 255. The REM default value is 8. REM BaseSegment REM specifies the starting segment address in the Dos conventional REM memory you want the system to allocate for EMM page frames. REM The value must be given in Hexdecimal. REM 0x1000 <= BaseSegment <= 0x4000. The value is rounded down to REM 16KB boundary. The default value is 0x4000 REM RAM REM specifies that the system should only allocate 64Kb address REM space from the Upper Memory Block(UMB) area for EMM page frames REM and leave the rests(if available) to be used by DOS to support REM loadhigh and devicehigh commands. The system, by default, would REM allocate all possible and available UMB for page frames. REM REM The EMM size is determined by pif file(either the one associated REM with your application or _default.pif). If the size from PIF file REM is zero, EMM will be disabled and the EMM line will be ignored. REM dos=high, umb device=%SystemRoot%\system32\himem.sys files=250 Quote Link to comment Share on other sites More sharing options...
evertonlb Posted October 21, 2014 Author Report Share Posted October 21, 2014 Sinceramente.. depois que comecei a usar a rede win e larguei mão da Lantastic e do QEMM ( lembra destes? hahaha ) nunca mais fiz nada alem de colocar Files=250 no config. Att. Everton Quote Link to comment Share on other sites More sharing options...
kapiaba Posted October 21, 2014 Report Share Posted October 21, 2014 @echo off REM AUTOEXEC.BAT is not used to initialize the MS-DOS environment. REM AUTOEXEC.NT is used to initialize the MS-DOS environment unless a REM different startup file is specified in an application's PIF. REM Install CD ROM extensions lh %SystemRoot%\system32\mscdexnt.exe REM Install network redirector (load before dosx.exe) lh %SystemRoot%\system32\redir REM Install DPMI support lh %SystemRoot%\system32\dosx KB16 BR,850,C:\WINDOWS\SYSTEM32\KEYBRD2.SYS /ID:275 SET CLIPPER=F250 REM The following line enables Sound Blaster 2.0 support on NTVDM. REM The command for setting the BLASTER environment is as follows: REM SET BLASTER=A220 I5 D1 P330 REM where: REM A specifies the sound blaster's base I/O port REM I specifies the interrupt request line REM D specifies the 8-bit DMA channel REM P specifies the MPU-401 base I/O port REM T specifies the type of sound blaster card REM 1 - Sound Blaster 1.5 REM 2 - Sound Blaster Pro I REM 3 - Sound Blaster 2.0 REM 4 - Sound Blaster Pro II REM 6 - SOund Blaster 16/AWE 32/32/64 REM REM The default value is A220 I5 D1 T3 and P330. If any of the switches is REM left unspecified, the default value will be used. (NOTE, since all the REM ports are virtualized, the information provided here does not have to REM match the real hardware setting.) NTVDM supports Sound Blaster 2.0 only. REM The T switch must be set to 3, if specified. SET BLASTER=A220 I5 D1 P330 T3 REM To disable the sound blaster 2.0 support on NTVDM, specify an invalid REM SB base I/O port address. For example: REM SET BLASTER=A0 Quote Link to comment Share on other sites More sharing options...
kapiaba Posted October 21, 2014 Report Share Posted October 21, 2014 REM Windows MS-DOS Startup File REM REM CONFIG.SYS vs CONFIG.NT REM CONFIG.SYS is not used to initialize the MS-DOS environment. REM CONFIG.NT is used to initialize the MS-DOS environment unless a REM different startup file is specified in an application's PIF. REM REM ECHOCONFIG REM By default, no information is displayed when the MS-DOS environment REM is initialized. To display CONFIG.NT/AUTOEXEC.NT information, add REM the command echoconfig to CONFIG.NT or other startup file. REM REM NTCMDPROMPT REM When you return to the command prompt from a TSR or while running an REM MS-DOS-based application, Windows runs COMMAND.COM. This allows the REM TSR to remain active. To run CMD.EXE, the Windows command prompt, REM rather than COMMAND.COM, add the command ntcmdprompt to CONFIG.NT or REM other startup file. REM REM DOSONLY REM By default, you can start any type of application when running REM COMMAND.COM. If you start an application other than an MS-DOS-based REM application, any running TSR may be disrupted. To ensure that only REM MS-DOS-based applications can be started, add the command dosonly to REM CONFIG.NT or other startup file. REM REM EMM REM You can use EMM command line to configure EMM(Expanded Memory Manager). REM The syntax is: REM REM EMM = [A=AltRegSets] [B=BaseSegment] [RAM] REM REM AltRegSets REM specifies the total Alternative Mapping Register Sets you REM want the system to support. 1 <= AltRegSets <= 255. The REM default value is 8. REM BaseSegment REM specifies the starting segment address in the Dos conventional REM memory you want the system to allocate for EMM page frames. REM The value must be given in Hexdecimal. REM 0x1000 <= BaseSegment <= 0x4000. The value is rounded down to REM 16KB boundary. The default value is 0x4000 REM RAM REM specifies that the system should only allocate 64Kb address REM space from the Upper Memory Block(UMB) area for EMM page frames REM and leave the rests(if available) to be used by DOS to support REM loadhigh and devicehigh commands. The system, by default, would REM allocate all possible and available UMB for page frames. REM REM The EMM size is determined by pif file(either the one associated REM with your application or _default.pif). If the size from PIF file REM is zero, EMM will be disabled and the EMM line will be ignored. REM dos=high, umb device=%SystemRoot%\system32\himem.sys FILES=250 BUFFERS=32 Quote Link to comment Share on other sites More sharing options...
evertonlb Posted October 21, 2014 Author Report Share Posted October 21, 2014 sem virus algum... Att. Everton Quote Link to comment Share on other sites More sharing options...
evertonlb Posted October 21, 2014 Author Report Share Posted October 21, 2014 Coloquei o Config e Autoexec que tu me enviou Kapiaba.. Até achei que o poderia ser algo relacionado a Buffers.. que eu não tinha colocado.. reiniciei a máquina mas tudo permanece igual... Obrigado pela ajuda.. continuarei para ver o que esta acontecendo... deve ser alguma configuração besta!!! Quote Link to comment Share on other sites More sharing options...
emotta Posted October 21, 2014 Report Share Posted October 21, 2014 Everton, veja neste link a parte que fala da oslib. http://forum.baboo.com.br/index.php?/topic/281239-ntvdm-clipper-pico-de-processamento/ Olá! Td bem?Seguinte, estava com esse mesmo problema, mesmo setandoas variaveis de ambiente do w2k ou xp, continuava a dar esses picos de100% de uso do processador.A unica solução que encontrei foi baixar a biblioteca oslib(http://www.the-oasis...ry/oslib105.zip)dae logo no inicio do programa principal você coloca a essa função:OL_Autoyielt(.t.)Essa função retorna ao sistema operacional um parametro de tempo ao SO.Resolvido o problema.Bem, essa dica só é valida p/ quem tiver os fontes.Essabiblioteca tem outras funções que interage com o SO. Tipo colocar telacheia, saber qual o sistema operacional que tah rodando, versão.Muito bom mesmo. Quote Link to comment Share on other sites More sharing options...
evertonlb Posted October 22, 2014 Author Report Share Posted October 22, 2014 Valeu Eduardo.. Eu ja tinha uma função semelhante no meu software.. mas mesmo assim, tirei e coloquei a da tua sugestão. Infelizmente o problema continua.. Mas o que notei é que se eu inicio em Tela Cheia, da essa demora, mas se inicio em Janela fica na velocidade normal.. deve ser alguma configuração... assim que tiver alguma resposta eu posto aqui.. Obrigado Att. Everton Quote Link to comment Share on other sites More sharing options...
Jorge Andrade Posted October 23, 2014 Report Share Posted October 23, 2014 Everton Boa noite Faça um teste, experimente comentar as linhas abaixo, para que a memória base cresça, e veja se melhora. Obs: Ao comentar estas linhas, o clipper não permite compilação. lh %SystemRoot%\system32\mscdexnt.exe REM Instalar o redirecionador da rede (carregar antes do dosx.exe) lh %SystemRoot%\system32\redir REM Instalar o suporte DPMI lh %SystemRoot%\system32\dos []s, Quote Link to comment Share on other sites More sharing options...
evertonlb Posted October 23, 2014 Author Report Share Posted October 23, 2014 Cara, obrigado pela dica.. vou experimentar sim... Na realidade já voltei pra casa, mas vou fazer um acesso remoto e ver como fica.. deixei o software executando em "Janela", uma janela bem grande. Mas o cara insiste em querer tela cheia.. agora, imagina um monitor de 17" executando um software em 80x25 em tela cheia!?!? As letras ficam do tamanho de uma caixa de fósforo.. hahahahah Mas vou testar. Att. Everton Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.