I once fixed something similar that was coded by a newbie, it went something like this: private void HandleException(Exception ex) { try { ... Code to handle exception that would always throw an exception ... Can't recall exactly what it was since it was 3 years ago } catch (Exception ex) { HandleException(ex); } } The function would recursively call itself and cause a stack overflow exception.
T Jenniges
Posts
-
Best use of exception handling -
Working in America question [modified]To the original poster: I would use dice dot com to get a feel for what is available (and in which cities) for your area of expertise. As for Phoenix that is my take too ... only web (ASP.NET) jobs and that is why I stay in San Diego because there are many .NET WinForm/WPF applications in the biotech industry (writing SW to control biotech instruments and UI/data visualization are my specialty). I was born and raised in Tempe and would love to move back as my family still lives there but I would shoot myself in the head if I had to do ASP.NET for a living. No offense to you ASP.NET developer but to each their own.
-
Java vs. C#After programming in C++ for years both Java and C# are equally easy. That's why I tell newbies to start with C++ first ... it's all down hill from there. C# is better (and easier to learn) than Java simply because the MS IDE is so superior to anything I've used for Java.
-
EU Software Patent Law Said in DangerBy the way I've never seen the contraction "who're" before. Maybe you were thinking of your mother when you invented that word. Look it up on dictionary.com if you need help. I can't stand people who correct other's grammar and then are foolish enough to make a mistake while doing so.
-
EU Software Patent Law Said in DangerVikram, Let us all bow down to your superior intellect and master spelling abilities. Could it be that I know the difference between "who's" and "whose" and made a mistake while writing fast and multi-tasking. You are an ass! Go screw your goat! Any mistakes here?
-
EU Software Patent Law Said in DangerI hate software patents. I hope the EU does away with most of the protections. I'm an American whose sick of some of the silly SW patents that are allowed here in the US. For example: http://news.com.com/Kodak+wins+Java+patent+suit/2100-1014_3-5394765.html[^] How do the other SW engineers on this board feel about SW Patents? EU Software Patent Law Said in Danger Related Article: http://news.yahoo.com/s/ap/20050705/ap_on_bi_ge/eu_software_patents[^]
-
Disappearing Controls from FormI know I've seen this bug posted a long time ago but now it is happening in VS .NET 2003 (I was hoping MS was going to fix this problem with the .NET 2003 release). The Problem: ------------ The IDE (Designer) removes custom controls from my form(s). The custom controls reside in their own project libraries and the forms that use them in seperate libraries. This control removal by the IDE usually happens when the referenced control library DLL doesn't build without errors but sometimes even happens when it builds successfully. It seems that I can go months between incidents like this. Another developer I know has the same intermittent problem but has no solution. It seems the designer thinks it's alright to remove the code in the "InitializeComponent" method if it can't find a reference (assembly) to the custom control. Background: ----------- - I have a large project consisting of 6 libraries (some class libs, some control libs). The main project references the assembly DLL's of these other projects. - StarTeam is the source control software. Question: --------- Does anyone know or heard any work-arounds for this?
-
LicensingI'm hoping not to pay twice for something: #1, Pay MS so I can COMPILE programs/libraries #2, Pay someother company so $$ so someone else can't DECOMPILE the code I COMPILED Thanks anyhow. I'll take a look at the company if I can't find a free alternative.
-
.NET DecompilersI want to keep people from recreating my "source" code via the .NET disassemblers/decompilers that are already out there (Java had this problem too but at least the variable names weren't the same as the original when decompiled back to source). For a scary example of one a .NET Decompiler: http://remotesoft.com/salamander/index.html (You can test their disassembler on your own code on this site) This tool will recreate your original source code minus comments. I have a question: Has anybody found a way (e.g., a build flag) to make decompiling of .NET assemblies more difficult besides paying a $1K for an MSIL obfuscator?
-
LicensingSomething else to think about: Since you are licensing your controls I assume that you probably want to keep people from recreating your "source" code via the .NET disassemblers/decompilers that are already out there. For a scary example of one see: http://remotesoft.com/salamander/index.html (You can test their disassembler on your own code on this site) This tool will recreate your original source code minus some comments. I have a question: Has anybody found a way (e.g., a build flag) to make decompiling of .NET assemblies more difficult besides paying a $1K for an MSIL obfuscator? TonyJ
-
.Net Bug, Anyone else have this problem....S.Rod., I am using fully qualified names for my controls. For example, private [namespace name].ControlName m_Control After I did this my code was actually stable for about 3 months and it just reappeared again last week. It reappeared after the library failed to build. I fixed the library bug that I introduced and now .Net has a mind of it's own. On my simplest form I readded my controls, closed and saved them, then reopened them to find the controls missing again. .Net IDE even removed some event handling code.
-
.Net Bug, Anyone else have this problem....Net Bug: Myself and 4 other developers using .Net (C#) in the development of new software applications have the same problem with .Net. We are all working on different products seperately and have all seen the same bug. Bug: The user develops user controls (UserControl) and stores them in a common project. User adds this project to his main application project. User adds these controls to his forms in his project. User goes a few weeks to months designing his GUI. One day user opens his project to find controls and/or code missing from his forms. The damn generated code just disappears along with the controls on the form. This first happended to me 3 months ago and just reappeared again. I am one of these users. I use Source Safe, other people have used StarTeam with the same results. Retrieving previously saved versions from SourceSafe doesn't help because the .Net IDE has a mind of it's own and removes these controls once again. If anyone has any idea of what can be causing this or have experienced the same, please let me know. This is my first post here so if this has been a common topic before please excuse me. Thanks, TonyJ