jinfeng_wang

          G-G-S,D-D-U!

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            400 Posts :: 0 Stories :: 296 Comments :: 0 Trackbacks
           

          C++ constructors are called to initialize class objects when those objects are created, and destructors are invoked when class objects are destroyed. For automatic (that is, local, non-static) variables that contain constructors and destructors, the constructor is called when the variable comes into scope and the destructor is called when the variable goes out of scope. However, when you call the tpreturn() or tpforward() function, the compiler performs a non-local goto (using longjmp(3)) such that destructors for automatic variables are not called. To avoid this problem, write the application so that you call tpreturn() or tpforward() from the service routine directly (instead of from any functions that are called from the service routine). In addition, one of the following should be true:

          posted on 2009-05-22 16:20 jinfeng_wang 閱讀(569) 評論(0)  編輯  收藏 所屬分類: ZZLinux 、tuxedo
          主站蜘蛛池模板: 巴楚县| 安西县| 桐柏县| 大足县| 汝阳县| 开江县| 朔州市| 黄浦区| 大渡口区| 巫山县| 凭祥市| 原阳县| 溆浦县| 苍南县| 安图县| 长寿区| 铜山县| 馆陶县| 达州市| 长治县| 浏阳市| 视频| 绥棱县| 浪卡子县| 绥滨县| 渭源县| 临泉县| 双牌县| 南雄市| 西乌珠穆沁旗| 梅河口市| 栾川县| 临泉县| 呼伦贝尔市| 涪陵区| 漳州市| 高碑店市| 滁州市| 仪征市| 海淀区| 洛隆县|