I know It’s been quite some time since my last post, but what can I say? I’ve been quite busy š HereĀ is the latest issue that I got stuck on for a few hours, and I thought I’d share what worked in the end. I was working on a large C# project that had a …
Category: Bugs
Nov 13
CheckedListBox throws “Out of Memory Exception” When Adding New Items
I was using WinForm’s CheckedListBox control a few minutes ago and my application was crashing with an out of memory exception. This was happening on the line where new items were being added to the CheckedListBox. It did not make any sense at all, since I was only adding the second item to the control. …
Dec 18
C/C++: Code Not Working under a Certain Build Configuration
If your C/C++ code works fine under a certain build configuration (eg. Release) but not under another (eg. Debug) or simply works fine when built with a certain compiler, it is a sign that the code is not robust and some small detail which depends on compiler optimization is producing undefined behavior. For instance, my …
Nov 25
Fix MATLAB Error: “dlopen: cannot load any more object with static TLS”
On Linux, you may occasionally encounter the error “dlopen: cannot load any more object with static TLS” in MATLAB. This is a known bug since way back! To fix, create a file “startup.m” in the directory that you start MATLAB from with the following content: ones(10)*ones(10); I know! It’s ugly… But it works!! EDIT:Ā Since it …
Oct 24
NPP’s Convoluion with Border Control Only Partially Implemented
One thing I discovered yesterday is that the image convolution filters implemented in NPP (such asĀ nppiFilterBorder_8u) are only partially implemented! These family of functions are asserted to provide border control for the convolution, thus serving as a robust alternative to the regular image convolution functions in NPP (such as nppiFilter_8u). The catch is that the …
Oct 24
NPP’s Box Filter (nppiFilterBox) is Broken
Surprisingly, the box filter function (nppiFilterBox_8u) Ā that is shipped with CUDA as a part of the NPP library is broken! It is the same function that is used in the “Box Filter with NPP” sample. If you import this sample from the CUDA SDK and try it with masksĀ of size 13 an above, the filter …
Recent Comments