AddHandler .Net2.0

Solution Available
Abder
Montreal,

Dec 16, 2009
7 Posts

1  |  0  

Re: AddHandler .Net2.0

I'm trying to use the AddHandler statement to attach to an (.Net assembly) event  but it causes an ATEasy 7.0 crash (see attached error) during the runtime. Could you please help to fix this issue.
Thx


File Attachment:
error.JPG

Amit G.
Irvine, CA

Dec 16, 2009
26 Posts

0  |  0  

Re: AddHandler .Net2.0

Which .NET assembly and what event? Could you post the code that you are using (that causes the crash) ?

Abder
Montreal,

Dec 16, 2009
7 Posts

0  |  0  

Re: AddHandler .Net2.0

The assembly is a Phidget21.NET.dll and I'm using the following code  :

  mDictionary = mDictionary.open("192.168.1.102",5001)
   .....
!attatch a Key Listner ...
   mKeyListener  = new KeyListener(mDictionary,"/Server/*")
  
   AddHandler   mKeyListener.OnKeyChange ,   OnKeyDicChange
   AddHandler   mKeyListener.OnKeyRemoval,   OnKeyDicRemove

   !start the listner
  mKeyListener.start()

During the runtime if there is any OnKeyChange event detected ATEasy crashs

Amit G.
Irvine, CA

Dec 16, 2009
26 Posts

0  |  0  

Re: AddHandler .Net2.0

What OS are you using? And what build of ATEasy 7.0 are you using (Check in the Help | About ATEasy...)

Abder
Montreal,

Dec 16, 2009
7 Posts

0  |  0  

Re: AddHandler .Net2.0

OS: windows XP Pro SP3 and the build 142b

Amit G.
Irvine, CA

Dec 16, 2009
26 Posts

0  |  0  

Re: AddHandler .Net2.0

If you go to C:\windows\Microsoft.NET\Framework   , what folders are listed there?

Abder
Montreal,

Dec 16, 2009
7 Posts

0  |  0  

Re: AddHandler .Net2.0

please see the pic.
Thx
NB:
In the folder V3.5 there is no files. I think it's there cause .Net 3.5 was installed


File Attachment:
folder.JPG

Abder
Montreal,

Dec 16, 2009
7 Posts

0  |  0  

Re: AddHandler .Net2.0

The problem is fixed. I've uninstalled everything related to .Net on my machine after that I've re-installed the .Net 2.0.
But it doesn't explain why ATEasy crash (even the developpement environment ).

Amit G.
Irvine, CA

Dec 16, 2009
26 Posts

0  |  0  

Re: AddHandler .Net2.0

Using .NET 3.0 or higher with AddHandler results in the behavior you were seeing (crashing).

This issue has been resolved in Build 142c. You can download this newer build at:

http://geotest.fileburst.com/downloads/ATEasy7-142c.exe

Abder
Montreal,

Dec 17, 2009
7 Posts

0  |  0  

Re: AddHandler .Net2.0

Thank you for your support I want to specify that the fix in the Build 142c is nedded as well for the .NET 2.0 Service Pack 2



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]