Hello, I have a problem using BDE in an ISAPI application under IIS 6.0, running on a W2003 server. Now please don't say "Don't use BDE", because unfortunately there are practical reasons I can't in this particular situation.
Brief description (after downsizing the problem): - Two ISAPI DLLs, each running in an application pool of its own. - The first performs DbiInit() - and that's all it does. - The second als tries to perform DbiInit(), but gets "Share violation" error code ($2B32). Complete Case: - Two ISAPI DLLs (written in D6) both use BDE (through the DbTables unit). - As long as only one of the two is used, everything works fine. The trouble begins, both are used. - If both are running in the same application pool (=worker process), they apparently hinder each other, although I can't clearly pinpoint the problem. After some time, strange access violations occur, at apparently "random" locations, that is, I can find no logic in it. - If each DLL is running in an application pool of its own, I'd expect no problems. After all, in that case, both are running in separate processes, so why would they interfere with each other? But the fact is, that the first dll to be used works fine, the second can't even initialize the BDE. The DbiInit call returns $2B32, which stands for error category "Os Error not handled by Idapi" and error code "Share violation". Now the customer wants to each dll in an application pool of its own, so the question is, what causes this "Share violation". I downsized the problem by creating a test ISAPI dll, that does nothing but a single call to DbiInit(). If I run the thing twice from different virtual directories (IIS) and in different application pools, I get the same error code. So the first one only initializes the BDE (it doesn't even start a session, so it's got nothing to do with the NET DIR or the Private Dir) and the second one fails. What are they trying to share that doesn't want to be shared? I'm puzzled. Peter Laman ---------------------------------- The Lance Group, software to promote plant safety in the Process Industry drs. Peter laman Web: http://www.lance-safety.com __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk