Questions tagged [handlers]
225 questions
2
votes
1 answer
Handling timeout while using Ksoap2 in android
I am calling a method of another class from my activity that calls a webservice using ksoap2. I want to handle timeout for this. If the method takes more than 10 seconds to execute, then I need to show an alert dialog indicating that the process was…

A Aaron
- 33
- 1
- 4
2
votes
1 answer
The point of Handlers?
I am aware this is most likely a very stupid question, but I just cannot completely understand the point of Handlers. I know the idea is that Handlers execute on the main thread, and they seem to be most commonly used along with worker threads, but…

SoManyGoblins
- 5,605
- 8
- 45
- 65
1
vote
1 answer
Autohotkey hotkey handlers fall through/continue to lines below
I’m having some trouble with Autohotkey. I have a script with a few hotkeys but it seems that when a hotkey is pressed, not only does its handler run, but so do all lines below it, including the contents of other hotkey handlers. Below is a…

Synetech
- 9,643
- 9
- 64
- 96
1
vote
1 answer
WxWidgets same handler for lots of buttons/controls
I have a control system with a lot of tabs. Each of them with many buttons and text controls. I would like to have one single event handler that executes the same code but to different text controls.
For example, 10 text controls have IP values.…

DarkZeros
- 8,235
- 1
- 26
- 36
1
vote
1 answer
If facebook is no longer supporting fbml / xfbml and the event handlers provided for them then what is the alternative for iframes?
Facebook currently has event handlers for facebook events such as like / recommend. But this is available only for xfbml version of the code. Since facebook is no longer supporting fbml / xfbml…

Leena Samuel
- 67
- 2
- 12
1
vote
1 answer
Catch SysLogHandler's output
Following advice, I'm planning to log errors from several time critical python processes (clients) to a single logging process (server). SysLogHandler seems to be the correct choice as it uses UDP (I rather be system-agnostic) and does not wait for…

Jonathan Livni
- 101,334
- 104
- 266
- 359
1
vote
2 answers
Facebook profile picture request i.e. "http://graph.facebook.com/me/picture"
When I do a request for a profile picture, mine in this case I receive some kind of encoded string in my HttpResponseHandler. The code below is the request for my profile picture.
private static AsyncHttpClient client = new…

Danuofr
- 1,661
- 19
- 25
1
vote
0 answers
call handler in another project in same solution?
how can I call a generic handler defined in the same solution but different project?
the problem is that I will create a circular reference if I refer to that handler class?

Pindakaas
- 4,389
- 16
- 48
- 83
1
vote
0 answers
ipojo custom handlers - auto attached handlers - issue in attaching to specific components
I have an issues concerning the custom auto handlers in ipojo. I have created an handler (say Handler-Auto), I want this handler to be auto attached to a POJO component instances (say Comp-1) without touching the metadata of POJO components.
To…

Sadish
- 11
- 1
1
vote
1 answer
django logging handler
How can I get the logging handler object instance(s) in django (>=1.3)? with standard python logging I instantiate the logger and then the handler:
h = logging.handlers.TimedRotatingFileHandler( FILE, 'D', 1)
I want h or the array of h's that…

yee379
- 6,498
- 10
- 56
- 101
1
vote
2 answers
How to refer to an object from within a handler
So I have a mouse listener that is attached to multiple objects as so:
for (int i = 0; i < Grids.size(); i++) {
Grids.get(i).addMouseListener(new GameMouseListener());
}
Now the problem I have is I need to know which of the Objects…

Sammy Guergachi
- 1,986
- 4
- 26
- 52
1
vote
2 answers
How can I protect my asp.net Handler page
I'm using this practice to add comments using AJAX , by sending the data to an ASP.NET Handler which collect the information and then insert the comment, but I am afraid that any one could use it , am I wrong !?
//AddComment.ashx
public void…

Rawhi
- 6,155
- 8
- 36
- 57
1
vote
1 answer
Rebus: How to handle event types with generics
I'm having some trouble with my handlers not "catching" my events.
My current structure is that I have a wrapper around Rebus in a separate package that wraps around Rebus' methods and expose a factory to use with i.e. Autofac - so far so good.
I…

Hulvej
- 3,895
- 1
- 18
- 21
1
vote
2 answers
Assignment from incompatible pointer type — how to fix?
Trying to implement signal handlers but receiving the warning:
assignment from incompatible pointer type [enabled by default]
act.sa_sigaction = sigChldHandler;
... Also my professor pointed out.
char * argv[3];
argv[0]=…

J. Doe
- 11
- 1
- 4
1
vote
1 answer
Multiple handlers for one command in eclipse e4
I am writing a new command for my eclipse RCP that should perform one task if one part is active, and other task if other task is active (eg. copy command that copies files if project explorer is active or copies text if text editor is active). I…

deckard cain
- 497
- 10
- 24