Events Failing to fire

  • Thread starter Thread starter Paul [Paradise Solutions]
  • Start date Start date
P

Paul [Paradise Solutions]

Hi all

Was wondering if anyone can confirm if problems can arise when re-using
a variable declared as 'EventArgs' and then, when it comes to raising an
event, using the code like the following to raise multiple events,
without having to dimention separate variables for each one:


Dim e as EventArgs

e= new EventType1Args("Bah")
RaiseEvent EventType1(Me,e)

e = New EventType2Args("humbug")
RaiseEvent Eventtype2(Me,e)


I ask this as I'm having trouble with events that by all purposes should
work, but neither fire, nor generate exceptions when I try to raise them.


Many thanks


Paul
 
Would love to...

During my preparation of some code, I could not make the events not fire
(though the procedures in my project consistantly do not fire at all),
so I was wondering if there are things that could have an effect on them?
As an aside, I've also had another problem with events where the first
event never fired, but all subsequent ones did (different project).

Will keep working on code that reproduces the fault - many thanks for
your response.

Paul
 
Back
Top