[SOLVED] Method Populate failed |
Post Reply |
Author | |
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
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
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Hard to say, can you submit your data you use? Or code you use?
|
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |