Exception in System.Drawing.dll

There is a small problem with System.Drawing.dll in VS.NET 2003. Sometimes you get an Arithmetic Exception and the program is terminated. If u get this "Arithmetic Exception" in System.Drawing.dll, then there must be some spy software or some virus installed on your system which has hooked the system and changed the FPU (FloatingPoint Unit value) for all the processes.
 
To Set the FPU value to dafault u can use _controlfp() function defined in "msvcrt.dll". This is a native function, to call this function in C# u will have to use .NET Runtime Interop Services. To do this add the following lines of code to your Form class
 
[DllImport("msvcrt.dll")]
private static extern int _controlfp(int n, int mask);
private const int _MCW_EW = 0x8001F;
private const int _EM_INVALID = 0x10;
 

Now call this function at the start of your form constructor

_controlfp(_MCW_EW, _EM_INVALID);
 
The FPU value is now set to default and you will not get any Exception in system.Drawing.dll 
 
 

Women are problem

1. To find a woman you need time and money therefore :

                                          Woman = Time * Money

 

2.Time is  money therefore :

                                          Time = Money

 

3. Therefore :

                                          Woman = (Money)^2

 

4. Since Money is the root of all problems therefore :

                                           Money = (Problem)^0.5

5. Therefore:

                                          Woman = ((Problem)^0.5)^2

or                                      Woman = Problem