Print Page | Close Window

[SOLVED]Windows problems with attaching Datepicker

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=12377
Printed Date: 18 May 2024 at 6:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED]Windows problems with attaching Datepicker
Posted By: AndyWilton
Subject: [SOLVED]Windows problems with attaching Datepicker
Date Posted: 08 October 2008 at 3:44pm
Hi,
 
My users are experiencing GPF problems when exiting their apps.  It only happens when their apps contain both the CommandBars and the Calendar controls together, AND you try and get the IDispatch of the Calendar AND at least one button on the CommandBars is pressed.
 
I know this sounds very strange, but I've created a small control app just to prove this and if ALL of the above is true, then it GPFs when the app closes.  So far, I've tested the GPF fault in Windows XP (various service packs), and in Windows Vista.  Apparently, the problem doesn't happen if you have Vista SP1 applied allthough I've still got to personally test this.
 
The main reason I need the IDispatch of the Calendar control is to attach a DatePicker.  I did try and attach the DatePicker via the Calendar's 'hWnd' but this didn't work.
 
This is quite a serious problem and I could do with a response on this sooner rather than later.  I did add an earlier posting requesting you add a way to get the Idispatch of the Calendar saving me using the built in method within my development environment - but I've not had any response from you on it.  Somebody else however has reported the same fault - so at least I know I'm not going mad.
 
Many thanks in advance,
 
Regards,
 
Andy Wilton
 


-------------
Product: Xtreme SuitePro (ActiveX) v11.2.1 -> v15.2.1
Platform: Windows XP / Vista / Win 7
Language: Clarion 5.5 -> C8.x
======================================
Andy Wilton



Replies:
Posted By: AndyWilton
Date Posted: 06 January 2009 at 10:39am
This has now been solved.

-------------
Product: Xtreme SuitePro (ActiveX) v11.2.1 -> v15.2.1
Platform: Windows XP / Vista / Win 7
Language: Clarion 5.5 -> C8.x
======================================
Andy Wilton


Posted By: Kagome
Date Posted: 06 January 2009 at 12:41pm
Hi, would you mind sharing your solution?


Posted By: AndyWilton
Date Posted: 09 January 2009 at 8:52am
Yes, sorry about that I should have posted the solution earlier.
 
It turned out to be my fault.  I wasn't releasing certain resource objects (eg, RemindersDialog or DatePicker) correctly, and this was causing the app to GPF on exit, but only under certain conditions.
 
Once I corrected my code - ALL of the GPF issues were resolved.
 
Regards,
 
Andy


-------------
Product: Xtreme SuitePro (ActiveX) v11.2.1 -> v15.2.1
Platform: Windows XP / Vista / Win 7
Language: Clarion 5.5 -> C8.x
======================================
Andy Wilton



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