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 閱讀(574) 評論(0)  編輯  收藏 所屬分類: ZZLinuxtuxedo
          主站蜘蛛池模板: 庆安县| 岢岚县| 泾源县| 六盘水市| 九龙城区| 金昌市| 克拉玛依市| 会泽县| 吉水县| 邻水| 赫章县| 洪泽县| 樟树市| 嘉祥县| 平邑县| 北碚区| 布尔津县| 伽师县| 囊谦县| 隆昌县| 普兰县| 旬阳县| 紫阳县| 金沙县| 桐乡市| 买车| 类乌齐县| 浮梁县| 巩留县| 桂东县| 乌审旗| 亚东县| 诸暨市| 祁阳县| 久治县| 韶山市| 凯里市| 泾阳县| 牟定县| 阿坝县| 湾仔区|