Questions tagged [entry-point]

For questions concerning the "entry point" of an application or library. The entry point is a special function or location in the code where control is passed from the operating system to the program.

450 questions
8
votes
2 answers

Entry point to REST/HATEOAS API?

I have started designing an API and have decided to have a go at making it conform to REST/HATEOAS. What should the entry point for the API be? It seems like a common one is GET / but from what I've read it might make more sense logically to use…
DanielGibbs
  • 9,910
  • 11
  • 76
  • 121
7
votes
4 answers

Why do we give ORG 7C00 at the start of a boot program?

The bootloader will anyway load it at that address? Why specify this to the program?
pflz
  • 1,891
  • 4
  • 26
  • 32
7
votes
1 answer

About the entry point of PE in Windows

Is it always at the lowest address of code section?
COMer
  • 1,117
  • 4
  • 14
  • 24
7
votes
5 answers

How do I compile a module without an EntryPoint?

I have a utility module for GWT which doesn't have an UI (hence, there is no class which inherits from com.google.gwt.core.client.EntryPoint. When I try to compile this module with GWT 1.7.1, I get this error: [ERROR] Module has no entry points…
Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
6
votes
2 answers

C# Only one compilation unit can have top-level statements

I just started learning c#, I created C# console application. To understand the concepts, I watched videos of how to setup vs code for c# When I run the dotnet new console command in VS code terminal, it creates a new project including Program.cs…
6
votes
4 answers

How to define an optional entry point into custom Mac OS X framework / dynamic library?

In Windows there is a DllMain and DLL_PROCESS_ATTACH / DLL_PROCESS_DETACH flags, which allow to initialize / free resources after DLL is attached to a process... So how can I specify an entry point in case of OS X? As always, I can't find anything…
Ryan
  • 1,451
  • 2
  • 27
  • 36
6
votes
2 answers

How are entrypoints of the Python standard library registered?

Regular Python packages register entrypoints in their setup.py or specify them in a pyporject.toml file. The latter is the case, if they don't use distutils/setuptools for packaging. As an example, setuptools' own setup.py has this as one of the…
con-f-use
  • 3,772
  • 5
  • 39
  • 60
6
votes
1 answer

How to start a custom RQ worker within a Docker Container (Python, Flask and Redis)

I followed the excellent Flask Mega Tutorial by Miguel Grinberg and have successfully setup a Flask web app with a Redis task queue and RQ workers, all in Docker containers. To improve task queue performance, I now need to use my own custom worker,…
Robin Hartley
  • 91
  • 1
  • 8
6
votes
0 answers

How to find the entry point in javascript application

How can we find the very first javascript statement that gets executed in any web page.. I mean how can we find the entry point for any javascript application no matter what type of JS libraries / frameworks it uses?
user1476120
  • 79
  • 1
  • 3
6
votes
2 answers

Set App Entry point programmatically in AppDelegate

In my appdelegate I want to check if globUs.hasName. If it does I want the Entry Point of the app to be my main storyboard. If it does not I want the Entry Point of the app to be my newUser storyboard. How do I set the entry point of the app? If…
Gabe Spound
  • 146
  • 2
  • 14
5
votes
1 answer

Determine load address and entry point of stripped Linux Kernel image

I have a crosscompiling toolchain for an embedded system (mipsel) on my x86 Linux. I know how to build a custom kernel (let's call the image "vmlinux") for it and how to strip that image via objcopy -S -O binary vmlinux vmlinux.bin For further…
kriegaex
  • 63,017
  • 15
  • 111
  • 202
5
votes
1 answer

setuptools entry_points. Installing executable to /usr/sbin

I have a setup.py script, that has entry_points defined like this: entry_points = { 'console_scripts': [ 'gun = gun.sync:main' ] }, This installs the executable into /usr/bin. Is…
Andrii Yurchuk
  • 3,090
  • 6
  • 29
  • 40
5
votes
2 answers

Best directory structure for a repository with several python entry points and internal dependencies?

I'm working on a project with the following directory structure: project/ package1/ module1.py module2.py package2/ module1.py module2.py main1.py main2.py main3.py ... mainN.py where each…
Alexander Guyer
  • 2,063
  • 1
  • 14
  • 20
5
votes
1 answer

Makefile entrypoint not found

I have installed vscode, but this message always opens (bottom right in the picture). I have attached a screenshot for you. Anyone know how I can fix this?
ArcuDev
  • 51
  • 1
  • 1
  • 2
5
votes
0 answers

npm packaging without an entry point

I plan to publish a JavaScript library as an npm package and I have a question regarding packages entry points and best practices: what would be the best practice when a package doesn't expose a single entry point? Explicitly declare exports…
Monad
  • 85
  • 3