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
58
votes
5 answers

How to get memory size of variable?

Does anybody know how to get memory size of the variable (int, string, []struct, etc) and print it? Is it possible? var i int = 1 //I want to get something like this: fmt.Println("Size of i is: %?", i) //Also, it would be nice if I could store the…
Timur Fayzrakhmanov
  • 17,967
  • 20
  • 64
  • 95
58
votes
4 answers

How to configure independent sets of runtime settings in Xcode

My iPhone application connects to three different servers, say: production, staging and testing. There is a bunch of configuration values that the application uses depending on to which server it connects to, e.g. Facebook App ID, TestFlight team…
Greg
  • 8,230
  • 5
  • 38
  • 53
57
votes
1 answer

What is the difference between Version and 'Runtime Version' in .Net?

When I open the properties window of one of the referenced dlls in my project in Visual Studio I see a Version and also a runtime version . Actually it is Rhino.Mocks library I am checking. And I see Runtime Version : v2.0.50727 Version :…
pencilCake
  • 51,323
  • 85
  • 226
  • 363
57
votes
1 answer

How JVM stack, heap and threads are mapped to physical memory or operation system

The compiler book(The dragon book) explains that value types are created on the stack, and reference types are created on the heap. For Java, JVM also contains heap and stack in runtime data area. Objects and arrays are created on heap, method…
Ryan
  • 2,825
  • 9
  • 36
  • 58
54
votes
4 answers

how can I debug a jar at runtime?

I'm into a quite strange position (from my java-newbie point of view): using Eclipse I wrote a "java program" (some .java files with classes into) which essentially (batch) reads a text *.csv file, "evaluates" its contents, and writes out results…
eewing
  • 545
  • 1
  • 4
  • 5
53
votes
5 answers

execute c# code at runtime from code file

I have a WPF C# application that contains a button. The code of the button click is written in separate text file which will be placed in the applications runtime directory. I want to execute that code placed in the text file on the click of the…
Vinod Maurya
  • 4,167
  • 11
  • 50
  • 81
53
votes
5 answers

Where to download Microsoft Visual c++ 2003 redistributable

I have an old dll that uses the Microsoft Visual C++ 2003 (7.1) run time package. Unfortunately I don't have that DLL around anymore. Short of reinstalling VS2003, is there another way to get the run time redistributable dll?
Jim McKeeth
  • 38,225
  • 23
  • 120
  • 194
52
votes
9 answers

How do I set the default Java installation/runtime (Windows)?

I'm in the situation where I've installed the JDK, but I can't run applets in browsers (I may not have installed the JRE). However, when I install the JRE, it clobbers my JDK as the default runtime. This breaks pretty much everything (Eclipse, Ant)…
Stephen
  • 19,488
  • 10
  • 62
  • 83
51
votes
5 answers

What might be the cause of 'invalid value encountered in less_equal' in numpy

I experienced a RuntimeWarning RuntimeWarning: invalid value encountered in less_equal Generated by this line of code of mine: center_dists[j] <= center_dists[i] Both center_dists[j] and center_dists[i] are numpy arrays What might be the cause…
Alex Gao
  • 2,073
  • 4
  • 24
  • 27
50
votes
5 answers

UIStoryboard: What's the Correct Way to Get the Active Storyboard?

I am currently furiously digging through all the docs, and haven't quite found what I'm looking for. I suspect it is a real d'oh! answer. I simply need to find the active storyboard in the main bundle, and want to know the best way to do this. This…
Chris Marshall
  • 4,910
  • 8
  • 47
  • 72
49
votes
2 answers

What is the difference between devel and runtime tag for a Docker container?

For Pytorch and Tensorflow, there are tags which differentiate devel and runtime, I am not quite sure what are the difference between these two, can someone help me understand that better?
BLP
  • 591
  • 1
  • 4
  • 3
49
votes
7 answers

Printing Runtime exec() OutputStream to console

I am trying to get the OutputStream of the Process initiated by exec() to the console. How can this be done? Here is some incomplete code: import java.io.BufferedReader; import java.io.File; import java.io.IOException; import…
TheWolf
  • 1,675
  • 4
  • 22
  • 34
49
votes
5 answers

Load package dynamically

Is it possible to load a specific package during runtime? I want to have a kind of plugins where each one has the same functions than the others but with different behaviour, and depending on the configuration file, load one or other.
Pepeluis
  • 931
  • 2
  • 10
  • 18
48
votes
19 answers

Error when checking Java version: could not find java.dll

why do I get this? How can I fix it? C:\Users\ash>java version Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion' has value '1.7.0_01', but '1.7' is required. Error: could not find java.dll Error: Could not find Java SE…
itro
  • 7,006
  • 27
  • 78
  • 121
48
votes
7 answers

Can you add to an enum type in run-time

If I have an enum type: public enum Sport { Tennis = 0; Football = 1; Squash = 2; Volleyball = 3; } Can I somehow add during run-time: PingPong = 4
CJ7
  • 22,579
  • 65
  • 193
  • 321