![]() |
ChangeEvent |
Post Reply
|
| Author | |
tomgriff
Groupie
Joined: 10 August 2006 Status: Offline Points: 25 |
Post Options
Thanks(0)
Quote Reply
Topic: ChangeEventPosted: 01 September 2006 at 2:49am |
|
Hello,
I need to update a customProperty in an event if a user drags an event on the calendar.
This fires the EventChange, after I update the CustomProperty with the new data, I do the DataProvider.ChangeEvent pEvent method.
This puts me into a loop.
Am I doing this at the wrong place or is there an excepted way to get out of the loop.
|
|
![]() |
|
sserge
Moderator Group
Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 September 2006 at 4:04pm |
|
Hi,
Actually this is quite often case - when from some event handler you call method which fires this event again and you get a loop and stack overflow. The idea to avoid this is to have a global semaphore of running this method, as following:
-- WBR, Serge |
|
![]() |
|
tomgriff
Groupie
Joined: 10 August 2006 Status: Offline Points: 25 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 September 2006 at 5:09pm |
|
Thanks for the reply. I will give this a try.
|
|
![]() |
|
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 |