Tag Archives: C#

Executing very large script on Microsoft SQL Server 2008 R2 fails

I was trying to execute very large .sql script in Microsoft SQL Server 2008 R2, that runs on Microsoft Windows Server 2008 R2. First I tried to copy/paste script into Microsoft SQL Server Management Studio. The server has plenty of … Continue reading

Posted in Databases, Programming | Tagged , , , | 1 Comment

C# / .NET MessageBox is hidden behind the Form

Imagine calling the following C# code:MessageBox.Show(this, “Some text…”, “Title”, MessageBoxButtons.OKCancel); After executing this line, the Message Box is not visible, it seems like hidden behind your form, without input focus, mouse clicks cause default beeps, and it suddenly appears if … Continue reading

Posted in Programming | Tagged , , , | Leave a comment

C++ now allows to forward declare enum(s)

Thanks to recently approved standard (C++11 / C++0x), it is possible to forward declare enums. It was possible with classes for the long time, for example, “class MyClass;” in C++ [forward] declares class without providing underlying details. For enums it … Continue reading

Posted in Computers, Programming | Tagged , | Leave a comment

.NET text box blank/empty/invisible/hidden when text reaches certain length

It seems, that .NET 2.0 have bug when text box (TextBox control) appears blank / empty / invisible / hidden — not showing text when text length reaches certain size. My quick tests shows, that the length of the text … Continue reading

Posted in Computers, Programming | Tagged , , , | Leave a comment

Static code analysis for C++ for free and for Pro

Up and until Visual Studio 2010 Microsoft decided that Code Analysis tool was available only for Visual Studio Premium and Ultimate editions. I have Visual Studio 2010 Pro w/MSDN subscriptions (actually 2 of them), but can not use Code Analysis … Continue reading

Posted in Computers, Programming | Tagged , , | Leave a comment

2011 links no. 3

Interview With Sacha Barber in The Code Project. The ABA problem occurs during synchronization, when a location is read twice, has the same value for both reads, and “value is the same” is used to indicate “nothing has changed”. However, … Continue reading

Posted in Computers, OS, Programming, Web | Tagged , , , , , , , , , , , , , , , , | Leave a comment

2011 links no. 2

Stack Overflow profiler open sourced: Profiling your website like a true Ninja. Smaller is Faster (and Safer Too). Chrome team have just started using a new compression algorithm called Courgette to make Google Chrome updates small. Read more. Ask Amir … Continue reading

Posted in Programming, Web | Tagged , , , , , , , , , , , | Leave a comment

Call to OpenFileDialog or SaveFileDialog hangs or freezes

Today I was debugging a very strange issue when call to OpenFileDialog and SaveFileDialog hanged, froze, never returned… At first I thought the problem is, that call is made from SysTray (Notification area) hidden window. However, digging deeper things got … Continue reading

Posted in Computers, Programming | Tagged , , , | 3 Comments

2011 links no. 1

3D Software Rendering Engine – Part I by darkoman. Fluent CSV/XML Exporter For List by Sacha Barber allows to export / save any C# container to CSV and XML. Push Framework – A C++ toolkit for high performance server development … Continue reading

Posted in OS, Programming, Web | Tagged , , , , , , , , , | Leave a comment

Test Silverlight speed or Test CPU speed with Silverlight

While we were developing SilverBench (online multicore CPU benchmarking with Silverlight), I found one interesting benchmark project. It is called Balls / Bubblemark animation test. You can test and directly compare speed / performance for the following programming languages: JavaScript, … Continue reading

Posted in Programming, Web | Tagged , , , , , , | Leave a comment