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.
...
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 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...
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...
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...
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();
...
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...
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...
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...
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 =
...
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 = ...
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.
...
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.
...
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...
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...
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...
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...
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. ...
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 (...
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...