stackoverflow

ASP.NET MVC stack overflow exception when calling a partial view from master page

Hey there everyone, I'm getting a stack overflow error when I try to call a partial view from the master. The Partial View: <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <form action="/members/TestLoginProcess/" method="post"> U: <input type="text" name="mUsername" /><br /> P: <input type="password" name="mHa...

align WMD editor's preview HTML with server-side HTML validation (e.g. no embedded javascript)

There are many SO questions (e.g. here and here) about how to do server-side scrubbing of Markdown produced by the WMD editor to ensure the HTML generated doesn't contain malicious script, like this: <img onload="alert('haha');" src="http://www.google.com/intl/en_ALL/images/srpr/logo1w.png" /> But I didn't find a good way to plug ...

Recursive QuickSort suffering a StackOverflowException -- Need fresh eyes

I am working on a Recursive QuickSort method implementation in a GenericList Class. I will have a second method that accepts a compareDelegate to compare different types, but for development purposes I'm sorting a GenericList<int> I am recieving stackoverflow areas in different places depending on the list size. I've been staring at a...

How to get related / similar search results?

Hello Guys! What's the best way in ASP.NET MVC to get a few questions related to the current question (like on stackoverflow) without using tags? ...

Logging into SO with curl

I'm working on a project and I want to log into SO via curl. I use Google as my openID provider which means that I need to log into Google first via its API. Here is the code I have so far #!/usr/bin/env sh . ./params.sh #the script with $username and $password curl --silent https://www.google.com/accounts/ClientLogin \ -d Email=$user...

Is it possible to write complex web applications (like StackOverflow) in VS Express? What is the first feature you miss in the express edition?

Many applications (like StackOverflow) has been written by three developers (a small team), would have been possible to do the same job using VS Express Edition? Which would have been the real differences? Whcih main feature is "enough" to justify the use of VS full edition? i ask this question not for curiosity but because I want to u...

overflow technique in stack

int main(void) { problem2(); } void doit2(void) { int overflowme[16]; //overflowme[37] =0; } void problem2(void) { int x = 42; doit2(); printf("x is %d\n", x); printf("the address of x is 0x%x\n", &x); } Would someone help me understand why overflowme[37] =0; from the doit2 function will overwrite the value...

como obtengo reputacion en este rollo?

como obtengo reputacion en este rollo? ...

Wallet Underflow?

I am a software engineer who would love to "disconnect" from the "company store" so-to-speak. This concept of Stack-Overflow is great...so, because I know that software engineers need coffee and food, how do you monetize this? Just wondering. ...

Why does my array initialization code cause a StackOverflowException to be thrown?

The following line of code in my class constructor is throwing a StackOverflowException: myList = new string[]{}; // myList is a property of type string[] Why is that happening? And what's the proper way to initialize an empty array? UPDATE: The cause was in the setter, in which I was attempting to trim all values: set { for...

Const parameter at constructor causes stackoverflow

I've found this strange behavior with VS2005 C++ compiler. Here is the situation: I cannot publish the code, but situation is very simple. Here is initial code: it work perfectly class Foo { public: Foo(Bar &bar) { ... } } The constructor implementation stores a reference, setup some members... indeed nothing special. If ...

C# StackOverflowException

Problem: I am trying to update a List. If a certain item's ID already exists in the List, I want to add onto that item's quantity. If not, then I want to add another item to the list. cart = (List<OrderItem>)Session["cart"]; for(int counter = cart.Count-1; counter >= 0; counter--) { i...

Stack Overflow problem transforming with a custom xslt

I've got a system that allows the user the option of providing their own XSLT to apply to some data that's been retrieved, as a means of specifying how that data should be presented. However, if the user includes code in the XSLT equivalent to: <xsl:template match="/"> <xsl:element name="data"> <xsl:apply-templates select="." /> ...

How to debug a stackoverflow problem on targets

I want to know how do we proceed to debug a STACKOVERFLOW issue on targets . I mean what are the steps we should follow to reach a conclusion. ...

problem with ansi c unexpected behaviour?

I am suffering from an unexpected behavior; here is the problem definition: I have applications communicating on a LAN via UDP protocol. I am reading the IP address and port number from a text file. Initially the IP address and port number are working nicely but, after some time, the IP address that is stored in a char array is corrup...

C++ Stack Overflow

Here is some code: void main() { GameEngine ge("phil", "anotherguy"); string response; do { ge.playGame(); cout << endl << "Do you want to (r)eplay the same battle, (s)tart a new battle, or (q)uit? "; cin >> response; } while(response == "r" || response == "R" || response == "s" || response == "S" ); } GameEn...

What's wrong with my markdown syntax? Broken in stackoverflow and bluecloth...

I just wrote some markdown and it doesn't seem to render correctly. Is it legal syntax to have an ordered list, followed by newlines, then followed by an unordered list? Or is this a bug in bluecloth? For example: 1. One 2. Two 3. Three * Apple * Banana * Carrot Bluecloth creates a single <ul> and nests apple, banana and carrot as ...

Web service creates stack overflow

I have an application that when executed as a windows application works fine, but when converted to a web service, in some instances (which were tested successfully) by the windows app) creates a stack overflow. Do you have an idea of what can cause this? (Note that it works fine when the web service is placed on the localhost). Could ...

Could it be that the stack size of a Web Service is smaller than that of a Window Application?

Possible Duplicate: Webservice creates Stack Overflow Hi, I have a program that includes a recursive function. This function when executed in a Windows Application works just fine, and when used in a Webservice, it works fine when the webservice is initiated by the VS (it assigns a random port), but this function return a sta...

How to increase Stack size for a Webservice in .Net 3.5

Hi, I have an issue with the stack limit in my webservice. I was suggested to read this article by fellow members of this forum, but I do not have an idea how to run the EDITBIN. I am using VS2008 on Windows 7 (IIS7) Thanks! ...