-
Recent Posts
Recent Comments
Ashis Kumar Sahu on Understanding SCTE-35 Slice vs Tile in H.2… on HEVC – What are CTU, CU,… Manish Pednekar on Understanding SCTE-35 How can I determine… on HEVC – What are CTU, CU,… Bartek Zdanowski on Understanding SCTE-35 Archives
- February 2014
- October 2013
- March 2013
- November 2012
- October 2012
- September 2012
- August 2012
- March 2012
- February 2012
- December 2011
- July 2011
- June 2011
- January 2011
- December 2010
- November 2010
- May 2010
- April 2010
- January 2010
- November 2009
- September 2009
- August 2009
- July 2009
- June 2009
- April 2009
- January 2009
- December 2008
- November 2008
- October 2008
Categories
Meta
Monthly Archives: July 2009
Exception analysis – easy steps
When debugging an application, you can configure the debugger to break the process on an exception using sxe command. 0:000> sxe eh Now, you got an exception. The debugger shows a prompt something like this. (b34.fec): C++ EH exception – … Continue reading
Posted in Advanced Debugging
Leave a comment
GetCurrentProcess returns pseudo handle. Really.
The MSDN document on GetCurrentProcess API function is really wired. GetCurrentProcess Function Retrieves a pseudo handle for the current process. http://msdn.microsoft.com/en-us/library/ms683179(VS.85).aspx OK, what’s the "pseudo handle?" It actually explains it. A pseudo handle is a special constant, currently (HANDLE)-1, that … Continue reading
Posted in Tips
Leave a comment
Use IO Completion port to implement thread safe FIFO
Here is an example to implement thread safe FIFO using IO Completion port as a queue implementation. The implementation assumes there is only on thread pushing and another thread pulling. /*! A thread safe FIFO object with single thread push … Continue reading
Posted in Optimization
1 Comment
std::string in VC++ may store a short string in a stack
The std::string object can store any length of string. However, it does not mean it always allocate char array on the heap. If you look into the type definition of std::string in VC++ 8.0, it has interesting array called _Bx::_Buf. … Continue reading
Posted in C++
Leave a comment