Blogs
A few C# articles for self-learning: memory leaks and anonymous methods
If you rely on garbage collector, sooner or later you will be hit by the out of memory exception:-)
About memory leaks:
- Large Object Heap Uncovered
- How To: Use CLR Profiler (MSDN)
- How to detect and avoid memory and resources leaks in .NET applications
- .NET Memory Leak Case Study: The Event Handlers That Made The Memory Baloon
- Tracking down managed memory leaks (how to find a GC leak)
- Investigating Memory Issues
- Using GC Efficiently – Part 1
- Using GC Efficiently – Part 2
- Understanding Garbage Collection in .NET
- Debugging tools: Check out CLR Profiler 2.0, Debugging tools for Windows
About C# anonymous methods:
PHP 5.3 garbage collector test
I've updated my "Optimize PHP memory usage: eliminate circular references" (link) and added tests of the PHP 5.3 garbage collector. In summary, it is good but you can do even better.
PHP 5.3 to MySQL connection error
While trying PHP 5.3 today my scripts could not connect to the mysql database. I was sure that everything is installed correctly, so I've searched for similar issues reported by the developers and found the following interesting bug report:
MySQL functions cannot be used with 5.3.x on Vista when using "localhost"
So after changing localhost in my connection strings to 127.0.0.1 PHP successfully connected to the MySQL server. Another workaround is to delete or comment "::1 localhost" record in the c:\windows\system32\drivers\etc\hosts file.
It seems that this problem hits almost all Vista and PHP 5.3 users (Google: Vista PHP 5.3 mysql localhost "127.0.0.1" hosts) but PHP team is not considering this problem as a bug. Definitely, it is excellent demonstration of the open source wold welcomeness to the new users :-)


