Thursday, February 11, 2010

The application was unable to start correctly (0xc000007b). Click OK to close the application.


The application was unable to start correctly (0xc000007b). Click OK to close the application.
 






I wasted quite an amount of time figuring out the cause for above error on a newly created Windows 2008 Server core system(x86_64).
Finally found that, following was the cause of the problem:
        - The Application(EXE) needs a dll(say XYZ.dll).
        - On that machine, it was finding a 32-bit dll with same name. The directory where the 64-bit DLL was present was not added to the %PATH%.
        - Normally on most of the machines, it will not load the 32-bit dll and show the following standard error message(This application has failed to start because XYZ.dll was not found)
       




But, on that server core machine, instead of throwing this error message, it was throwing the most confusing Application Error message.
Cheers,
Santhosh

What if a directory named "C:\Program" exists?


Assumption: Windows operating system is installed on C:\
Say, on a windows machine, there is a directory called C:\Program.
- Will it have any effect?
YES.
- What are those?
It may disrupt many of the badly designed applications running on your system. [Even though the mistake is done by the ones who programmed those, as they are currently running on your system, you are the sufferer. Welcome to S/W Industry :) ]
- Is there a simple example to show it?
Here it is:












As u can see above, dir command has got confused with the C:\Program directory.
In similar way, if some Programmer has not used the quotes(") properly, then, that's it, it will behave strangely and may do anything on ur system.
So , best thing is to immediately rename or delete such directory "%SystemDrive%\Program"


As, u can see below, once that troublesome directory is gone, dir is behaving normally again :)

 














Happy Weekend :)
Cheers
Santhosh

Purpose!!!!

I am already maintaing a personal blog(http://santhworld.blogspot.com)
 
But, I don't want to add all the technical stuff to it. Hence comes this new blog for completely technical purpose.
 
Anything technical I want to share, this is the space it goes into.
 
It includes day-to-day learnings, special learnings, copied from the net ;),,,anything,,,,,
 
Cheers,
Santhosh Chikurambotla