Re: [tcljava-user] Fwd: RE: [TDK-BETA] Error when Using TclDev Kit 4.0 debugger with Tclblend.
Brought to you by:
mdejong
From: Patrick F. <pfi...@oz...> - 2007-04-06 13:51:59
|
On Friday 23 March 2007 14:16, Tom Poindexter wrote: You are correct. The garbage collection is causing the problem. Thanks for your help. Patrick. > On Fri, Mar 23, 2007 at 01:38:01PM +0000, Patrick Finnegan wrote: > > Error occurs when variable is used as command. This problem does not > > occur on Komodo 4.0 or RamDebugger. > > > > set ConnectionI [ java::call DriverManager getConnection $url ] > > > > putsLog "transaction isolation level is [ $ConnectionI > > getTransactionIsolation ]" > > > > $ConnectionI resolves to "java0x2" > > > > Error msg. > > > > invalid command name "java0x2" > > while executing > > "$ConnectionI getTransactionIsolation" > > I don't have TDK so I can't confirm, but it appears to > me that the reflected Connection object is being > garbage collected, possibly due to going out of > scope while be run by the debugger. > > Try using: > java::autolock 1 > > or wrap your connection with: > java::lock [ set ConnectionI [ java::call DriverManager getConnection > $url ] ] |