Strange VO app delay on exit

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
User avatar
Stavros Spanos
Posts: 104
Joined: Thu Nov 12, 2015 4:59 pm
Location: Greece

Strange VO app delay on exit

Post by Stavros Spanos »

Hi all!

I'm struggling several days with this...

We have a rather huge VO 2.8 CRM application that is working ok for years. Like Arne we also hope sometime we see it in xsharp, but until then... :-)

This app delivers several CRM products (for real estate, lawyers, support teams etc.) depending on certain settings.

Last year we did a major interface upgrade based on Codejock Ribbon bar suite.

We released this like a month ago and all goes well EXCEPT...

One of the products has a significant delay on closing, results in 5333 or hangs if we use QUIT, or just delays if we use oApp:Quit().

- Same code turning off Codejock interface (we use a parameter for this) , works fine.
- Same code with Codejock enabled but for all other products works, and quits like a charm.

We dont seem to do anything special in this product (just some custom menus and ribbons based on this product).

Any ideas appreciated...

Stavros
Terry
Posts: 306
Joined: Wed Jan 03, 2018 11:58 am

Strange VO app delay on exit

Post by Terry »

Hi Stavros.
I have no knowledge of any of this - but could it have anything to do with the order in which you're linking things up to the ribbon?

Sorry if it's a daft idea.

Terry
User avatar
Stavros Spanos
Posts: 104
Joined: Thu Nov 12, 2015 4:59 pm
Location: Greece

Strange VO app delay on exit

Post by Stavros Spanos »

Doesnt seem so unfortunately. The only difference is several if/then/elses leading to different menus about every product.

I even assigned NULL_OBJECT to CJ Object calling Collectforced() afterwards - and prior to QUIT. The result was the same ; 2-3 annoying seconds not trapable by the debugger as the are after the final QUIT...

Thanks!
Terry
Posts: 306
Joined: Wed Jan 03, 2018 11:58 am

Strange VO app delay on exit

Post by Terry »

Only other thing I can think of is trying to disconnect ribbon twice.


Terry
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Strange VO app delay on exit

Post by robert »

Stavros,
In one of my customers' projects we had similar problems with CodeJock. We switched to a newer version of the OCX and the problem was gone.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
Stavros Spanos
Posts: 104
Joined: Thu Nov 12, 2015 4:59 pm
Location: Greece

Strange VO app delay on exit

Post by Stavros Spanos »

Robert thanks for the info!

Unfortunately we checked and have the latest version. 18.4.0
User avatar
Stavros Spanos
Posts: 104
Joined: Thu Nov 12, 2015 4:59 pm
Location: Greece

Strange VO app delay on exit

Post by Stavros Spanos »

Terry wrote:Only other thing I can think of is trying to disconnect ribbon twice.


Terry
Terry, what do you mean "disconnect" ? I don't see such a method/func/action...
Terry
Posts: 306
Joined: Wed Jan 03, 2018 11:58 am

Strange VO app delay on exit

Post by Terry »

Hi Stavros

I meant that there may be some very subtle difference in the way you invoke your menus etc. leading to some being closed followed by further attempts to close the same thing again.

The delay would seem to indicate that the logic of the code is that it is trying to find something without success.

I am sorry I can't be more specific, but it's been a long time since I used VO and I've never used Codejock.

Terry
Jamal
Posts: 314
Joined: Mon Jul 03, 2017 7:02 pm

Strange VO app delay on exit

Post by Jamal »

I don't use CodeJock, but most likely the app cannot clean up all the messages or hooks by CodeJock.
Instead of Quit() which calls Win32 PostQuitMessage(), try the following:

Code: Select all

local hWnd := oMainWindow:Handle() as PTR

 if (hWnd := oMainWindow:Handle()) != null_ptr	   
	       DestroyWindow(hWnd)
		// PostMessage(hWnd, WM_CLOSE, 0, 0)   // this works too
	      return self
endif
See what happens.

Jamal
User avatar
Meinhard
Posts: 81
Joined: Thu Oct 01, 2015 4:51 pm

Strange VO app delay on exit

Post by Meinhard »

Hi Stavros,

as a long time user of the CodeJock OCX controls,I remember that there is a weird thing with timers. As far as I remember the Ribbon fires a timer event and this gave us all kind of trouble. So we added this to the dispatch method of the window which owns the OCX :

if oEvent:Message == WM_TIMER
if oEvent:wParam =6828
KillTimer( self:Handle() , oEvent:wParam )
endif
endif


HTH & Regards
Meinhard
Post Reply