Probably I should close this question...
The bug was fixed in release 2012b. The support team sent me a dll file which fixes the bug in versions <= 2012a. If anyone has the same problem, I can send you the fixed dll, if you request it.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!