Re: [opendbx] /dev/urandom file descritpors left open, libopendbx-devel Digest, Vol 49, Issue 1
Brought to you by:
nose
|
From: Norbert S. <no...@li...> - 2014-01-28 22:40:57
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Adam
> // Norbert, if this object is declared here then each call to this
> function // leaves a /dev/urandom file descriptor open. Making it
> global leaves only // a single file descriptor open. #ifndef
> USE_GLOBAL_DB_OBJECT OpenDBX::Conn GetAllTxFileDb; #endif
> PTR_COLUMN_NAME_POS_PAIR pNameCol = NULL;
>
> try { GetAllTxFileDb = Conn( "mssql", "172.16.232.60", "" );
Doesn't it crash if you remove the try/catch here and write
OpenDBX::Conn GetAllTxFileDb = Conn( "mssql", "172.16.232.60", "" );
instead? If it works, than the code in the copy constructors creates
the problem because you are creating an empty object first and copying
an initialized object into that afterwards.
Norbert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJS6DHnAAoJEA3e3tWv2uU+ux0P/0HFFhY7IySP8ljR6ZJyBFZ2
JDuPb0Xe1COF4ILv4BXik5t84X0isb6v+AyQ4UFLwgVBsJU6OS8TtiNjooC0ZH0p
b41U3YxWjr1w3HIg7nv4ZC9bXRCUG2HdZFRxVLlivA5dMobanAG+z5Engo+UC//I
Lzz3wYeokTMNZQnOpor1e+huo3TnN3N7M7SI2GSYFLmczd1oAMeVKwxh1U/t2ig+
IRHJF0xOLbL8L9OYe49O4LGcv33gRBXim2Pe/uG/jmF31c2ePkQsJS2/XcsXSPrD
Jh1M166QQRcHze190x715kSYKUc5RJ0CNYFZuPeMY/539HjPm6UVmZ7/L89cQ2Eb
R41OlHkrJc3W1L05l44hODIpO4sqRRXc+y254ALFFfDJT6iZbSuxSRIANDcX8VE0
QRD11HqpOAhwDGr3K6wy6djttKQIMQ2b7b9g56OMsdtCUl/nTrQ0QDoyyexjyhPv
G08Isv8B/LeMjK4IWvVyJUajl+zqJKbLFrBEMJ08Egg65ZIMy6NG51co7rWXbbld
CX6txJN2I067xiOCeOnDRWERS89hgOmgqqUOHeM94aVJIeIcIi3sg/8aCYuUJrtb
PVKsTZerOsrUZuGFxfsJn3KPEdiNdHcLWXIQlOphSQ5S4X9l5FZWV5fYQW8Huhm3
ghutwPPtZJPNBhKo/3X8
=rgQB
-----END PGP SIGNATURE-----
|