Assembly binding Configuration Files
摘要:Assembly binding behavior can be configured at different levels based on three XML files: Application configuration file. Publisher policy file. Machine configuration file. These files follow the same syntax and provide information such as binding redirects, the location of code, and binding mo...
阅读全文
决定你高度的——是你对自己的要求(zt)
摘要:我坐在图书馆的五楼。暖暖的空调,让人有特别踏实的感觉。5楼找到8-9本最喜欢的杂志开始地读,忽然发现有些很棒的杂志上有着轻轻被其他人划线的痕迹,心里瞬间暖暖的。看书看累了,想到自从上次写完《有些事知道的早,就是赢了一半。》的文章,文章最后说过要update,我想就再开个贴写点感受。 我遇到学弟学妹问我的问题,大概做了下罗列,发现这些也都是我自己遇到的问题。虔心希望,写下来自己曾经愚笨的经历,可以给到你一些鼓励和温暖。 (一)“找工作该怎样准备?” 良心地说,我一直觉得,找工作可以看作是一个项目管理。其实是一个很浩大的工程,尤其是在很多时候,没什么心里准备的前提下,突如其来的招聘接踵而至,就..
阅读全文
Reference vs. Pointer
摘要:from: http://edu.codepub.com/2010/0607/23314.php 了解引用reference与指针pointer到底有什么不同可以帮助你决定什么时候该用reference,什么时候该用 pointer。 在C++ 中,reference在很多方面与指针(pointer)具有同样的能力。虽然多数C++程序员对于何时使用reference何时使用pointer 都会有一些直觉,但总还是会有些时候搞不清楚。如果你想要建立一个关于使用reference使用的清晰有理的概念,又有必要了解到底reference 和pointer有什么不同。 深层含义 与pointer 类.
阅读全文
STL Allocator
摘要:rebind from: http://topic.csdn.net/u/20080226/04/d3187cbf-c72e-4f29-b6f0-ed05e1f65f95.html rebind的本质应该这么说:给定了类型T的分配器Allocator=allocator<T>,现在想根据相同的策略得到另外一个类型U的分配器allocator<U>,那么allocator<U> = allocator<T>::Rebind<U>::other.之所以要提供rebind界面,是因为容器只知道模板参数名Allocator,而不是其具体实现,
阅读全文
Memory Leak - Tools
摘要:UMDH UMDH是基于trace或者dump想法的工具。在使用UMDH之前首先要使用GFlags enable stack trace。然后在leak之前和leak之后分别对stack trace做dump,然后对前后的trace做比较。下面是比较后结果的一个示例: 对各个数字的含义使用红字标出 + 25be880 [两次的数值差,表明在两次dump之间同样的call stack 又分配了多少内存]( 25ce890[第二次stace中分配的总byte数] – 10010[第一次strac中分配的总byte数]) 1c allocs BackTraceB30BBE0+ 1b [两个dump之
阅读全文
Memory Leak - General
摘要:If you think that you are experiencing a memory leak, be aware that memory leaks may not be what they appear to be. You may discover that a memory leak is not a true memory leak, but is a performance enhancement. For example, the Microsoft Jet database engine can consume large amounts of memory (up
阅读全文
MMF I/O
摘要:What Do Memory-Mapped Files Have to Offer?One advantage to using MMF I/O is that the system performs all data transfers for it in 4K pages of data. Internally all pages of memory are managed by the virtual-memory manager (VMM). It decides when a page should be paged to disk, which pages are to be fr
阅读全文
Debug Heap
摘要:Two of the most common and intractable problems that programmers encounter are overwriting the end of an allocated buffer and leaking memory (failing to free allocations after they are no longer needed). The debug heap provides powerful tools to solve memory allocation problems of this kind. The de.
阅读全文
Working Set,Private Bytes, Virtual Bytes
摘要:The working set of a program is a collection of those pages in its virtual address space that have been recently referenced. It includes both shared and private data. The shared data includes pages that contain all instructions your application executes, including those in your DLLs and the system D
阅读全文