Print Page | Close Window

Crash on populate

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=16832
Printed Date: 06 October 2024 at 11:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Crash on populate
Posted By: mhe240
Subject: Crash on populate
Date Posted: 15 June 2010 at 6:52pm
Crash on populate
When I set a event to all day event I'm getting a crash.
I'm using a custom data provider.





Replies:
Posted By: SuperMario
Date Posted: 16 June 2010 at 10:02am
What is the error you get?


Posted By: mhe240
Date Posted: 16 June 2010 at 10:46am
   Run-time error '2147417848 (80010108)':
   Method 'Populate' of object '_DCalendar Control' failed

This was a error that was raised.


The Method 'Populate' can sometimes change to a Method 'Redraw'(not sure exact spelling) instead.  Currently, the program crashes without a error message when cal.Populate is called.

Setting the AllDayEvent flag to false and the event loads in the calendar, but when any event has AllDayEvent set to true, it crashes on populate.


Posted By: mhe240
Date Posted: 16 June 2010 at 12:05pm
'    lTheme.DayView.Day.Group.MultiDayEvent.HeightFormula.Constant = 0
'    lTheme.DayView.Day.Group.MultiDayEvent.HeightFormula.Multiplier = 0
'    lTheme.DayView.Day.Group.MultiDayEvent.HeightFormula.Divisor = 1
'    lTheme.DayView.Day.Group.SingleDayEvent.HeightFormula.Constant = 0
'    lTheme.DayView.Day.Group.SingleDayEvent.HeightFormula.Multiplier = 0
'    lTheme.DayView.Day.Group.SingleDayEvent.HeightFormula.Divisor = 1

I have solved the problem, it had to do with these settings in the theme object being used by the calendar. 



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