I have access, for testing at my client's site, a Win2000 computer
running A2003 retail. He recently upgraded all of his other machines to
DualCore Pentiums with 2 gig ram and run A2003 runtime. I believe all
current SPs for Windows and Office are installed on the fast machines.
I have 1 process/subroutine that has worked for a couple of years
without a problem. It works fine on the testing (slow) machine. The
process checks a folder for any INI files there. After I process the
INI file I change the extension to RED then search for any other INI
files in the folder.
Twice in the last week a situation has occurred where it reads the INI
file, processes the data. It's then supposed to rename the file to RED
and then find the next INI file. If not found it exits the loop. But
in one case 1500+ duplicate records were created from 1 INI file instead
of 1 record as expected and yesterday 775+ duplicate records were
created. It's like it processed the INI file, did the rename, but found
the same INI file before it could be renamed and processed it again for
many times until it finally could do the renaming and then exited the loop.
In another process, used since 2005 without incident, we have a printer
that converted files to PDFs. When the routine is called I call a DLL
via CreateObject, call a couple of DLL commands, then swap the default
printer to the PDF converter, print the report, and reset the printer.
However, on the fast computers, the PDF file was not being created. It
looked like it was bypassing the entire process. I saw I was trapping
for a specific error number, removed the trap so all errors would
display, and it calling the DLL code generated errors. I fixed this
problem by using Stephen Leban's PDF converter, an excellent replacement
since it works without a problem.
I can run both processes all day long from the slow computer. But on
the fast computers the problems occur.
I remember when FoxPro required a patch when fast computers came out to
slow the computer down so it could complete command instructions.
Do you have any ideas as to why a fast computer might have a problem
where slow computers don't? Do you think I should find anyplace in my
code that has a "Filecopy" or "Name" (DOS rename), or any other DOS like
commands and insert a DoEvents after it?
running A2003 retail. He recently upgraded all of his other machines to
DualCore Pentiums with 2 gig ram and run A2003 runtime. I believe all
current SPs for Windows and Office are installed on the fast machines.
I have 1 process/subroutine that has worked for a couple of years
without a problem. It works fine on the testing (slow) machine. The
process checks a folder for any INI files there. After I process the
INI file I change the extension to RED then search for any other INI
files in the folder.
Twice in the last week a situation has occurred where it reads the INI
file, processes the data. It's then supposed to rename the file to RED
and then find the next INI file. If not found it exits the loop. But
in one case 1500+ duplicate records were created from 1 INI file instead
of 1 record as expected and yesterday 775+ duplicate records were
created. It's like it processed the INI file, did the rename, but found
the same INI file before it could be renamed and processed it again for
many times until it finally could do the renaming and then exited the loop.
In another process, used since 2005 without incident, we have a printer
that converted files to PDFs. When the routine is called I call a DLL
via CreateObject, call a couple of DLL commands, then swap the default
printer to the PDF converter, print the report, and reset the printer.
However, on the fast computers, the PDF file was not being created. It
looked like it was bypassing the entire process. I saw I was trapping
for a specific error number, removed the trap so all errors would
display, and it calling the DLL code generated errors. I fixed this
problem by using Stephen Leban's PDF converter, an excellent replacement
since it works without a problem.
I can run both processes all day long from the slow computer. But on
the fast computers the problems occur.
I remember when FoxPro required a patch when fast computers came out to
slow the computer down so it could complete command instructions.
Do you have any ideas as to why a fast computer might have a problem
where slow computers don't? Do you think I should find anyplace in my
code that has a "Filecopy" or "Name" (DOS rename), or any other DOS like
commands and insert a DoEvents after it?
Comment