Run an application from remote PC


I got an exe on a server PC.
I would like to run this exe by ShellExecute from my machine but the process
finally to be run as local process. Can I or how can I run this exe on the
server


Posted On: Friday 21st of September 2012 11:27:06 PM Total Views:  157
View Complete with Replies

RELATED TOPICS OF Delphi Programming PROGRAMMING LANGUAGE




d2007 & runtime error 255

I have an app that runs on a flash drive and one of the functions is to make a clone of itself to a new flash drive. that works fine. At the end I tell the user to put back the original flash drive or continue working on the new one. When the dialog completes, if they leave the copied flash drive in place the program seems to work but doesn't. A separate empty window opens with the programs name but no content and it does nothing. I decided to restart the program at the end. My first approach was to to a postquitmessage followed by a shellexecute. That actually worked but after the program restarted, the cursor remains an hourglass for a bit and then a "This program performed blah..blah..blah" message popped up and when you close it I get a dialog box with Runtime error 255 at 0042021C. When I looked at the technical details it said "inpage error at ...". Nothing on Google for error code 255 seems relevant. I googled "restart Program" and found nearly the exact same thing I was doing except it was shellexecute first and then appliation terminate. I changed to that and it still fails exactly the same way -- every time. I tried this on vista and I get no such error messages. Note when I accept shutting down the program, the new instance works just fine so the error must be coming from the old instance. I'm just about ready to make a batch file to restart the program. Anyone have a better idea or know what the 255 error relates to Mostly I'm working in xp-pro on a ms vm on a vista business machine so I can't actually test the program there. I use a separate machine with xp-pro to test but the error also happens on XP-Home. --
VIEWS ON THIS POST

220

Posted on:

Wednesday 19th September 2012
View Replies!

Using D6, deploy app with runtime packages..package collections editor?

I have an app that has been growing quite large as a single exe. Most of the runtime packages NEVER change. There are about 15 runtime packages that would need to be include with the app. This means 15 "dangling" packages in the application folder. It looks like the package collection editor will combine them all into a "dpc" file. This is a single six meg file, which seems to be exactly what I want, but how does my app use this file since the "build with runtime packages" only supports DCP... that's DCP files, not DPC files.
VIEWS ON THIS POST

244

Posted on:

Thursday 20th September 2012
View Replies!

D2007: AV when compile & run using BPLs

I am getting an AV when I compile and run with BPLs. (with BPLs, my app compiles so much faster--it's 27 megs without BPLs, 10 with). The AV is: --------------------------- Debugger Fault Notification --------------------------- Project C:\trak\trak.exe faulted with message: 'access violation at 0x7c937a50: write of address 0x00040f74'. Process Stopped. Use Step or Run to continue. --------------------------- OK --------------------------- Am I correct to lok for modules loaded at the $7c937a50 adress If so, the closes items are: I see the list of the DLLs & BPLS that are loaded--the only thing close to the address is ntdll.dll and Shell32.dll: Module Load: ntdll.dll. No Debug Info. Base Address: $7C900000. Process trak.exe (5848) Module Load: SHELL32.dll. No Debug Info. Base Address: $7C9C0000. Process trak.exe (5848) So it would seem that the AV occurs in the ntdll.dll, correct Which doesn't really tell me much. My only guess for moving this forward would be to remove BPLs from the list until the AV is gone, then examine that BPL. Or is there a better method
VIEWS ON THIS POST

244

Posted on:

Friday 21st September 2012
View Replies!

"Enable Runtime Themes" blocks running from external programs

Hope someone has encountered this and can explain. Can't find it documented. I have several apps created in Delphi that can be called from 3rd party programs. Recently I upgraded from an old Delphi to Delphi 2007. I am running in XP. When I compile with "Enable Runtime Themes", the compiled apps seem to no longer recognize the calls from the 3-party programs. As best as I can tell, the apps are not opening at all, as if external calls are blocked. EXCEPT, I can run each of my apps from the other, although to do so I had to modify the ShellExecute command in the calling program by setting the Handle parameter to 0 (instead of a handle variable.) So the apps are clearly able to receive a run command from another app, but for some reason not from the 3rd-party apps. If I turn off "Enable Runtime Themes", everything works fine. Any ideas
VIEWS ON THIS POST

133

Posted on:

Friday 21st September 2012
View Replies!