Page 1 of 1

Error While Receiving Sms (evDeliverSm)

Posted: Wed Mar 10, 2010 2:20 pm
by aallvvii
i receive this error "The Undo operation encountered a context that is different from what was applied in the corresponding Set operation. The possible cause is that a context was Set on the thread and not reverted(undone)." while i am receiving msg. Can anyone please let me know why this error is occurring. Waiting for replies

Posted: Sat Mar 13, 2010 11:26 pm
by NickAskew
Hi,

Are you running your application as a windows form, and have you placed any initialisation code in the form load/startup events within the form that may start communicating with SMPP *BEFORE* the form is fully loaded?

If so, I would recommend you pull the code from the form startup events and place it into a timer or thread of its own - to push the communication into a different thread than the form and see if that removes the context issue.

Cheers
Nick

Posted: Sun Mar 14, 2010 3:30 pm
by aallvvii
Dear NickAskew!

thx for the reply. i will use the timer event or thread and let you know.

Warm Regards