A Default Heap That Grows and SpreadsIn its simplest form, the default heap spans a range of addresses. Some ranges are reserved, while others are committed and have pages of memory associated with them. In this case the addresses are contiguous,
1. The address assigned by Compiler is virtual address. Why? because compiler definitely has no way to decide the physical memory address ahead of running the program.2. My understanding of the process of visiting phycial memory of an application is:
We can attach the debugger onto any running process at any time. Two cases:1. Unhandled exception is thrown in some thread of a process. A dialog will pop up to ask user to terminate the process or debug it. If clicking OK, the process will be
The debug configuration of VC++ projects is the configuration that most debugging and development is done on. This is entirely appropriate because the debug information, lack of optimizations, and the extra debug checks in the Microsoft libraries,
今天,終於決定玩下Ubuntu了。本人長久以來只在windows下工作,學習,生活。對Linux仰慕已久。這次嘗嘗鮮吧終於。準備工作:1. Ubuntu 7.10 ISO;2. VMware Workstation ACE Edition 6.0.安裝步驟:1. Create a new virtual machine in VMware and configuration is specified for Ubuntu. 2. Configure the Ubuntu virtual
Better error/exception handling. 2 ways: a) return status upwards the function calling chain and have the top calling function process the status;b) not necessarily return the status but throw exception when something’s wrong, catch and process the
Quick Tip: Show Shortcut Keys in Visual StudioRight click in the tool bar area --> choose customize, you get the 'Customize' dialog.On the 'Options' tab there's a little check box that says "Show shortcut keys in ScreenTips". Like so:This is off
Now we have one Unicode string, and we want to convert it to be narrow string which means multi byte string and truncate it to desired length.There is one key point: in Unicode string, two bytes represent one charactor; after it is converted into
Demand: There is an application app.exe. We want to debug it. The resources we have include:1. app.pdb2. all source code of it (.h/cpp) but without VS project setting files. It maybe build with JamHow to debug it?Solution:1. Create an empty project:
Visual C++ 6.0整合式開發環境中可使用的資源還有菜單、加速鍵、串表、位元影像、表徵圖、對話方塊等。在圖5-1所示的“Insert Resource”對話方塊中,給出了程式開發中可供使用的資源。圖5-1 整合式開發環境中的資源資源的匯入與匯出在某些情況下,我們還會用到除開發環境提供的資源以外的其他資源。Visual C++ 6.0整合式開發環境允許我們將其他資源匯入或匯出。在圖5-1所示的“Insert
文章目錄 Constructor Injection with PicoContainerSetter Injection with SpringInterface Injection [From: http://www.martinfowler.com/articles/injection.html]Forms of Dependency InjectionThe basic idea of the Dependency
As you can see, Guice saves you from having to write factory classes. You don'thave to write explicit code wiring clients to their dependencies. If you forget toprovide a dependency, Guice fails at startup. Guice handles circular