Error While Receiving Sms (evDeliverSm)

Smpp v3.4 client

Moderator: alt

Locked
aallvvii
Posts: 12
Joined: Wed Feb 17, 2010 7:52 pm

Error While Receiving Sms (evDeliverSm)

Post by aallvvii » Wed Mar 10, 2010 2:20 pm

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
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Post by NickAskew » Sat Mar 13, 2010 11:26 pm

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
ProcessFlows UK Ltd
http://www.processflows.co.uk/
aallvvii
Posts: 12
Joined: Wed Feb 17, 2010 7:52 pm

Post by aallvvii » Sun Mar 14, 2010 3:30 pm

Dear NickAskew!

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

Warm Regards
Locked