Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: 3397: List Itemization: Could not allocate global buffer
However sometimes (not everytime the function is executed) the program terminates with the error: 3397: List Itemization: Could not allocate global buffer
This error seems strange to me because it only happens a few times a day. I thought about some memory problem, so I dropped the variable containing the results of the FileItemize function. However the error still exists.
Is there anyone who can tell me what is going on and what is meant by the "global buffer"?
More Info: I use the FileItemize function to see all the logfiles in a directory. The size of each log file is limited to 10MB, the number of logfiles in the directory is growing each time. However at this moment, 10-20 files are located in the directory.
If the Winbatch program is restarted, the FileItemize function does not give an error anymore. Only after a few hours of running the "Could not allocate global buffer" error occurs. The Winbatch program should be running in loop for ever. Might this be a problem?
Currently I suspect your script? How big is it? Does it allocate any Binary Buffers or arrays?
The general technique here is:
Variables declared in a function, will they be de-alocated automatically by Winbatch or should I do an manual drop? Should I try dropping the variable arrays?
For now I will use your workaround, exiting the script on an error. The script is restarted automatically, using the winNT schedule service.
Drops should not be required.
Article ID: W14845
File Created: 2001:11:08:12:40:20
Last Updated: 2001:11:08:12:40:20