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
2
votes
2 answers

How to add a drop down menu to an Action Item at Runtime

I'm using the following method to create a an ActionClient with an Action at run time. procedure TMainForm.AddToProjectHistory(Path: string); var NewOption: TAction; ActionClient: TActionClientItem; begin NewOption :=…
James
  • 9,774
  • 5
  • 34
  • 58
2
votes
2 answers

Can a Java program be analyzed to strip it down to essential packages as well as the JRE?

Is there some tool that can analyze a Java program and strip down the Java runtime and the program itself to the essentials only? Can a tool analyze the programs dependencies and create a custom JRE just with the required libraries?
vfclists
  • 19,193
  • 21
  • 73
  • 92
2
votes
2 answers

Prevent .net program from writing to disk

How do I prevent my .net (C#) program from ever writing to disk? Edit: There's a FileIOPermissionAttribute for anyone curious. This codeproject also shows a way.
Eugene
  • 10,957
  • 20
  • 69
  • 97
2
votes
3 answers

Real runtime method names despite obfuscation?

Is there any way to query the name of the current method if you've obfuscated your code? I'm asking because there are times when I want to log a message with the executing method as a prefix.
Dave
  • 4,050
  • 6
  • 30
  • 35
2
votes
3 answers

Runtime of this pseudocode

Can anyone help me analyze the run time of the following pseudocode for(i = 0; i < n*n*n; i++) for(j = i; j < n; j++) x++ The way I see it's omega(n^3) for the lower bound, since that's what it would be if inside the outer for-loop was…
Andrew
  • 2,519
  • 6
  • 29
  • 46
2
votes
0 answers

objc_getClassList returning incorrect number of classes found?

I have some code like this: int numClasses = objc_getClassList(NULL, 0); ... Class * classes = malloc(sizeof(Class) * numClasses); numClasses = objc_getClassList(classes, numClasses); Sometimes it works and sometimes it does not. When it fails, I…
drekka
  • 20,957
  • 14
  • 79
  • 135
2
votes
3 answers

Any way to extract underlying Xaml?

Is there anyway to extract the underlying xaml from a control. IE. I have a textbox named fooBox. Can I get xaml back from the textbox at runtime that represents the textbox?
JRobbers
  • 23
  • 5
2
votes
3 answers

How Can i target one of my pictureboxes created on runtime? VB.NET

So basically, i have successfully randomized certain pictureboxes in a grid to contain mines, and show that mine, and for testing purposes, those mines are currently showing. What do you think I need to do to be able to say: If, you click this box…
Rick Bross
  • 1,060
  • 3
  • 16
  • 39
2
votes
2 answers

A self modifying code?

I would like to do the following . I have declared a structure in my program and in run time when the program is being executed, if there is a user input, I should be able to create another new structure/edit that structure in my code. How can we do…
Niranjan Sonachalam
  • 1,545
  • 1
  • 20
  • 29
2
votes
2 answers

Xcode 4 embed app version into the iOS app

Is it possible to access the app version that I specify in the xcode project setting from within the application? I'm trying to create an auto-updating "About" view controller, and it would be nice to receive bug reports listing the version of the…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
2
votes
3 answers

Beginner C++: object creation at runtime without knowing how many objects to create

Say I have a class I defined called 'MyClass'. My 'main' method takes as arguments a list of filenames. Each filename is a config file for MyClass, but the program user can have as many objects of MyClass as they want. If they type in, say, 2…
ddriver1
  • 723
  • 10
  • 18
2
votes
2 answers

how can i test at runtime if i'm running on ios 5 or higher?

I want to use the IOS 5 username/password AlertView style in case I'm running on ios5, and show my own popup when I'm running on IOS4 and lower. How can I at runtime detect the OS version?
Toad
  • 15,593
  • 16
  • 82
  • 128
2
votes
0 answers

Optimise matrix inversion in Python for impedance calculation

To get the impedance profile for a circuit, I am using its admittance (G) and capacitance (C) matrices. I am using Python to compute impedance profile at different frequencies but the issue is that I need to invert the matrix to get impedance from…
Dev
  • 21
  • 1
2
votes
1 answer

Visual Studio long project run/startup

Our issue is as follows: solution takes a while to start up when running after hitting run and while monitoring the Output window, constant work done is loading project related files from .net temp dir this really takes a while this is a Web Forms…
AVP06
  • 1,079
  • 1
  • 10
  • 16
2
votes
1 answer

RuntimeError: CUDA error: no kernel image is available for execution on the device (rastervision)

Hi I am trying to run rastervision pipeline on a GPU NVIDIA GEOFORCE 3050 RTX. Ubuntu 22.04 Pytorch: Version: 1.12.0+cu116 CUDA: 12 But when I run the Docker container like that: sudo docker run --rm --runtime=nvidia --gpus all -it -v…
guilligiggs93
  • 21
  • 1
  • 3