读书人

关于EDB数据库的CeReadRecordPropsE

发布时间: 2012-03-03 15:33:03 作者: rapoo

高手进,关于EDB数据库的CeReadRecordPropsEx()
我使用
CeReadRecordPropsEx中调用 CEDB_ALLOWREALLOC,返回的指针是否要释放,怎么释放,我使用了LocalFree, delete, delete[], free()都报错误,

微软说必须要释放
You must free the pointer returned by this function if the pointer is not NULL.

http://msdn2.microsoft.com/en-us/library/ms923933.aspx

网上也有人说不用释放
http://topic.csdn.net/t/20051201/13/4430935.html

我自己运行了10万次,内存基本上没有增加

请有过这方面经验的高手指点迷津啊!!

[解决办法]
能否把你的代码共享一份给我,谢谢!
dinghuiyan2004@gmail.com

读书人网 >Windows Mobile

热点推荐