Error While Receiving Sms (evDeliverSm)
Moderator: alt
Error While Receiving Sms (evDeliverSm)
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
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
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
ProcessFlows UK Ltd
http://www.processflows.co.uk/
http://www.processflows.co.uk/