file open
来源:互联网 发布:软件云 编辑:程序博客网 时间:2024/05/01 18:21
有的人经常喜欢用C的函数,比如fopen(),
FILE* fp=fopen("D://11.txt", "r");
if(fp)
{
fclose(fp);
}
estlib.lib加上了,运行可以,退出的时候crash了,请问是什么原因。没有这段代码的时候一切正常。
答案如下:
CloseSTDLIB() ;(加上头文件 libc/sys/reent.h )
把这个函数添加在这些语句的后面。楼主说的crash是报错alloc吗?
因为在symbian当中是没有静态可写全局变量(Writable Static Data)的,所以,stdlib使用线程本地存储来代替可写全局变量。但是系统自己不知道什么时候释放这些内存。所以你要主动的通过这个函数来告诉系统。
- File#open
- file open
- Open File and Open Path
- FileStream Open File [C#]
- linux open file
- 汇编open file
- File download and Web Open
- File open mode in Ruby
- cannot open the file:mk
- cannot open file 'mfc80d.lib'
- cannot open file "uafxcwd.lib"
- cannot open file "mfc42u.lib"
- Unable to open class file
- How to open a file
- cannot open file "python26_d.lib"
- FRM-10043: Cannot open file.
- Cannot open precompiled header file
- cannot open file "mfc42u.lib"
- 矛盾!!
- hibernate3学习笔记(十五)|继承映射
- _cdecl _stdcall _fastcall _thiscall 简介
- GridView分页固定Pager行
- Abuse of the Linux Kernel for Fun and Profit
- file open
- AVI/MPEG/ASF/WMV Splitter v4.28 注册码
- 电子公文技术获得突破 方正CEB渐成标准
- 警惕UNIX下的LD_PRELOAD环境变量
- 用Factory Method模式扩展MyMSDNTVLibrary
- weblogic 10
- Jsp表单常用标签get和post方式处理
- VSS的功能及常规用法
- 开始