From: Pavel T. <tp...@ma...> - 2010-11-14 07:56:30
|
Hello, all I want from one client connected to many servers letodb, and restriction MAX_CONNECTIONS_NUMBER was to be removed. For this purpose it is necessary to allocate dynamically memory for letoConnPool. It's better to do by a call hb_xrealloc. But this function can move memory area to other place and then pConnection in AREASTRU will refer to not allocated memory that is bad. There is a sentence: instead of the reference in AREASTRU to store an index uiConnection in letoConnPool. BTW, the similar possible bug is in harbour/contrib/rddsql: if memory under s_pConnection is reallocated, the reference on pConnection in _SQLBASEAREA can cause gpf Best regards, Pavel Tsarenko |