cancellation

Can CancellationTokens be used across AppDomains

.NET 4 introduced some types to nicely support cooperative cancellation. I would like to be able to cancel an operation which is running in a different AppDomain. The CancellationToken type is a struct. If I pass it to another AppDomain, will it work as normal? ...

Cancelling long operation

Hi, I have a background worker running to copy a huge file (several GBs) and I'd like to know how to cancel the process in the middle of the copy. I can check CancellationPending property before the copy but don't know how to do it when copy is already in progress. if (worker.CancellationPending) // check cancellation before copy { ...

Android Market, Order Cancellation Reason - You cancelled this order.

A couple of weeks ago i uploaded one of App which happens to be a widget. But from the time i uploaded it i have seen lots of cancellation. The only reason google gives me is this: You cancelled this order. Reason: Other (describe below) Message sent to customer: Cancellation requested from phone. I cant get heads or tail of it... Wat...

C# BackgroundWorker Cancellation with Helper Function

Normally, when I want to cancel a backgroundWorker in C# I will do something like this: while (backgroundWorker1.IsBusy) { backgroundWorker1.CancelAsync(); autoResetEvent1.WaitOne(BGW_CANCEL_TIMEOUT); } In one application there are a number of backgroundWorkers. Is it valid to use a helper-function to c...

Acoustic echo cancellation in Java

I'm implementing a VOIP application that uses pure Java. There is an echo problem that occurs when users do not use headsets (mostly on laptops with built-in microphones). What currently happens The nuts and bolts of the VOIP application is just the plain datalines of Java's media framework. Essentially, I'd like to perform some digita...

How to retract a message in RabbitMQ?

I've got something like a job queue over RabbitMQ and, upon a request to cancel a job, I'd like to retract the tasks that have not yet started processing (their messages have not been ack'd), which corresponds to retracting these messages from the queues that they've been routed to. I haven't found this functionality in AMQP or in the R...

Cybersource card cancellation

Hi All, I am working on a project which uses Cybersource as payment gateway. I am able to pass all the payment informations to Cybersource. My task now is to canelling payment from an previously submitted card. I cannot find the html source code which can be used for posting to the cybersource for cancelling my previous cards so that ...

Using Android's build-in acoustic echo cancellation

Does anyone know how to use Android device's built-in acoustic echo cancellation? It is located somewhere in silicon and is used for GSM/CDMA speakerphone calls. We'd really like to tap into it for a VoIP application instead of rolling our own. Ben ...