background preloader

5 Star Support - Free Computer Help and Technical Support Daily Survival Introduction -- Eloquent JavaScript ¶ When personal computers were first introduced, most of them came equipped with a simple programming language, usually a variant of BASIC. Interacting with the computer was closely integrated with this language, and thus every computer-user, whether he wanted to or not, would get a taste of it. Now that computers have become plentiful and cheap, typical users don't get much further than clicking things with a mouse. For most people, this works very well. But for those of us with a natural inclination towards technological tinkering, the removal of programming from every-day computer use presents something of a barrier. ¶ Fortunately, as an effect of developments in the World Wide Web, it so happens that every computer equipped with a modern web-browser also has an environment for programming JavaScript. ¶ That is what this (hyper-)book tries to do. I do not enlighten those who are not eager to learn, nor arouse those who are not anxious to give an explanation themselves.

diy home sweet home If broken it is, fix it you should : .NET Memory Leak Case Study: The Event Handlers That Made The Memory Baloon It always feels like issues come in clusters. One week we get tones of cache related cases, next week everyone is stuck in some lock and so on. Lately I have had a number of issues where there were memory leaks related to event handlers. Problem description We have a pretty easy to repro memory leak, even with very few users memory grows at a high rate and the memory is never released. The usual suspects are eliminated, i.e. we know that the app doesn’t cache much or store much or anything in session scope, and from performance monitor we can see that as private bytes grow, most or all of this growth is in the .net heaps (if private bytes grow by 100 MB, # bytes in all heaps also grow by about 100 MB). Gathering data Since we can tell with ! Preferably to make the problem more visible, a stress test is nice so that the leaking objects stand out more. Debugging As usual I have simplified the scenario a bit, but the debugging techniques stay the same. ! 0:000> ! Dump 1: Dump 2: 0:000> ! ! If we do !

Visual Studio Magazine Online | Enterprise Solutions for .NET Development Dev102.com .NET, C#, WPF, Visual Studio Development tools, tips, tricks Remote Access Services Google C++ Style Guide Definition: Streams are a replacement for printf() and scanf(). Pros: With streams, you do not need to know the type of the object you are printing. You do not have problems with format strings not matching the argument list. (Though with gcc, you do not have that problem with printf either.) Cons: Streams make it difficult to do functionality like pread(). Decision: Do not use streams, except where required by a logging interface. There are various pros and cons to using streams, but in this case, as in many other cases, consistency trumps the debate. Extended Discussion There has been debate on this issue, so this explains the reasoning in greater depth. Proponents of streams have argued that streams are the obvious choice of the two, but the issue is not actually so clear. cout << this; // Prints the address cout << *this; // Prints the contents The compiler does not generate an error because << has been overloaded. And so on and so forth for any issue you might bring up.

Visual Studio 2005 MSDN Library Development Tools and Languages Visual Studio 2005 Technical Articles Visual Studio Extensibility Software Licensing and Protection Services 1420 out of 1732 rated this helpful - Rate this topic Visual Studio 2005 Check out the Visual Studio 2005 Developer Center Find in-depth content, community resources, downloads, product information, and more at this one-stop resource for developers using Visual Studio 2005. Did you find this helpful? Tell us more... (1500 characters remaining) Thank you for your feedback Show: © 2014 Microsoft.

Home Page Practical JavaScript Structuring and Loading TypeScript Modules TypeScript provides native support both for organizing your application's client-side code into a set of modules, and for freeing you from having to manage the resulting script tags. 04/14/2014 News Windows Phone Preview for Developers Released It's the first opportunity for developers to integrate their apps with the Cortana digital assistant. 04/14/2014 News Microsoft Is Not Killing Off TFS for Git The company officially responds to a social media storm of worry. 04/14/2014 Modern C++ SQLite Queries and Primary Keys Learn about SQLite database engine internals so you can simplify your code and improve the performance of your applications. 04/11/2014 Practical .NET Async Processing in EF6 and the Microsoft .NET Framework 4.5 The latest version of Entity Framework makes it easier to write asynchronous code.

Related: