Print Page | Close Window

VB6 & EXE crash when MDI form closed

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=22925
Printed Date: 27 April 2024 at 12:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: VB6 & EXE crash when MDI form closed
Posted By: john_d
Subject: VB6 & EXE crash when MDI form closed
Date Posted: 17 February 2016 at 11:29am
Hi all
I'm a newcomer to Codejock and have spent a couple of days trying to get to grips with the evaluation version of the Skin Framework to freshen up our very large VB6 application consisting of many forms, Internally written ActiveX controls (internal to the VBP), classes, external ocxs/dlls etc.  There are a number of issues I am getting but the first is that no matter what I have tried, the app crashes when I close the main MDI form down using the X (either in debug mode or using the compiled exe). 
I'm now using the following code in MDIForm_Load():

SkinFramework1.ExcludeModule "msado15.dll"
(then a batch of other excludes)

bRet = SkinFramework1.LoadSkin(App.Path & "\styles\Office2010.cjstyles", "normalblue.ini")
SkinFramework1.ApplyWindow Me.hWnd
SkinFramework1.ApplyOptions = SkinFramework1.ApplyOptions Or xtpSkinApplyMetrics

When the X is pressed it triggers the MDIForm_QueryUnload event in which I use this line:

SkinFramework1.RemoveAllWindows

I have exhausted the forums and the code samples and can't see what the issue might be, or find any other documentation. I have also run Process Explorer and tried to assess which dlls could be the problem, and included all these as ExcludeModule statements.  I'm not sure what to try next. If we are to use CodeJock going forward as a company I really need some help.  Thanks in advance...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net