It is possible, it is good programming practice to define all of your variables outside the loops; you can always change the value of the variable inside the loop but define it outside. In my code, I always put a block at the top where I define all the variables and another at the end where I clear them. When I need to add another variable I go to the top and define and then to the bottom to clear it (if needed), this allows you to easily keep track of all you variables. Javier,
Javier Valencia, PE President Valencia Technology Group, L.L.C. 14315 S. Twilight Ln, Suite #14 Olathe, Kansas 66962-4578 Office (913)829-0888 Fax (913)649-2904 Cell (913)915-3137 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of rich Jasinski Sent: Thursday, July 10, 2003 8:10 AM To: RBASE-L Mailing List Subject: [RBASE-L] - RE: RBw65.exe has caused an exception I have finally found the line of code that is causing it to crash, even in trace mode. I am doing a : load tablea from .vfile as ascii I redefine the vfile variable in a whileloop just before I do the load. Could this be the problem? rich ----- Original Message ----- From: "Ramsour Mike" <[EMAIL PROTECTED]> To: "RBASE-L Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, July 10, 2003 8:12 AM Subject: [RBASE-L] - RE: RBw65.exe has caused an exception > Rich: > > I had a rash of problems like this several months back. It was driving me > crazy! I made a number of changes and enhancements that ultimately > eliminated the problem. R:Base is running smooth as butter now. > > I would suggest that you carefully inspect each R:Base script/program that > is involved in this process. In my instance I had a command file that had > the notorious hanging continuation character. A line of code ended with a > plus sign (+) that was not needed. > > Use R:Code to check your programs. Note that R:Code is not a compiler and > it will not catch the hanging continuation problem but you may be surprised > to find some hard-to-find coding errors. > > I have also greatly reduced my use of temporary tables. A comment was made > some time back to the effect that temporary tables do not handle indexes > well. I have cleaned up my code considerably. I create and type each > variable very explicitly and then I clear them once they're not needed. > Make sure you are not attempting to use a variable or redefining a variable > to an incompatible type depending on how it's being used. > > Review the rules for WHILE loops and using cursors if you use them. > > Beyond that make sure you have the latest service packs for all software. > Service Pack 4 was just released for Windows 2000. > > Another thing that may have been causing me problems was a known conflict > between Norton Antivirus and the Adobe Distiller software. Here again make > sure you are using the latest versions/patches/fixes. This goes both for > the Norton product and the Adobe software. > > Others will probably chime in with other suggestions but I can tell you from > my own experience that I have eliminated nearly all R:Base crashes. > Probably 99% of the time it's a programming problem or a software issue > outside of R:Base. > > Hope that helps. > > Mike Ramsour > voice: 740-829-4340 > > -----Original Message----- > From: rich Jasinski [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 10, 2003 7:00 AM > To: [EMAIL PROTECTED] > Subject: [RBASE-L] - RBw65.exe has caused an exception > > > > > > > I have a client that has the latest version of 6.5++. They are experiencing > a great increase in the number of time rbase crashes with the above error. > When looking at the Dr Waqtson log it is always an access violation. The > machine is a new 1.7gz with 2 gig of memory running win2000 professional. > The problem seems to occur when a command file is selected off of a APP pull > down. The comand file starts executes a few lines of code then crashed. When > I trace the command file it runs without a problem. > > Any ideas? > > rich

