Click here to Skip to main content
15,913,027 members
Home / Discussions / C#
   

C#

 
Questionadd a page Pin
daku116-Jul-07 12:47
daku116-Jul-07 12:47 
AnswerRe: add a page Pin
T.EDY16-Jul-07 17:06
T.EDY16-Jul-07 17:06 
AnswerRe: add a page Pin
Sathesh Sakthivel16-Jul-07 17:20
Sathesh Sakthivel16-Jul-07 17:20 
Questionthrow exception does not work in timer event??? Pin
Togg16-Jul-07 12:38
Togg16-Jul-07 12:38 
AnswerRe: throw exception does not work in timer event??? Pin
Luc Pattyn16-Jul-07 14:23
sitebuilderLuc Pattyn16-Jul-07 14:23 
GeneralRe: throw exception does not work in timer event??? Pin
Togg16-Jul-07 19:55
Togg16-Jul-07 19:55 
GeneralRe: throw exception does not work in timer event??? Pin
J4amieC16-Jul-07 22:23
J4amieC16-Jul-07 22:23 
GeneralRe: throw exception does not work in timer event??? Pin
Togg17-Jul-07 8:30
Togg17-Jul-07 8:30 
Gnaarf I cant get it to work Frown | :(

I subscribed to the event fired on timeout timer in my main():
<br />
sample.OnTimeout += TimeoutHandler;<br />
static void TimeoutHandler(object gh615, TimeoutEventArgs e)<br />
{ throw new System.TimeoutException("Command failed: " + e.timedOutCmd + " Device did not respond."); }<br />


The event fires, but the throw is still not effective in the main function.

Again for summarisation of my problem:

- A class sample owns a timer timeout1
- A class testing which has the static void main() should get informed when the timeout occurs and should stop processing (for example while(true) loop)


I think I need an example... Anyone?

Sebastian
QuestionAdd versioning to interop DLL created with tlbimp now can't find in GAC Pin
vbtmikem16-Jul-07 12:38
vbtmikem16-Jul-07 12:38 
Questionremove white spacing between letters in string Pin
monafr8116-Jul-07 10:50
monafr8116-Jul-07 10:50 
AnswerRe: remove white spacing between letters in string Pin
snorkie16-Jul-07 11:18
professionalsnorkie16-Jul-07 11:18 
GeneralRe: remove white spacing between letters in string Pin
monafr8116-Jul-07 22:13
monafr8116-Jul-07 22:13 
AnswerRe: remove white spacing between letters in string Pin
BoneSoft16-Jul-07 11:20
BoneSoft16-Jul-07 11:20 
GeneralRe: remove white spacing between letters in string Pin
monafr8116-Jul-07 22:11
monafr8116-Jul-07 22:11 
QuestionUser Control Default Properties? Pin
Chase Davis16-Jul-07 9:28
Chase Davis16-Jul-07 9:28 
AnswerRe: User Control Default Properties? Pin
Dave Kreskowiak16-Jul-07 10:15
mveDave Kreskowiak16-Jul-07 10:15 
GeneralRe: User Control Default Properties? Pin
Chase Davis17-Jul-07 6:01
Chase Davis17-Jul-07 6:01 
Questioncopying a file to a remote location Pin
waqas_2k16-Jul-07 9:00
waqas_2k16-Jul-07 9:00 
AnswerRe: copying a file to a remote location Pin
Dave Kreskowiak16-Jul-07 10:02
mveDave Kreskowiak16-Jul-07 10:02 
Questionabout research proposal Pin
s4_sabahatf16-Jul-07 8:40
s4_sabahatf16-Jul-07 8:40 
AnswerRe: about research proposal Pin
mav.northwind16-Jul-07 8:49
mav.northwind16-Jul-07 8:49 
AnswerRe: about research proposal Pin
Dave Kreskowiak16-Jul-07 8:50
mveDave Kreskowiak16-Jul-07 8:50 
JokeRe: about research proposal Pin
Paul Conrad16-Jul-07 12:31
professionalPaul Conrad16-Jul-07 12:31 
GeneralRe: about research proposal Pin
Dave Kreskowiak16-Jul-07 13:41
mveDave Kreskowiak16-Jul-07 13:41 
GeneralRe: about research proposal Pin
Paul Conrad16-Jul-07 13:51
professionalPaul Conrad16-Jul-07 13:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.