vineri, 20 decembrie 2013

Quotes

“Strength is the capacity to break a chocolate bar into four pieces, and then eat just one of the pieces.” - Judith Viorst

"Life is 10% what happens to you and 90% how you react to it." -Charles Swindoll

When you're finished changing, you're finished. -Ben Franklin

vineri, 5 aprilie 2013

[Windbg] Get Process Information from a Dump File


Use !dml_proc

Others: 


  • | (pipe) - Print status of all processes being debugged
  • .tlist - lists all processes running on the system
  • !peb - display formatted view of the process's environment block (PEB)



0:000> !dml_proc
DbgId  PID    Image file name
0      1ee0   ...\IxNProtocols\7.10.0.828\IxNetwork.RBProtocols.exe

References:
http://www.windbg.info/doc/1-common-cmds.html#11_process

miercuri, 13 februarie 2013

Problem: The machine is missing the correct C++ runtime components for your type of system. (x86 or x64). Installing the following update resolved the issue.

Error: The application has failed to start because the side by side configuration is incorrect please see the application event log or use the command line sxstrace.exe tool for more detail

When: Try start an app from debug

Problem:
The machine is missing the correct C++ runtime components for your type of system. (x86 or x64).
Installing the following update resolved the issue. 

Use sxstrace.exe to find the exception.

Description of the problem using sxstrace.exe:


=================
Begin Activation Context Generation.
Input Parameter:
Flags = 0
ProcessorArchitecture = Wow32
CultureFallBacks = en-US;en
ManifestPath = D:\Perforce\protocols\sandbox.bba\src\bin\Debug\aptixia\bin\wind\GFW.Native.dll
AssemblyDirectory = D:\Perforce\protocols\sandbox.bba\src\bin\Debug\aptixia\bin\wind\
Application Config File = 
-----------------
INFO: Parsing Manifest File D:\Perforce\protocols\sandbox.bba\src\bin\Debug\aptixia\bin\wind\GFW.Native.dll.
INFO: Manifest Definition Identity is (null).
INFO: Reference: Microsoft.VC80.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.6195"
INFO: Resolving reference Microsoft.VC80.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.6195".
INFO: Resolving reference for ProcessorArchitecture WOW64.
INFO: Resolving reference for culture Neutral.
INFO: Applying Binding Policy.
INFO: No publisher policy found.
INFO: No binding policy redirect found.
INFO: Begin assembly probing.
INFO: Did not find the assembly in WinSxS.
INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_32\Microsoft.VC80.CRT\8.0.50727.6195__1fc8b3b9a1e18e3b\Microsoft.VC80.CRT.DLL.
INFO: Did not find manifest for culture Neutral.
INFO: End assembly probing.
INFO: Resolving reference for ProcessorArchitecture x86.
INFO: Resolving reference for culture Neutral.
INFO: Applying Binding Policy.
INFO: Find publisher policy at C:\Windows\WinSxS\manifests\x86_policy.8.0.microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4940_none_516d712b0f495a45.manifest
INFO: No binding policy redirect found.
INFO: Begin assembly probing.
INFO: Did not find the assembly in WinSxS.
INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_32\Microsoft.VC80.CRT\8.0.50727.6195__1fc8b3b9a1e18e3b\Microsoft.VC80.CRT.DLL.
INFO: Attempt to probe manifest at D:\Perforce\protocols\sandbox.bba\src\bin\Debug\aptixia\bin\wind\Microsoft.VC80.CRT.DLL.
INFO: Attempt to probe manifest at D:\Perforce\protocols\sandbox.bba\src\bin\Debug\aptixia\bin\wind\Microsoft.VC80.CRT.MANIFEST.
INFO: Attempt to probe manifest at D:\Perforce\protocols\sandbox.bba\src\bin\Debug\aptixia\bin\wind\Microsoft.VC80.CRT\Microsoft.VC80.CRT.DLL.
INFO: Attempt to probe manifest at D:\Perforce\protocols\sandbox.bba\src\bin\Debug\aptixia\bin\wind\Microsoft.VC80.CRT\Microsoft.VC80.CRT.MANIFEST.
INFO: Did not find manifest for culture Neutral.
INFO: End assembly probing.
ERROR: Cannot resolve reference Microsoft.VC80.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.6195".
ERROR: Activation Context generation failed.
End Activation Context Generation.


What solve my problem:



Installing the following update resolved the issue.

Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)
http://www.microsoft.com/downloads/en/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en

Microsoft Visual C++ 2008 SP1 Redistributable Package for (x64)
http://www.microsoft.com/downloads/en/details.aspx?familyid=BA9257CA-337F-4B40-8C14-157CFDFFEE4E&displaylang=en

MicrosoftVisual C++ 2010 Redistributable Package (x86)
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84

MicrosoftVisual C++ 2010 Redistributable Package (x64)
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=bd512d9e-43c8-4655-81bf-9350143d5867
Also, you may take in consideration Visual C++ 2005:
http://www.microsoft.com/en-us/download/details.aspx?id=26401


References:

http://answers.microsoft.com/en-us/windows/forum/windows_7-pictures/error-the-application-has-failed-to-start-because/df019c0d-746e-42d0-ad68-465e18e3f3ef

http://blogs.msdn.com/b/cesardelatorre/archive/2011/03/27/the-application-has-failed-to-start-because-its-side-by-side-configuration-is-incorrect-error-related-to-mmc-exe-programs-and-weird-cause-amp-simple-solution.aspx

http://support.microsoft.com/kb/2538242
http://www.microsoft.com/en-us/download/details.aspx?id=26401

duminică, 6 ianuarie 2013

Advice when Learning a Programming Language

Advice
 [1] Don’t panic! All will become clear in time;
 [2] You don’t have to know every detail of C++ to write good programs;
 [3] Focus on programming techniques, not on language features;

       The C++ Programming Language, Third Edition, Bjarne Stroustrup

Fibonacci Numbers