raiseevent isssue in Windows XP

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've developed a program that raise an event. This program works fine on a Windows 2000 Professional PC. However when I try to run the program on a Windos XP Professional PC, the program will not execute the raiseevent function.

How can I resolve the problem?
 
You will need to give us some more information. What happens? Do you
get an exception? What kind of event?

David
 
The following is how my program works:
First I have class (clsCommFax.vb) which will create and invoke a number of threads to call a fax sending procedure which is in another class (clsFaxThread.vb). clsFaxThread.vb is inherited from a class (clsCommSend.vb) that implements an interface. In clsCommSend.vb, I had a function that raise an event as follows:

Event InvokeSend() Implements CommInterface.CallSend

Public Function Invokesendfax() As String
MsgBox("Invoke Send Fax :>> RaiseEvent Invoke Send !")
Try
RaiseEvent InvokeSend()
Catch
MsgBox(Err.Description)
End Try
End Function

When I run the program in Windows XP, the msgbox is displayed but it will not execute the RaiseEvent InvokeSend() code. There's no exception produced within the program.

As I've mentioned in my previous post, the the above program manage to run successfully on a Windows 2000 Professional PC.

Any help will be most appreciated. Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top