Avatar billede kennethv Nybegynder
30. april 2005 - 15:52 Der er 4 kommentarer og
1 løsning

Debug en Service i delphi 2005

Hvordan gør man ovenstående?
Avatar billede martinlind Nybegynder
30. april 2005 - 17:21 #1
sikert ligesom d7
Avatar billede kennethv Nybegynder
02. maj 2005 - 15:34 #2
Kan jeg ikke lige bruge til noget.
Avatar billede martinlind Nybegynder
03. maj 2005 - 08:44 #3
så kunne du jo prøve at trykke F1 og læse hjælpen ikk !

( Run menu - Attach process ) vælges når din service er running
Avatar billede kennethv Nybegynder
09. maj 2005 - 21:35 #4
Jeg synes at uanset hvad jeg gør vil det ikke spille. I hjælpen er der 2 beskrivelser på hvordan den ene er:

"You can debug service applications by attaching to the service application process when it is already running (that is, by starting the service first, and then attaching to the debugger). To attach to the service application process, choose RunAttach To Process, and select the service application in the resulting dialog.

In some cases, this approach may fail, due to insufficient rights. If that happens, you can use the Service Control Manager to enable your service to work with the debugger:

To debug:

1. First create a key called Image File Execution Options in the following registry location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
2. Create a subkey with the same name as your service (for example, MYSERV.EXE). To this subkey, add a value of type REG_SZ, named Debugger. Use the full path to bds.exe as the string value.
3. In the Services control panel applet, select your service, click Startup and check Allow Service to Interact with Desktop."

Men så snart jeg attach'er ender jeg i CPU debug. Aner ikke hvad jeg skal gøre herfra.

En anden måde (part2) er:

1. First, launch the application in the debugger. Wait a few seconds until it has finished loading.
2. Quickly start the service from the Control Panel or from the command line: start MyServ

You must launch the service quickly (within 15-30 seconds of application startup) because the application will terminate if no service is launched.

Jeg aner ikke hvad der menes i punkt 1. "launch the application in the debugger"
Avatar billede kennethv Nybegynder
03. oktober 2005 - 14:06 #5
Har klaret det.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester