stackoverflowexception

StackOverflowException

With the StackOverflowException are the conditions to be thrown hardcoded or dependent on the machine the code is running on? I am almost certain the latter but have failed in my searches and don't ask enough questions here. ...

Overloading Getter and Setter Causes StackOverflow in C#

I am not sure what is causing the StackOverflowException when I try to overwrite a get and set function. When I just use the default get and set it works. enum MyEnumType { .... } public MyEnumType data { get; set; } But when I try to add additional data, it throws a StackOverflowException public MyEnumType data { get { re...

iTextSharp Crashes with a StackOverflowException when getting a font

iTextSharp really, really doesn't like it when I try to create Fonts: FontFactory.GetFont(Font.HELVETICA, 12) This gives me a user-friendly StackOverflowException. So I tried this: new Font(Font.HELVETICA, 12) which does the same thing. Tried Font.TIMES, and got the same thing, too. So I tried dropping a bit lower based on this ans...

Java snippet that causes stack overflow in the compiler or typechecker (javac)?

Yesterday at a seminar the presenter showed a small java program, with 3 classes, featuring both co-variance and contra-variance. When attempting to compile using javac, the type checker will throw a StackOverflowException. The snippet is developed by some guys that work at Microsoft (think one was called Kennedy). Can't find it using...

Why Test crashes using NUnit / TestDriven.Net2.0 ?

I have a Set of TestFixtures running fine. I added a new Test into the fixture, but for some reason, I am not able to run it. Other tests in other classes and even in the same class run fine. Both NUnit GUI / TestDriven crash If I run from NUnit GUI I get this error: NUnit has stopped Working with this message Description: Stoppe...

Quicksort causes stackoverflow...

I have the following code, (taken from here), but it causes a stackoverflow exception when there's two the same value's in the list to sort. Can someone help me what's causing this? public static IEnumerable<int> QSLinq(IEnumerable<int> _items) { if (_items.Count() <= 1) return _items; var _pivot = _items.First(); ...

Another Quicksort stackoverflow

So I've been trying to implement a quicksort myself, just to learn something from it, but it also generates a stackoverflowexception, but I can't seem to find what the cause is. Can someone give me a clue? public void Partition(List<int> valuelist, out List<int> greater, out List<int> lesser) { lesser = new List<i...

How to monitor a .Net server application for fatal exceptions?

I am developing a .Net server application, which is supposed to run continously. I would like to have a notification email sent each time the server process is terminated for any reason. Ideally the email should contain the exception message and stacktrace if an exception caused the termination. I am aware that certain exceptions can not...

Why is this getter throwing StackOverflowException, but only when called from one project?

I have a few projects: A database interface project that defines Thingo (main solution) A logic project that defines ThingoChooser (plugin solution) A GUI project that refers to the logic project (plugin solution A test project that refers to the logic project (plugin solution) I'm debugging the plugin, so I run the main solution wit...

What might cause a Stack Overflow during linq iteration of Dictionary?

I have the following dictionary: Dictionary<long, ChangeLogProcess> _changeLogProcesses = new Dictionary<long, ChangeLogProcess>(); I have a method that attempts to get the next changelogprocess in the dictionary of a particular status (If there are no items of a particular status it returns null): var changeLogProcesses = ...

List<element> initialization fires "Process is terminated due to StackOverflowException"

I have structs like below and when I do that initialization: ArrayList nodesMatrix = null; List<vertex> vertexMatrix = null; List<bool> odwiedzone = null; List<element> priorityQueue = null; vertexMatrix = new List<vertex>(nodesNr + 1); nodesMatrix = new ArrayList(nodesNr + 1); odwiedzone = new List<bool>(nodesNr + 1); priorityQueue = ...

try/catch on stack overflows in java?

Can you try/catch a stack overflow exception in java? It seems to be throwing itself either way. When my procedures overflows, I'd like to "penalize" that value. ...

How to print stack trace of StackOverflowException

I am developing a .Net 2.0 application in which a StackOverflowException occurs. Is there a way to print/log the stack trace before/during the application aborts? This is a long running server-side process which would be hard to execute under a debugger. I know that StackOverflowException can not be caught. ...

Tracking Down a Stack Overflow in My Linq Query

I've written the following Linq query: IQueryable<ISOCountry> entries = (from e in competitorRepository.Competitors join c in countries on e.countryID equals c.isoCountryCode where !e.Deleted orderby c.isoCountryCode select new ISOCountry() { isoCountryCode = e.countryID, Name = c.Name } ).Distinct(); The objective is...

System.StackOverflowException by forms

I'm trying to open another form with a button and it's only ok at the beginning. After a few forms made the stackoverflow error acours ! The error is on form 1, form 2 and form 3 (I started to debug multiple times): the codes are really simple. like for form 3: public partial class Form2 : Form { Form3 obrok = new Form3(); publi...

F# DataContractJsonSerializer StackOverflowException

dataElementsList : TypesAndData.DataElement list is a list of 50,000 records (actually many more but let's start small). I am trying to serialize to a JSON file: let ser = Json.DataContractJsonSerializer(typeof<TypesAndData.DataElement list>) use ofs = File.OpenWrite(fileName) let result = ser.WriteObject(ofs, dataElementsList) an...

Error while opening the Eclipse Android Layout Editor

Since yesterday everytime I open my layout Editor in Eclipse for the Android UI I get the following exception: Unhandled event loop exception java.lang.StackOverflowError at com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.isTheme(Unknown Source) at com.android.ide.eclipse.adt.i...

C# - System.StackOverflowException with Lambda

Under what situations would this code error out with System.StackOverflowException? Accounts.Sort((x, y) => string.Compare(x.AccountId, y.AccountId)); Update: the property is written as: public string AccountId { get { return _accountId; } set { _accountId = value; } } Nothing special going on at all. ...

Suggestion for chkstk.asm stackoverflow exception in C++ with Visual Studio 2010

I am working with an implementation of merge sort. I am doing C++ Visual Studio 2010. But when I took a array of 300000 integers for timing, it is showing an unhandled stackoverflow exception and taking me to a readonly file named "chkstk.asm". I reduced the size to 200000 and it worked. Again the same code worked with C-free 4 editor (...

nhibernate/fluenthibernate throws StackOverflowException

Hi there! In my project I am using NHibernate/FluentNHibernate, and I am working with two entities, contracts and services. This is my contract type: [Serializable] public partial class TTLCContract { public virtual long? Id { get; set; } // other properties here public virtual Iesi.Collections.Generic.ISet<TTLCService> Se...