自由语境 [英] Free Context

查看:160
本文介绍了自由语境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用db2的5个上下文,而我需要使用其中之一并在任务结束后释放.这个过程在我的应用程序中已经完成了很多次,但是在获取上下文的情况下可以正常运行,但是在某些情况下会死掉

所以我想知道当我们使上下文无效,获取上下文并释放上下文时会发生什么确切的情况

重要的是,请帮助我

我只需要能清除所有这些内容或您对此内容的想法的文档

请帮助我.

i m using 5 context of db2 while i required i use one of them & release after task is over. this process done in many time in my application but some cases it run ok while getting context but in some cases it dies

so i want to know what exact happen when we inatlise the context, get the context & reliease the context

it,s important me please help me

just i want the document which clear all this thing or your idea regarding this thing

please help me.

推荐答案

在需要的地方打开数据上下文,然后立即关闭它.请勿在整个表单中使用一个上下文.不知道确切的原因,但是可以这样工作.
open the datacontext where you need it and close it right after. Do not use one context for the whole form. Don''t know the exact reason but it works this way.


这篇关于自由语境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆