execution

How can I set the current line of execution in the eclipse java debugger

I want to force the current execution line to a specific line in the same function. All my old school debuggers had this feature, but I can't find it in eclipse. Is there a way to do it without changing code? ...

WPF Image Dynamically changing Image source during runtime

I have a window with a title on it. When the user selects a choice from a drop down list, the title image can change. The problem is when the image loads, it's a blurred, stretched, and pixelated. These are PNG files I'm working with and they look good prior to setting the source dynamically. Here's the code I'm using to change the imag...

Preventing to execute a javascript function more than once

Dear All I am using Javascript JQuery and PHP. My doubt isHow to limit the javascript function to execute once? My MainJQuery file has ajax, display.php ,it execute for a while .... $.ajax({ type:'POST', url: 'display.php', data:'id='+id , success: function(data){ ...

Something higher in the call stack making a call

When a caller is higher in the stack, what does this mean? For example, lets say I start a program, a form loads up (we'll call this a), then this form calls another form (b). The called form will be at the top of the stack, so if this form called form a, will this be a caller higher in the stack making a call to something below? Thanks...

VS Code Execution Different than Code File

Has anyone ever been debugging in Visual Studio and it appears to execute different code then the code that is being stepped through? Sometimes it even steps into what appears to be white space in the file that is being stepped through but VS is executing something anyway? I've had this happen several times, once someone had me clear s...

Is it possible to duplicate the native behavior of JavaScript's prompt()?

I'm rolling my own version of prompt() for aesthetic purposes; it's come along quite nicely as far as visuals go, but I have run into a slight hitch: the native version of the function causes code execution to cease completely until the prompt has been dealt with. This is positively lovely and it's why the below works the way it does: ...

Running a command on multiple Windows servers

I maintain a number of load balanced web servers running Windows Server 2003. Today when I want to make a change to those servers, I use a tedious process of opening a remote desktop connection to each of those servers then running a command from the command prompt on each server. This takes a lot of time. What I would like to do is r...

How to find out how much java code is really executed for a given use case in a program ?

Hi, is it possible to hook up an agent or something to the jvm before starting up an application (or an appserver) and have a report showing how much of the code base in the classpath is actually executed for a given use case ? I want to figure out how much code is left out unexecuted for my simple servlet application running in an apps...

Why is this code executing faster than expected?

I have this code: public void replay() { long previous = DateTime.Now.Ticks; for (int i = 0; i < 1000; i++) { Thread.Sleep(300); long cur = DateTime.Now.Ticks; Console.WriteLine(cur - previous); previous = cur; } } Which is invoked as a separate thread lik...

PHP: Does sleep time count for execution time limit?

Hello! I have two questions concerning the sleep() function in PHP: 1) Does the sleep time affect the maximum execution time limit of my PHP scripts? Sometimes, PHP shows the message "maximum execution time of 30 seconds exceeded". Will this message appear if I use sleep(31)? 2) Are there any risks when using the sleep() function? Does ...

Asynchronous Vs. Synchronous Execution, What does it really mean?

Asynchronous Vs. Synchronous Execution, What does it really mean? ...

Can i get the execution trace for a test case for a java program?

I want to run a java program with some test input values and when the execution ends I want to know the complete execution trace, for each conditional statement - what path was followed. Is there anything that can help me with this? ...

Start Thread with a given execution time

My main process calls an external library method. This method sometimes hangs. I can not fix the external library because another company is responsible for it. I want to use a Thread for the library calls with a defined execution timer. When the method call takes to long, the Thread with the Runnable in which the method call is placed ...

Calling a java program from another

How do i call a Java command from a stand alone java program. I understand that Runtime.getRuntime().exec("cmd c/ javac <>.java"); would work. However, this would be platform specific. Any other APIs available that could make it work in j2sdk1.4 ? ...

ASP.Net page methods execution time monitoring.

could anybody advice me, are there any approaches to calculate the methods execution time in asp.net page? ASP.Net Trace doesn't suit me since it ignores ajax partial postbacks though just they are the tight place. I have the page event which for some unknown reason executes slowly. Since the logic and event execution chain is rather c...

System.ExecutionEngineException Failure

I've been trying to find out more about this problem and I'm not having much luck. I keep reading that applications should not have this error come up and although that's all fine and dandy, it doesn't tell me what can cause this error to show up. I know this question is very broad as I'm sure there can be multiple causes for this error...

ASP.NET running an EXE File

Hi, I´m trying to run an old .NET application from an ASP.NET website. After reading the web and Stackoverflow (for similar problem) I come to the following code. The Problem is that I get always an error code (I am using administrator account just to testing purposes). If I run the exe manually it works ok. private void Execute(string ...

How do I include a PHP script in Python?

I have a PHP script (news-generator.php) which, when I include it, grabs a bunch of news items and prints them. Right now, I'm using Python for my website (CGI). When I was using PHP, I used something like this on the "News" page: <?php print("<h1>News and Updates</h1>"); include("news-generator.php"); print("</body>"); ?> (I cut down...

How are threads executed on multiple processors on Windows?

I am on Windows (Windows 7, XP and Vista). If I create a multi-threaded program, will the threads be executed on all available cores? Is it automatic? Is it guaranteed? For example, if I have four threads and four processors, will the threads be executed one on each processor/core? ...

Limit execution time of an function or command PHP

Hi is there a possibility to set time limit only to a command or only to a function eg: function doSomething() { //..code here.. function1(); //.. some code here.. } I want to set time limit only to function1. There exits set_time_limit but I think this sets the time limit to whole script. Anybody any Idea? ...