Forum OpenACS Q&A: Response to Personal/Corporate Calendar in ACS

Collapse
Posted by Leif Jensen on
I am amased that I didn't run into the following problem any sooner:

[20/Feb/2001:02:49:50][27955.10245][-conn3-] Error: dbinit: db handle limit exceeded: thread already
owns 1 handle from pool 'main'
[20/Feb/2001:02:49:50][27955.10245][-conn3-] Error: could not allocate 1 handle from pool "main"

It occurs because I have inserted [ns_db gethandle] ... ns_db release handle, in several places in the tcl functions. Of course these functions are nested, but in 3.4.x the db handles are controlled by the db_xxxx functions, whereas in 3.2.x they handled by the programmer, right? If I am right, to solve this problem you need quite a good idea of the structure the system (and the calendar package in particular). To get such an overview I would like some kind of tool to analyse tcl scripts. Does any of you have/know of such a tool or do you have any other idea of what to do in this situation. Has this occured in any of the other work of converting ACS -> OpenACS?