Print Page | Close Window

[SOLVED] Method Populate failed

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=16806
Printed Date: 19 July 2025 at 1:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] Method Populate failed
Posted By: chrisABC
Subject: [SOLVED] Method Populate failed
Date Posted: 08 June 2010 at 11:20am
I have changed a few things in the EditEvent Form code and now the Calendar Control app has stopped working.

When the main form (containing the Calendard Control) tries to load, I get this error message:
   Run-time error '2147417848 (80010108)':
   Method 'Populate' of object '_DCalendar Control' failed

This results in VB becoming frozen and the only thing I can do is CTRL-ALT-DEL.


Any idea what is wrong?  As far as I can see, at this stage the EditEvent Form is not even loaded.

ANSWER: The database mdb file was faulty, and caused this problem.


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



Replies:
Posted By: SuperMario
Date Posted: 08 June 2010 at 2:17pm
Hard to say, can you submit your data you use?  Or code you use?


Posted By: chrisABC
Date Posted: 08 June 2010 at 8:05pm
It turns out the events.mdb database I am using is causing the problem.

When I put this faulty mdb with the CJ Calendar Sample, that also gives the same error.

Using a new copy of the mdb fixes the problem.

I used ACCESS and removed all records from the faulty mdb, but Calendar Control still gave error with that mdb.


I think CJ could improve the error handling in the Calendar Control.  A faulty or empty datafile should not really cause VB to crash completely.
(I can email you the empty faulty mdb if you want to play with it :-)





-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



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