发表于:2007-12-13 10:09:00
楼主
首先我在ODBC数据源处创建了数据源mhrtu
然后通过在intouch启动时使用 SQLConnect(connectid,"dsn=mhrtu;uid=sa;pwd=a" );
接着我在运行期间写如下的一些语句
ds=SQLSelect(connectid,"rec_analogy_queue","water1","uid=1 AND ChId=1 ","DataVal");
SQLNext(connectid); SQLEnd(connectid);
SQLSelect(connectid,"rec_analogy_queue","water11","uid=11 AND ChId=1","DataVal");
SQLNext(connectid); SQLEnd(connectid);
SQLSelect(connectid,"rec_analogy_queue","time1","uid=1 AND ChId=1 ","RecTime");
SQLNext(connectid); SQLEnd(connectid);
SQLSelect(connectid,"rec_analogy_queue","time2","uid=2 AND ChId=1 ","RecTime");
SQLNext(connectid); SQLEnd(connectid);
并且条件类型为运行期间,每6分钟执行一次
我的问题是:为什么当intouch运行几天之后会出现虚拟内存不足,导致计算机死机的问题???