Posts

Showing posts from July, 2011

Which factors are really important for defining a sofware's architecture?? is there in priority between them?

I would say Performance , Maintainability and Scalability are probably the highest. A software needs to perform well, an underperforming software is an annoyance and will drive the customers away.  Maintainability is also key for post production - if a software architecture is not done keeping maintainability in mind , bug fixes and enhancements can be a nightmare.  Scalability is the next thing in line because most products need to grow and change with time, happens with all of them.  These one of the main factors that I would keep in mind while designing and architecting software. The factor would be for both Functional and Non-Functional requirement of Software Application. However the important factor would be for Non-Functional i.e. Performance, Scalability, Maintainability, Security. The reason for addressing all nonfunctional requirements is because those are hidden a...

Insufficient memory error in Visual Studio 2010

Insufficient available memory to meet the expected demands of an operation at this time, possibly due to virtual address space fragmentation. Please try again later.” Hi everyone - I'm writing to let you know , Microsoft just released a hotfix to address the "insufficient memory" error on small cut or copy operations in VS 2010 RTM. If you try the patch, please post here to let us know (either way) whether it solves the problem. If there are still issues after hotfix installation, we're definitely interested in investigating. Hotfix download:  https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=29729 Hotfix information:  http://blogs.msdn.com/b/visualstudio/archive/2010/06/25/patch-available-for-cut-or-copy-displaying-insufficient-memory-error-in-vs-2010.aspx  Thanks, Sunil

ContextSwitchDeadlock was detected

Image
I have been writing an application that loads large amounts of data into the a database. The process of loading the data into the database goes through several steps requiring a considerable amount of time to complete. The long processing time is not a matter of concern from the application stand point. However, frequently the application throws a "ContextSwitchDeadlock was detected" message that says the following: Message: The CLR has been unable to transition from COM context 0x20450a0 to COM context 0x20452f0 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives ...

Powerful Coding Assistance and Refactoring Add-in for Visual Studio

http://www.devexpress.com/Products/Visual_Studio_Add-in/Coding_Assistance/ DevExpress created CodeRush for Visual Studio® .NET to help developers and managers—meet these increased demands for quality and functionality. CodeRush will help you create and maintain source code with extreme efficiency. Consume-first declaration, powerful templates, smart selection tools, intelligent code analysis, and innovative navigation and an unrivalled collection of refactorings all work together to increase your productivity dramatically.

Generate .Net Classes from XSD/XML

XSD ( XSD tool / XSD.exe ) To generate .Net Class file. 1.      We can use XSD Tool (Xml Schema Definition Tool) or XSD.exe to generate class files (.cs or .vb ) as per your requirements from Typed Datasets.  2.      XSD.exe is the  XML Schema Definition  tool which generates XML schema or common language runtime classes from XDR, XML, and XSD files. 3.         The file locates at C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\XSD.exe OR C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin Depends up on your version of .Net. 4.      If you are having Express edition of ( V 2.0) then it might possible that you don’t have .Net command prompt option available in Start->Programs , then you have to go command prompt and goto location “C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin” and then type f...

Hide close button for Windows Form

In the windows form add this code   protected override CreateParams CreateParams        {            get            {                CreateParams param = base.CreateParams;                param.ClassStyle = param.ClassStyle | 0x200;                return param;            }        }