The malloc package void* malloc(size_t size) void free (void *p) other functions calloc: Version of malloc that initializes allocated block to zero re...
分类:
其他好文 时间:
2014-11-23 17:18:55
阅读次数:
180
将dll从进程模块列表中移除并保持正常运行,这玩意想想是挺简单,n久前byshell就用了,简单的思路就是给当前的dll内存映像做份拷贝,然后跳到那份拷贝的地址空间的代码,回头free掉原来的dll,然后马上用VirtualAlloc在原基址上申请块同样大小的空间,并将那份拷贝还原回去,再跳回去执行...
分类:
系统相关 时间:
2014-11-22 21:27:20
阅读次数:
293
来源:http://stackoverflow.com/questions/5785549/able-to-push-to-all-git-remotes-with-the-one-command
有两种做法,先看第一种
一、按照下面的操作:
例如我有下面两个仓库:
Mybatis通用Mapper
https://git.oschina.net/free/Mapp...
分类:
其他好文 时间:
2014-11-22 17:31:26
阅读次数:
159
1.有些时候项目启动不了,打印完日志后就停了或报错。出错的地方可能是刚打印出日志部分,也可能是即将要打印日志部分。2.查看系统内存使用,可以使用free -m 或 top3.可以通过/proc目录下的cpuinfo查看cpu信息4.df –h 查看根目录下文件使用情况,fdisk –l 查看磁盘使用...
分类:
其他好文 时间:
2014-11-22 14:29:26
阅读次数:
129
【扩展知识4】
1. 野指针
2. %p的使用
( 1 )野指针
定义:野指针”不是NULL指针,是指向“垃圾”内存的指针。[重量级危险人物]
野指针的成因:
1. 指针变量定义时没有初始化。
2. 指针变量free后没有置于NULL。
3. 指针的使用超出范围
程序举例:...
分类:
其他好文 时间:
2014-11-22 12:08:58
阅读次数:
165
相关结构:http://lxr.free-electrons.com/source/include/linux/poll.h?v=3.8 33 /* 34 * Do not touch the structure directly, use the access functions 35 * p.....
分类:
其他好文 时间:
2014-11-21 15:47:04
阅读次数:
137
new,malloc,GlobalAlloc详解
相同点:都可用于申请动态内存和释放内存
不同点:
(1)操作对象有所不同。
malloc与free是C++/C
语言的标准库函数,new/delete
是C++的运算符。对于非内部数据类的对象而言,光用maloc/free
无法满足动态对象的要求。对象在创建的同时要自动执行构造函数,对象消亡之前要自动执行析构函数。由于mallo...
分类:
其他好文 时间:
2014-11-20 20:25:03
阅读次数:
296
/*The MIT License (MIT)Copyright (c) Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated docu....
分类:
编程语言 时间:
2014-11-19 17:50:40
阅读次数:
258
If you need any game cheat tool at free of cost without doing survey and other stuffs then directly get download from crazygamehacks.com .we provide y...
分类:
其他好文 时间:
2014-11-19 13:58:54
阅读次数:
508
// Copyright (c) 2008 CodeToast.com and Nicholas Brookins//This code is free to use in any application for any use if this notice is left intact.//Jus...