jinfeng_wang

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

          BlogJava 首頁 新隨筆 聯(lián)系 聚合 管理
            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 閱讀(574) 評論(0)  編輯  收藏 所屬分類: ZZLinuxtuxedo
          主站蜘蛛池模板: 大同市| 滨海县| 隆昌县| 大余县| 桃江县| 进贤县| 台中市| 奉贤区| 玉屏| 鱼台县| 吴旗县| 普兰店市| 双峰县| 佛冈县| 夏邑县| 垫江县| 普定县| 水城县| 天峨县| 信阳市| 上虞市| 古田县| 盐山县| 乃东县| 余庆县| 南城县| 饶阳县| 讷河市| 荥经县| 通化县| 建水县| 化隆| 榆树市| 郴州市| 当雄县| 新疆| 腾冲县| 大邑县| 饶阳县| 合川市| 克什克腾旗|