2014年2月28日 星期五

[Visual Studio] The Breakpoint will not be hit. No Symbols have been loaded for this document.

Situation:

Break point is invalid and I got message below if mouse over it.
The Breakpoint will not be hit. No Symbols have been loaded for this document.


Solution:
Right click on project -> properties -> Configuration Properties -> C++ -> General -> Debug Information Format
Set to Program Database for Edit And Continue (/ZI)


Reference:
http://stackoverflow.com/questions/8341686/visual-studio-no-symbols-have-been-loaded-for-this-document



2014年2月27日 星期四

[Webkit] error C2001: newline in constant

Error Message:

platform\DefaultLocalizationStrategy.cpp(327) : error C2001: newline in constant

platform\DefaultLocalizationStrategy.cpp(327) : fatal error C1057: unexpected en
d of file in macro expansion
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
l.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
make.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.



Solution:

Edit DefaultLocalizationStrategy.cpp
Look at line 327.
return WEB_UI_STRING("Look Up <selection>", "Look Up context menu item with selected word").replace("<selection>", truncatedStringForLookupMenuItem(selectedString));
Chang to
return WEB_UI_STRING("Look Up <selection>", "Look Up context menu item with selected word").replace("<selection>", truncatedStringForLookupMenuItem(selectedString));




2014年2月22日 星期六

[GIT] git out of memory.

Error Message:
fatal: Out of memory, malloc failed (tried to allocate xxxxxxxxxxx bytes)


Solution:
Type following command in git bash.
git config --global pack.windowMemory 256m


Reference:
https://github.com/hbons/SparkleShare/issues/519
http://stackoverflow.com/questions/10292903/git-on-windows-out-of-memory-malloc-failed