Re: LW DLL question
On Wednesday, Aug 13, 2003, at 04:10 America/New_York, Nick Levine
wrote:
> Marco,
>
> I set up a DLL and linked it in a C++ application.
>
> Now I cannot shut down the application. This means that the LW DLL
> is "still running" and needs to be shut down, in order to exit
> completely from the C++ application.
>
> What would be a correct course of action to achieve this? I am not
> much of MS expert, and any help will be appreciated.
>
> I take it you mean that LW calls (quit) but that the enclosing
> application still limps on, or at least doesn't die gracefully.
Not really. It is the other way around.
>
> Does the application need to perform any cleanups when it is shut
> down? If not, then something like this should carry it off:
>
> (fli:define-foreign-function (quit-calling-exit "exit")
> ((status :int))
> :result-type :void)
>
> (define-action "When quitting image" "Call C exit()"
> (lambda ()
> (quit-calling-exit 0))
> :after "System shutdown commencing"
> :force)
>
> Does this help?
It may. Let me try it.
Marco
--
Marco Antoniotti
NYU Courant Bioinformatics Group tel. +1 - 212 - 998 3488
715 Broadway 10th FL fax. +1 - 212 - 998 3484
New York, NY, 10003, U.S.A.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________