[
https://issues.apache.org/jira/browse/DAEMON-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12860253#action_12860253
]
Sebb commented on DAEMON-156:
-----------------------------
I think it would make more sense to change the behavior of procrun so that the
start() method did not need to wait.
That is more in line with standard Java.
Also, the stop() method does not have this restriction.
The changes needed to fix the crash may well mean that the code will then work
even if the start() method does return immediately.
In the meantime, as a temporary work-round, I have fixed the sample application
and docs.
> Prunsrv crashes with access violation when stopping service
> -----------------------------------------------------------
>
> Key: DAEMON-156
> URL: https://issues.apache.org/jira/browse/DAEMON-156
> Project: Commons Daemon
> Issue Type: Bug
> Components: Procrun
> Affects Versions: 1.0.2
> Reporter: Sebb
>
> The prunsrv.exe application crashes with an access violation during the final
> stages of jvm-mode service shutdown, after the service class stop method has
> been invoked.
> To reproduce, use the ProcrunService example, installed using
> ProcrunServiceInstall; start and then stop the service.
> There should be an entry in the Dr Watson directory, and an Application
> Failed dialogue box will appear.
> I don't know yet if the problem also occurs with Java or Exe mode shutdown.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.