From: Joerg B. <jo...@sq...> - 2003-02-27 15:21:25
|
Hi Steve! Steve Blinkhorn wrote: > > I seem to have hit on a difference between NT4 and 2000 in trying to > track down a crash-inducing bug. [...] > > However, when I run the same executable on NT4 rather than Win2000, > there is no problem. [...] I had a similar experience: My program would fail on a colleague's machine running Win2000, but work fine (using the same input file!) on my WinNT machine. > > The problem is a dynamic one: the same code is used repeatedly - many > many times - before we hit a problem, Same here - it worked (even) on Win2000 using smaller input files. > and I wonder whether in Win2000 > writing to the environment is less flexible, maybe not such careful > garbage collection and reallocation. My program does not do "putenv()", but it builds tables from the identifiers in the input file (it is a kind of compiler). The tables are dynamically extended using "malloc()". I solved the problem by increasing the initial table size so much (machines have got more RAM now than in earlier times) that "malloc()" is needed less often (or not at all). HTH, Joerg Bruehe -- Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany (speaking only for himself) mailto: jo...@sq... |