[EMAIL PROTECTED] (David N. Welton) writes: > > I had to do things slightly different from Rivet - using an > > environment variable seemed to cause more problems, and required > > linking in with -liberty to get setenv() under MingW32. Not sure > > if that library is thread safe in any case. I used a static flag > > instead. Also, I do the real init on the first load, and skip the > > load after that. I think that is backwards from Rivet, but the > > other way crashed pretty horribly under a non-threaded build.
> The env variable was an (ugly) hack. Are you sure that the static > flag is that, across multiple open and closes of a library? If it > is, it's a better solution. I'm nervous it won't be multiplatform, > though... Will Rowe says that, indeed, static variables aren't the way to go. Damn. I'll see if I can dig up something better. -- David N. Welton Consulting: http://www.dedasys.com/ Personal: http://www.dedasys.com/davidw/ Free Software: http://www.dedasys.com/freesoftware/ Apache Tcl: http://tcl.apache.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
