Exception when opening firefox
March 11th, 2010 § 0
Everytime I opened my browser, i got this nasty errormessage popping up:
---------------------------
firefox.exe - Entry Point Not Found
---------------------------
The procedure entry point _except_handler4_common could not be located in the dynamic link library msvcrt.dll.
---------------------------
OK
---------------------------
this little trick solved the problem:
move %windir%\system32\dwmapi.dll %windir%\system32\dwmapi.dll.bak
google told me the file is comming from windows vista and shouldn’t be on my winXp system.
MsTest (visual studio) testrunner and TestDriven.NET problems
September 15th, 2009 § 0
When using MsTest and some xml’files are needed by your code, you mark them with the DeploymentItemAttribute : [DeploymentItem("Directory/file.xml")]
(and these files are used in code like: new XmlDocument().Load(”file.xml”); (filename is stored in app.config))
The tests were running fine in mstest, but were failing when using TestDriven.Net.
The fix is to also define the directory where the deploymentitem should be copied, and use the relative path in your code.
[DeploymentItem("Directory/file.xml", "Directory")]
new XmlDocument().Load(”Directory/file.xml”);
This way the mstest output folder looks like the default bin-folder, which is used by testdriven.net
Quick and dirty javascript logger
May 6th, 2009 § 0
usage: log(’message’);
logs ‘message’ to a new window
var logger;
function log(arg)
{
if(!logger)
{
logger = window.open('about:blank', 'logwindow', '');
logger.document.write('<html><head><title>Logwindow</title><body><h1>Log</h1>\r\n<ul
id="loglist"/></body></html>');
}
var list = logger.document.getElementById("loglist");
var li = logger.document.createElement('li');
li.appendChild(logger.document.createTextNode(arg));
list.insertBefore(li, list.firstChild);
}
Clean Code: A Handbook of...
Building Domain Specific...
Nhibernate in Action
Head First Design Patterns
Software Configuration...