TIP: Click on subject to list as thread! ANSI
echo: nthelp
to: Paul Ranson
from: Adam Flinton
date: 2005-05-18 21:17:50
subject: Re: What`s wrong with Microsoft???

From: Adam Flinton 

Paul Ranson wrote:
> But implementing your 'proper pooling mechanism' is far from trivial. How
> does the pool know you're done with a connection? You have to tell it. A bit
> analagous to new/delete that. Hmm. Cue the tired programmer syndrome. Or let
> the compiler use a destructor to do the work.
>

Nah mate...pool has a scavenge if not active mech & your code simply
does an if null getConnection before launching into some sql.

OK so instead of a memleak the tired progger will give you a null pointer
error but that can be found & flush fairly fast.


> So why doesn't Java have destructors? I can't find a good reason.
>

Why does a managed vm need to let the coder do that?

Heck if you're writing native win32 c++ you're in a managed sandbox too,
the only diff being the sandbox is the OS.

Adam

--- BBBS/NT v4.01 Flag-5
* Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/45)
SEEN-BY: 633/267 270 5030/786
@PATH: 379/45 1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.