Print Page | Close Window

me.hWnd valid at program shut down?

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=6583
Printed Date: 08 June 2024 at 11:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: me.hWnd valid at program shut down?
Posted By: Fabian
Subject: me.hWnd valid at program shut down?
Date Posted: 07 March 2007 at 10:18am
Hello
I run into a strange problem (using VB6/SP6 under WindowsVISTA, no problem under Win2000 and XP):
 
To retrieve special folder locations I use SHGetSpecialFolderPath(me.hwnd,...) during program execution (e.g. for the init folder of a common dialog control).
 
If I set a skin - all works as expected. Then I close my app - no problem. Then I restart the app - OK. Now the program part using SHGetSpecialFolder was called - and the program hung. Only rebooting the PC helps (shuting down via task manager do not cure the situation!)
 
If I do not use a skin it works. I think the problem has something to do with me.hwnd...
 
(I can not use 0 as a hwnd because - since I use IE7 - the returned path was empty and it works only using me.hwnd under XP...)
 
Thanks a lot for any idea
Fabian
 


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6



Replies:
Posted By: Oleg
Date Posted: 07 March 2007 at 2:02pm
Hi,
Do you use last version?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Fabian
Date Posted: 08 March 2007 at 1:14am
Yes, 10.4.2

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: Fabian
Date Posted: 08 March 2007 at 11:12am
Hello
 
I made somed more experiments. The problem has nothing to do with setting the init directory.
 
As soon as we use Skins and open the open file dialog, the app hangs
 
If we do not use Skins, all works as expected
 
The problem occures only under Windows Vista (Admin, XP compatibility... doesn't matter)
 
The CJ SDI skin sample WORKS on all plattforms
 
Any idea, a solution is rel. urgent
Thanks in advance
Fabian


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: Fabian
Date Posted: 08 March 2007 at 11:44am
Is it possible to remove skinning only for common controls (open file dialog)? This would be better than a crash...
 
Thanks again
Fabian


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: Oleg
Date Posted: 09 March 2007 at 3:00am

Hi,

try to understand what difference between your and our applications. Why our works and your not.  We need some sample that we can use to reproduce problem.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Fabian
Date Posted: 09 March 2007 at 8:42am
Hi Oleg
 
Thats the problem. Our app is relatively large and I don't find a code snippet that shows this behaviour per se.
 
Our App was compiled as a ActiveX-EXE. Apart from CJ controls we use SaxBasic, Metadraw, Imageman and a few others.
 
It doesn't matter if the common controls ActiveX was hosted on the main form or not.
 
If we try to open a file open/save dialog (no problem with color dialog) and click on a file/folder the app hang. Sometimes we can choose some files but next time opening the dialog - hang. If the PC hangs it shows always the hourglass corsor.
 
Shuting down the app with the task manager - it is not possible to restart our app (no message - nothing); we have to reboot the PC.
 
Now I have set AutoApplyNewWindows to false and after opening the file open/save dialog we reset it to True. That works, but dialogs ar not skinned...
 
All problems where only present on the WinVista machine.
 
If I can try something, let me know
Thanks for any Idea
Fabian


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: Fabian
Date Posted: 12 March 2007 at 11:42am
Hello Oleg
 
I found the problem. We use the SaxBasic ActiveX. As soon we place it on a form (without any coding) the app hang as soon as we call FileOpen of the common dialog controls (under Vista only and obly if skinned).
 
If it helps, I can send you the OCX (give me a mail address please). The product was discontinued by Sax, so they will not help
 
Thanks for your help


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: Oleg
Date Posted: 12 March 2007 at 2:42pm
Hi,
Please send letter with zip attachment to mailto:support@codejock.com - support@codejock.com


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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