Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Closing the DBP process from a plugin?

Author
Message
Mistrel
Retired Moderator
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 31st Jul 2007 08:45
When a critical error occurs in my plugin I want to report an error and force DBP to close. How can I tell DBP to close in this way?

http://3dfolio.com
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 31st Jul 2007 13:54
There are two functions within the Core DLL that I used to use:

?CloseDisplay@@YAKXZ -> DWORD __cdecl CloseDisplay(void)
?Quit@@YAKXZ -> DWORD __cdecl Quit(void)

Call them in that order. Then you can do cleanup/display a message box etc, and finally call ExitProcess(0) to end the process.

Mistrel
Retired Moderator
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 1st Aug 2007 00:03
That works great. Thanks.

http://3dfolio.com

Login to post a reply

Server time is: 2024-11-22 22:46:27
Your offset time is: 2024-11-22 22:46:27