Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - [SOLVED] Method Populate failed
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] Method Populate failed

 Post Reply Post Reply
Author
Message
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] Method Populate failed
    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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2010 at 2:17pm
Hard to say, can you submit your data you use?  Or code you use?
Back to Top
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.187 seconds.