Don't do that.

/Oskar


2011/5/22 litgle <[email protected]>:
> Yes, I'm use the same session with multithreaded, because I use
> Singleton in DAO.
>
> On 5月21日, 下午5时29分, Oskar Berggren <[email protected]> wrote:
>> You may have a problem with multithreaded use of the same session.
>> /Oskar
>>
>> 2011/5/20 litgle <[email protected]>:
>>
>>
>>
>>
>>
>>
>>
>> > hello, all
>>
>> > My project is a WPF desktop application, I use nhibernate in this
>> > project, and I enable lazy in entity map.
>>
>> > It's work well most time, but it happen exception sometime like this:
>> > "There is already an open DataReader associated with this Command
>> > which must be closed first."
>> > or
>> > "Session is closed!"
>>
>> > I do not use using(){} to dispose session.
>>
>> > so, what can i do?
>>
>> > Regards,
>> > yuzifu.
>>
>> > --
>> > You received this message because you are subscribed to the Google Groups 
>> > "nhusers" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to 
>> > [email protected].
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/nhusers?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/nhusers?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to