Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Too many variables
Message
From
29/11/2009 08:32:49
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01436885
Message ID:
01436886
Views:
114
>I have a program, that has the following code at the top:
>
 PRIVATE plValue, pcMessage, pcZipFile, pcDestDir, plZipIniExists,  pcCurDir, pcTmpFiles, pcLogFile, pcDrive, plOK, crlf 
> LOCAL lcError, lcSys16, lcProgram 
> lcError=ON('ERROR') 
> plOK=.T. 
>*- Trap all errors - will exit proram on any error 
> ON ERROR DO ErrorLog WITH ERROR(), MESSAGE(), PROGRAM(), LINENO()
>
> Program continues on from here. The above are the only variables used in this program. In the only subroutine ErrorLog, it has 5 more. That is way less than 65,000, which the help file is the max number of variables.
>
> A little more details...
>The program runs fine, no errors in the development environment, the "Too many variables" error occurs only in the exe. In the ErrorLog subroutine, I write out the details of the error to a text file, but the file does not get created, so the above error is not being trapped??
>
>There are no loops in the program... all it does is remove a couple of directories, and then unzips an archive into the removed directories.
>
> Any ideas out there?
>
>TIA,
> Mike

Unlikely with VFP9 but anyway do you use array anywhere that results in more than 65000 elements (such as adir()).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform