PDA

View Full Version : Long Time Closing Setup!


Cuttlas
11-10-2020, 02:09
Hi Friends,

I'm using innocallback, WinTB, IsMedaLib, and VCL skin in my setup.

Everything works well, but when I exit the setup, the setup will stay about 4 seconds and freezes, and then it will exit.

How can I immediately close the setup just like I'm killing its process :)?

Razor12911
11-10-2020, 02:29
I think you should just find and fix the problem that causes the setup to hang, it's obvious that it crashes and then WerFault.exe (Windows Error Reporting) is launched to check if it can salvage any information regarding the crash and while it does this, it suspends the process which explains the hang.

Cuttlas
11-10-2020, 02:34
How to retrieve such info?

Razor12911
11-10-2020, 02:40
Why would you want to retrieve this information because it's mostly memory addresses which is stuff that you'll hardly understand,

here's an example of what you get when a program crashes,
28042

just open the script and find out which library you added causes the crash. Remember most libraries require you to deinitialize them after their use, failure to do so will crash the setup.

ffmla
11-10-2020, 02:47
Hi Friends,

I'm using innocallback, WinTB, IsMedaLib, and VCL skin in my setup.

Everything works well, but when I exit the setup, the setup will stay about 4 seconds and freezes, and then it will exit.

How can I immediately close the setup just like I'm killing its process :)?
I thing you forgot to deinitialize some of your added lib's or codes.

Cuttlas
11-10-2020, 02:54
The only lib which has Unload is VCL skin, I named what libs I'm using, But will try to comment them one by one :)

But is there any way to kill the setup process on exit?

Cuttlas
11-10-2020, 08:00
After commenting the WinTB, it works well !

Cuttlas
11-10-2020, 08:06
Without WinTB I've used this code from DiCaPrIo:

https://fileforums.com/showpost.php?p=488106&postcount=7

again it will cause the same long time closing!

Cuttlas
11-10-2020, 09:08
Another thing I've faced:

SetWindowLong();

I have used this method to add come context menu on a panel. so the problem is here, the winTB or other related SetWindowLong methods seems to conflict with each other.

How to release or manage them?

Cesar82
11-10-2020, 18:50
If you use SetWindowLong with GWL_WNDPROC (-4), you always need to restore the previous value before deinitializing the installation.