Questions tagged [runtime]

Runtime is the time during which a program is running (executing)

In computer science, run time, run-time, runtime, or execution time is the time during which a program is running (executing), in contrast to other phases of a program's lifecycle such as compile time, link time, load time, etc.

A run-time error is detected after or during the execution of a program, whereas a compile-time error is detected by the compiler before the program is ever executed. Type checking, storage allocation, code generation, and code optimization are typically done at compile time, but may be done at run time depending on the particular language and compiler.

Related

7799 questions
47
votes
7 answers

Getting template metaprogramming compile-time constants at runtime

Background Consider the following: template struct Fibonacci { enum { value = Fibonacci::value + Fibonacci::value }; }; template <> struct Fibonacci<1> { enum { value = 1 …
GManNickG
  • 494,350
  • 52
  • 494
  • 543
47
votes
6 answers

How to get the caller class name inside a function of another class in python?

My objective is to stimulate a sequence diagram of an application for this I need the information about a caller and callee class names at runtime. I can successfully retrieve the caller function but not able to get a caller class name? #Scenario…
Kaushik
  • 1,264
  • 8
  • 20
  • 32
46
votes
2 answers

Detecting the present annotations within the given object passed into a constructor

My question in short: how do I detect if a java annotation is present (and in the right place) for a given user class/object. Details of the "problem" Lets say I have two java classes: public class Line { private List cells; public…
user504342
  • 945
  • 2
  • 16
  • 36
46
votes
6 answers

What are the most commonly used runtime exceptions in java?

As a java programmer who wishes to perfect his programming skills, I often come across the situations that I have to create a runtime exception. I know it's a good practice if one use wisely. Personally, NullPointerException and…
Winston Chen
  • 6,799
  • 12
  • 52
  • 81
45
votes
4 answers

numpy.max or max ? Which one is faster?

In python, which one is faster ? numpy.max(), numpy.min() or max(), min() My list/array length varies from 2 to 600. Which one should I use to save some run time ?
Froyo
  • 17,947
  • 8
  • 45
  • 73
42
votes
6 answers

Change the location of an object programmatically

I've tried the following code: this.balancePanel.Location.X = this.optionsPanel.Location.X; to change the location of a panel that I made in design mode while the program is running but it returns an error: Cannot modify the return value of…
Ahoura Ghotbi
  • 2,866
  • 12
  • 36
  • 65
42
votes
5 answers

read the output from java exec

Hello i have some question about java. here is my code: public static void main(String[] args) throws Exception { Process pr = Runtime.getRuntime().exec("java -version"); BufferedReader in = new BufferedReader(new…
maxormo
  • 599
  • 1
  • 4
  • 10
42
votes
2 answers

Excel VBA Code: Compile Error in x64 Version ('PtrSafe' attribute required)

I am using Win8 x64 + Office 2013 x64. MY PROBLEM: I have an excel file, which has some modules in it, and works flawlessly in Office (Excel) x86. It uses the Swiss Ephemeris file (swedll32.dll) to do a lot of astronomical calculations. However,…
user2422957
  • 421
  • 1
  • 4
  • 3
41
votes
7 answers

Create a NinePatch/NinePatchDrawable in runtime

I have a requirement on my Android application that parts on the graphics should be customizable, by retrieving new colors and images from the server side. Some of these images are nine-patch images. I can't find a way to create and display these…
jacob11
  • 670
  • 1
  • 9
  • 12
41
votes
5 answers

Execute external program

I tried to make an application that calls an external program that I have to pass two parameters. It doesn't give any errors. The program.exe, written in C++, takes a picture and modifies the content of a .txt file. The Java program runs but it does…
sqtd
  • 485
  • 1
  • 4
  • 6
41
votes
9 answers

How to get Javascript Function Calls/Trace at Runtime

As I interact with my AJAX based application at RUNTIME I'd like the console to spit out all the functions it's calling. (so no stack trace, or breakpoints, or profiling or anything) So for example, let's say I pressed a button on the page. I'd like…
Shai UI
  • 50,568
  • 73
  • 204
  • 309
40
votes
14 answers

In Java, is there any disadvantage to static methods on a class?

Lets assume that a rule (or rule of thumb, anyway), has been imposed in my coding environment that any method on a class that doesn't use, modify, or otherwise need any instance variables to do its work, be made static. Is there any inherent…
Michael Campbell
  • 2,022
  • 1
  • 17
  • 22
40
votes
3 answers

How are Haskell programs compiled and executed internally?

I'm having trouble understanding how Haskell (GHC) compiles programs, and how those programs are run. GHC is the canonical example of a nontrivial program written in Haskell. However, parts of GHC seem not to be written in Haskell, namely the…
David
  • 8,275
  • 5
  • 26
  • 36
37
votes
4 answers

Error: Deleted row information cannot be accessed through the row

To whom this may concern, I have searched a considerable amount of time, to work a way out of this error "Deleted row information cannot be accessed through the row" I understand that once a row has been deleted from a datatable that it cannot be…
jshbrmn
  • 1,737
  • 3
  • 22
  • 52
37
votes
5 answers

WPF Enforce only ONE instance of application

How do I allow only one instance of a WPF application to run? Thanks.
John Batdorf
  • 2,502
  • 8
  • 35
  • 43