Re: [Haskell-cafe] Oracle Sessions in Takusen

2011-06-02 Thread Alistair Bayley
On 3 June 2011 05:35, Kevin Quick wrote: > Dmitry, > > I'm not directly familiar with Takusen or its use with OracleDB, but I would > hazard a guess that the withSession is doing FFI resource management and > that resources obtained inside the withSession environment are no longer > valid outside

Re: [Haskell-cafe] Oracle Sessions in Takusen

2011-06-02 Thread Kevin Quick
Dmitry, I'm not directly familiar with Takusen or its use with OracleDB, but I would hazard a guess that the withSession is doing FFI resource management and that resources obtained inside the withSession environment are no longer valid outside of the withSession. If this is the case then

Re: [Haskell-cafe] Oracle Sessions in Takusen

2011-06-01 Thread Jason Dagit
On Wed, Jun 1, 2011 at 9:01 AM, Jason Dagit wrote: > > I'm CC'ing the takusen email list so that Oleg and Alistair will see > your message.  They are more familiar with the Oracle support than I > am. I should really link to the original message: http://www.haskell.org/pipermail/haskell-cafe/2011

Re: [Haskell-cafe] Oracle Sessions in Takusen

2011-06-01 Thread Jason Dagit
On Wed, Jun 1, 2011 at 7:44 AM, Dmitry Olshansky wrote: > Hello, > > Could anyone explain strange behavior of Takusen with OracleDB (OraClient > 11.x)? Several sequential sessions give "Seqmentation Fault" error. In case > of nested sessions it works well. I'm CC'ing the takusen email list so tha

[Haskell-cafe] Oracle Sessions in Takusen

2011-06-01 Thread Dmitry Olshansky
Hello, Could anyone explain strange behavior of Takusen with OracleDB (OraClient 11.x)? Several sequential sessions give "Seqmentation Fault" error. In case of nested sessions it works well. {-# LANGUAGE ScopedTypeVariables #-} module Main where import Database.Oracle.Enumerator import Control.Mo