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
36
votes
15 answers

Is it possible to compile and execute new code at runtime in .NET?

Note: Mathematical expression evaluation is not the focus of this question. I want to compile and execute new code at runtime in .NET. That being said... I would like to allow the user to enter any equation, like the following, into a text box: x…
raven
  • 18,004
  • 16
  • 81
  • 112
36
votes
4 answers

How do I get at the goodies in my Grails Config.groovy at runtime?

in Config.groovy I see this: // set per-environment serverURL stem for creating absolute links environments { production { grails.serverURL = "http://www.changeme.com" } } what is the correct way to access that at runtime?
danb
  • 10,239
  • 14
  • 60
  • 76
36
votes
7 answers

Dynamically Created Controls losing data after postback

Actually, I am Creating 1 TextBox on Pageload and adding that TextBox to Panel. Now, I have a LinkButton like Add Another. I am entering Text in that TextBox and if needed I need to Create New TextBox,by clicking Add Another LinkButton. Actually, I…
RealSteel
  • 1,871
  • 3
  • 37
  • 74
35
votes
7 answers

Changing language on the fly, in running iOS, programmatically

I've been stackling and googling for hours. And I'm kind of desperate now. I would like to change the language of my application inside the app not only with the default language. From what I've tried I stuck like everybody with the reboot step.…
gabrielstuff
  • 1,286
  • 1
  • 13
  • 16
35
votes
5 answers

How to get a JavaDoc of a method at run time?

Its easy to get a method Name of a Class at run time BUT How i can get a JavaDoc of a method at run time ? As the following example Our Class that include JavaDoc of our target method public class MyClass { /** * * @param x…
Ahmed Nabil
  • 17,392
  • 11
  • 61
  • 88
35
votes
3 answers

about java: get `String[].class` from `String.class`, what if `String.class` is a "runtime type"?

Here is a variable Class cls, now I want to get another Array Class Object which component type is cls. For example, if cls=String.class , I want to get String[].class; if cls=int.class, I want to get int[].class, what should I do? You see,…
watchzerg
  • 652
  • 1
  • 7
  • 12
34
votes
6 answers

How to change cursor icon in Java?

I would like to change the cursor icon to my customized 32x32 image when a Java application is executing. I looked and searched, those I found are just setting cursor on a JComponent. But I want the cursor changed to my specified icon wherever it…
DYL
  • 367
  • 1
  • 4
  • 4
34
votes
12 answers

How to check whether java is installed on the computer

I am trying to install java windows application on client machine.I want to check whether requried JRE is installed on the machine or not. I want to check it by java program not by cmd command
Sandeep Sehrawat
  • 576
  • 2
  • 7
  • 18
33
votes
4 answers

How to read Javadoc comments by reflection?

I need to know how to read Javadoc comments at run-time (probably by reflection?) Say I have the following function: /** * function that do some thing */ public void myFunc() { //... } At runtime, I can get much information about this…
Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
33
votes
7 answers

How to find time taken to run a Java program?

I have a Java application that I've been working on and I just realized that the program has to return a value in less than a minute, but don't know how to find or display the time taken to run the program. How to find time taken to run a program?
MK1
  • 447
  • 1
  • 5
  • 9
33
votes
4 answers

How to call .NET methods from Excel VBA?

I found a way to call .NET 2 code directly from VBA code: Dim clr As mscoree.CorRuntimeHost Set clr = New mscoree.CorRuntimeHost clr.Start Dim domain As mscorlib.AppDomain clr.GetDefaultDomain domain Dim myInstanceOfDotNetClass As Object Set…
user1983691
  • 443
  • 1
  • 4
  • 8
32
votes
13 answers

Prevent launching multiple instances of a java application

I want to prevent the user from running my java application multiple times in parallel. To prevent this, I have created a lock file when am opening the application, and delete the lock file when closing the application. When the application is…
Sathish
  • 1,481
  • 5
  • 20
  • 33
32
votes
9 answers

Is there any penalty/cost of virtual inheritance in C++, when calling non-virtual base method?

Does using virtual inheritance in C++ have a runtime penalty in compiled code, when we call a regular function member from its base class? Sample code: class A { public: void foo(void) {} }; class B : virtual public A {}; class C :…
Goofy
  • 5,187
  • 5
  • 40
  • 56
32
votes
6 answers

How to debug "Could not load file or assembly" runtime errors?

I have a project that uses a Java library converted using IKVM. I added the created DLL plus all possible IKVM DLLs as references to my project, but when I run it, I get the following runtime error: System.IO.FileNotFoundException : Could not load…
Wookai
  • 20,883
  • 16
  • 73
  • 86
32
votes
1 answer

Android: how to use the current theme's colors in a drawable xml?

I have defined two themes with different primary, primary dark, primary light and accent colors.