Top posts

Latest articles


Leaking memory not nice ;)

Posted by Jongerius under Development, General Rant
1 Star2 Stars3 Stars4 Stars5 Stars6 Stars (No Ratings Yet)
Loading ... Loading ...

During the last weekend I was working on making the synch tool I wrote even better. Some people wrote me that it consumed a massive amount of memory. But only if they ran it without multithreading.

First thing I had to figure out is what version they were using. I had already fixed some minor memory issues in the directory scanner I build. So when I ran a similar setting as them I saw the memory usage increase to 120 MiB. To my horror when the program finished I got a memory dump from Visual Studio telling me that over 100 MiB memory was not properly released. Sigh :( .

Apparently I had a minor memory leak in the scheduling of new directories in the scanner. If it wasn’t ran with multi-threading I never released the object. But an even bigger memory leak was in my error reporting system. Which is part of the core technology used in all my applications.

The problem was actually simple. I had recently changed the content of one of the objects I create when logging. But I forgot that when you create an array and don’t throw it away you get a lot of leaked memory ;) .

Down side of this is that I now have to rebuild every project using this library. Should only be half a day of work or so :D .


Netbeans 6.0 unable to display function parameter names

Posted by Jongerius under General Rant
1 Star2 Stars3 Stars4 Stars5 Stars6 Stars (No Ratings Yet)
Loading ... Loading ...

A few months ago I talked about switching from Netbeans 5.5 to the latest release, namely version 6.0.

Well I’m happy to say that I have switched back the the previous version, which worked a whole lot better. (And I can honestly say that of the 8 people at my work 7 switched back to the old version).

So what’s going on. Well it seems some essential things are wrong with Netbeans 6.0, being:

  • Every single short-cut changed in this version, though not a serious issue it’s definitely an annoyance.
  • The JSP parser crashes for unknown an uncertain reasons ;)
  • For some reason it’s no longer possible to see the parameter names of functions in libraries. And I just don’t know what a function called doSomething(int int1, int int2, int int3) is supposed to get as input :D

So back to 5.5 for me. Though it misses some cool features of 6.0 at least the basics work properly.


Building a PHP search indexer

Posted by Jongerius under Building One, Search Engines, Webdevelopment
1 Star2 Stars3 Stars4 Stars5 Stars6 Stars (No Ratings Yet)
Loading ... Loading ...

I’ve been working on a demo website called MovServDex for quite some years now. I’m calling it a demo website, but it’s really a fully featured website on TV shows and movies. In the latest version I have decided to add a search engine. In this post I’ll shed some light on how you can create a PHP script that will ‘crawl’ the web for pages.

Before I continue please note that this is not meant to be a replacement for a real search engine like Google. But it may be useful for you to use on your own website.

(more…)


Bug fix Thursday

Posted by Jongerius under General Rant
1 Star2 Stars3 Stars4 Stars5 Stars6 Stars (No Ratings Yet)
Loading ... Loading ...

For the first time in weeks I had about 8 hours of worked planned for the entire week. That having said it was no surprise that I ran out of work on Wednesday, even though I had Monday off.

As the planning manager came back in the office today I’ve been put on bug fixing for the remainder of the week. Brainless work, but relaxing..

Already done three of them! Oh yeah I’m on a role.