stack-overflow

EF Code First Migration throws StackOverflowException on Azure Web Role

和自甴很熟 提交于 2019-12-08 20:53:35
问题 The issue occurs when executing EF 6.1.2 code first migrations in an Azure Web Role (WS 2012 R2). The same migrations run fine locally, even if I point the connection string to the (Azure) Sql Database. The StackOverflowException is thrown by Entity Framework code, and the first line of ANY of my migrations doesn´t even get hit. I have tried running the migrations in three different ways: DbMigrator migrator = new DbMigrator(configuration); migrator.Update(); // Here the exception is thrown

Why doesn't .NET log the stack trace for StackOverflow exceptions?

我与影子孤独终老i 提交于 2019-12-08 19:44:27
问题 If I write this: class Program { static void Main(string[] args) { throw new Exception("lol"); } } and run the exe from the command line, I get two entries in my event log. One is an application error that says there was an unhandled exception, and the other contains the stack trace with the source as .NET Runtime. If I write this: class Program { static void Main(string[] args) { Recurse4Evr(); } static void Recurse4Evr() { Recurse4Evr(); } } I only get one entry in my event log, which says

Will this ever result in a stack overflow error?

北城以北 提交于 2019-12-08 18:12:31
Will incrementing the instance variables of an object ever lead to a stack overflow error? For example: This method (java) will cause a stack overflow error: class StackOverflow { public static void StackOverflow (int x) { System.out.println (x) ; StackOverflow(x+1) ; } public static void main (String[]arg) { StackOverflow (0) ; } but will this?: (..... is a gap that i've put in to shorten the code. its long enough as it is.) import java.util.*; class Dice { String name ; int x ; int[] sum ; .... public Dice (String name) { this.name = name ; this.x = 0 ; this.sum = new int[7] ; } .... public

How do I test out buffer overflows on a modern system?

流过昼夜 提交于 2019-12-08 17:36:22
问题 I'm currently interested in learning how to do buffer overflows. I've done quite a bit of assembly, and understand how the stack works and how to implement a buffer overflow in C. However, I'm running across quite a bit of trouble trying to get GCC 4.9.1 to allow me to overflow a buffer properly. I'm running Debian Jessie. Here is the tutorial that I'm attempting to follow, in section 2.2. I've copy/pasted the C program he provides, and I'm using the same Perl script that he is, so everything

Java StackOverflowError

怎甘沉沦 提交于 2019-12-08 11:17:28
问题 ... float value = Float.parseFloat((String)model.getValueAt(e.getLastRow(), 1)); DecimalFormat dec = new DecimalFormat("#.###"); model.setValueAt(dec.format(value), e.getLastRow(), 1); ... at the third line i'm getting the stackOverflowError exception. What I'm intending to do is getting a JTable cell value from an Object, converting it to a float, limiting it to 3 decimal places, and finally convert to String and set the value with 3 decimal places at the cell. I guess the problem is I'm

EDITBIN gives LNK1104 (cannot open file)

隐身守侯 提交于 2019-12-08 07:14:51
问题 I am trying to increase stack size of 32 bit IIS by using following command EDITBIN /STACK:1048576 w3wp.exe but facing following issue: fatal error LNK1104: cannot open file w3wp.exe I checked w3wp.exe is present in windows/system32/inetsrv folder. 回答1: Understanding that you addressed your issue (presumably a Stack Overflow Exception) with the explicitly-create-threads workaround, here's the actual answer to your question: The error provided ("cannot open file w3wp.exe") is, as described, a

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

被刻印的时光 ゝ 提交于 2019-12-08 05:38:27
问题 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 = new List<element>(); arr.NodesMatrix = nodesMatrix; arr.VertexMatrix = vertexMatrix; arr.Odwiedzone = odwiedzone; arr.PriorityQueue = priorityQueue; //only here

Minesweeper stackoverflowerror

限于喜欢 提交于 2019-12-08 04:55:20
问题 Im writing a method for minesweeper that opens a cell if there is no mine there. If there are no adjacent cells next to mines, it opens the cells around it that do not have mines. I regularly have this error: Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError This is my source code: public void open(int row, int col) { // row = vertical index of the matrix // col = horizontal index of matrix unclicked--; butt[row][col].setEnabled(false); // disable the called button if (aray

Cannot declare array of size 400000 in C

孤人 提交于 2019-12-08 04:44:52
问题 I am trying to do following: #include <windows.h> #include <stdio.h> #define N 400000 void main() { int a[N]; } I get a stackoverflow exception. My computer has 6GB of main memory so I cant be using it all up. How do I solve this problem? I using VS 2008 on Windows 7 and coding in C. 回答1: The amount of stack size you're allowed to use is never going to be the full amount of main memory. You can use this flag to set the stack size--which defaults to 1MB. To store 400,000 ints you'll need at

'System.StackOverflowException' when sorting a GridView

扶醉桌前 提交于 2019-12-08 04:37:57
问题 When I try to sort a GridView, the system returns this error-message: gridview sort An unhandled exception of type 'System.StackOverflowException' occurred in System.Web.dll This is the code and "Melder" is the name of the column to sort. gvOutlookMeldingen.Sort("Melder", SortDirection.Ascending); 回答1: You are probably calling Sort() inside gvOutlookMeldingen_Sorting , which will call gvOutlookMeldingen_Sorting and Sort() again, thus generating a loop. On the Sorting event you need to call