executable

Is it safe to recompile an executable while it's running?

What happens if I recompile an executable while it's running? Does the operating system read all of the executable's contents into memory when it starts running it, so it will never read the new executable file? Or will it read sections of the new executable file thinking it hasn't changed, leading to possibly undefined behaviour? What ...

Problems with process created using 32bit python on Debian 5.0 IA-64

So, the problem is with creating processes - all of them immediately return with exit code -9. I tried to use subprocess.Popen module and os.popen2, os.system and some other. Nothing helps. I'm using python 2.5. I have a python binary executable built on 32bit platform with 32bit python using pyinstaller. This is very important and I kn...

Corrupt Binary Executable?

:/usr/local/bin# file wkhtmltopdf wkhtmltopdf: Mach-O executable i386 This file will not run. I have tried removing and reinstalling with no success. I have looked at the permissions (below) and they seem ok too: -rwxr-xr-x 1 root root 13817060 Aug 9 13:07 wkhtmltopdf When I run wkhtmltopdf I get the error below: wkhtmltopdf...

What technologies exist to create stand alone executables for Python 3?

Other than cx_Freeze, are there any other current maintained tool suites to generate stand alone executables for Python 3k? Are there any other techniques for minimizing preinstallation requirements under Windows? ...

How to 'package' a simple, one-file python script for a person that wants to pay for it?

A person (a senior citizen who is learning the very basics of computers) asked me to make a program that will save him LOTS of time with a grunt work type of task. I made the script in Python, it's simple, command line, takes input from the user and saves the output to a file and that's it. My first question is related to the output of ...

Close running version of program before installing update (Inno Setup)

This should be simple, I need to stop any previous version of my program from running when the installer starts. Most people suggested making an exe which does this and calling it before Inno Setup starts. I careated an exe using AutoIt which kills all processes of my program. The problem is I don't know how to get InnoSetup to call ...

Installshield Run EXE then wait for completion before running another

Hello, I am using Installshield, and have had success in launching my exe install files (such as KLite) after all my files have transferred to their target destination. My question is this: I am currently able to launch all the install exe's necessary, but they all launch at the same time, which can be rather annoying and cluttering. ...

directly execute binary resource

lpBuffer is a pointer to the first byte of a (binary)resource. How can I execute it straight away without dumping it to a temporary file? HMODULE hLibrary; HRSRC hResource; HGLOBAL hResourceLoaded; LPBYTE lpBuffer; hLibrary = LoadLibrary("C:\\xyz.exe"); if (NULL != hLibrary) { hResource = FindResource(hLibrary, MAKEINTRESOURCE(104)...

Making an executable bash file run when clicked

I have a bash file that does some file manipulation. I don't want to have to open the terminal every time I run it. Is there a way to make the program run when I double click it? (Like a windows .exe file) Thanks ...

Running an "Application Reference"

I need my application (Master) to run another application (Worker) on a particular event. If I distribute my Worker application as a standard executable, then all is well, and I can use Process.Start with no problems and happily pass in arguments and call WaitForExit. If I distribute my Worker application as a ClickOnce Application, it...

Installshield Run EXE only during install

Hey all, I have another question regarding exe's and custom actions within Installshield. I currently have a set of custom actions which launch executables in silent mode.. In the return process, it is set for Synchronous(Check exit code) mode, and it is set for a Deferred Execution in System Context. My question is the following: W...

Embed .pdb debug symbol information into an .exe file in Visual Studio

I am experimenting an analysis tool that can analyze executable files with embedded debug symbol information in Windows. While trying this tool on several open source projects, I realize that most of the builds do not keep symbolic information in executable files. I am able to compile the source code with VS (2008), but the build normall...

Perl to static executable on linux

I want to create a static executable that will run on a windows machine from a linux machine (ubutu 10.04). Is there anyway of doing so?? thanks, ...

Design choice when implementing an EXE in a web execution model

I'm designing a component to be run as a backend of a website. The component will take care of some AI logic, and I'm building it under C++. Would it be best if I let each session start a new EXE address space, or the EXE would be up and running and each session will start a new thread? Or is there is any better suggestions alltogether...

How to create multiple executables within a single project.

Is it possible to have more than one executable for a single project? My use case is the following: I got a solution with plenty of projects in it, divided by roles (Business Entity, UI, Data Access, etc.) and I would like to have a project for the shell / console applications. I know I can create one project per console application, I ...

Making gcc generate only machine code.

More specifically, I would like to produce a file that I can load into memory (for example with mmap) and then jump to the start of that memory to run the code. Ideally, I'd like the option of either making the code relocatable (which might be inefficient) or specifying an explicit address that the code expects to be loaded at (which is...

UNIX cc executable location

When I compile a .c file using the cc command, it creates an a.out executable. I've noticed that it creates the a.out file inside my current directory. Is there a way to make the a.out file be created in the same directory as the .c file wherever I happen to be on the system? for example if my current path is ~/desktop and I type in t...

is it possible to convert exe file to VB Project?

i lost my VB6 Project source files accidentally. but i have the executable files. is it possible to convert the exe files to VB Projects? is there any opensource/free decompiler available? ...

Ant; how to specify a file is executable so I don't have to chmod+x each time

When build my application with Ant, it produces a ZIP file. I have a sh file inside this zip, that is included as part of the build process. After each build I have to do chmod +x myFile.sh as ant fails to retain its original executable permissions. How can I instruct ant to keep executable permissions to this file? ...

Compile stand alone exe with Cygwin

I want to make a stand-alone exe with cygwin. I have two options: Staticly link cygwin1.dll If I can statically link cygwin1.dll, then I can get a stand-alone exe. Merge cygwin1.dll with myprog.exe If I can merge cygwin1.dll with my program, the I can get a stand-alone exe. Do not suggest that I use IlMerge. This will not work beca...