Ateasy 8 - Runtime Error #0xEEDFADE
Cyril P.
Meung Sur Loire, Loiret

Nov 27, 2012
19 Posts

Ateasy 8 - Runtime Error #0xEEDFADE

Hello,

I have the following runtime error when exiting my program and calling a close function to free IO module resources.
Runtime error #0xEEDFADE.
I have this message under WinXP and Win7. I am using Ateasy 8 build 148.

Did someone know what is this RT error?

Thanks.
Cyril

Victor B.
Lake Forest, CA

Nov 28, 2012
91 Posts

Re: Ateasy 8 - Runtime Error #0xEEDFADE

Cyril,

Just based on the runtime error, I wouldn't be sure of the cause for the failure. Was any more detailed information given when the application crashed? The next time it crashes, you can try to take a screenshot or retrieve the error log from Windows. There is some information about how to get more error info in this article: http://www.marvintest.com/KnowledgeBase/KBArticle.aspx?ID=213

Regards,
Victor

Cyril P.
Meung Sur Loire, Loiret

Nov 28, 2012
19 Posts

Re: Ateasy 8 - Runtime Error #0xEEDFADE

Hi Victor,

the application doesn't really crash. I've got an Ateasy Runtime dialog box with Abort/Retry/Ignore buttons.
None of the buttons work, I need to kill the application with task manager.
Find attached the dialog box screenshot.

Thanks.

Regards,
Cyril


File Attachment:
RT error.jpg

Victor B.
Lake Forest, CA

Nov 28, 2012
91 Posts

Re: Ateasy 8 - Runtime Error #0xEEDFADE

Cyril,

This error appears to be generated from the IO_BOARD driver's TCUSBIO24_Close procedure.  Can you paste the code for this procedure or the entire IO_BOARD driver?  Also, the model of the device you are connecting to if is it a COTS device?

Regards,
Victor

Cyril P.
Meung Sur Loire, Loiret

Nov 29, 2012
19 Posts

Re: Ateasy 8 - Runtime Error #0xEEDFADE

Hi Victor,

to answer to your question, the device is this one TC-USB24IO from 3C-Concept.
you can found it here: http://www.3cconcept.fr/fr/produits-usb/46-module-usb-8e6scodeur-incremental.html

For your knowledge, this device is one of the three models available in this familly device. I am using also the two other models (TC-USB16IO and TC-USB48IO) and I have not this problem with them. The Dll and behavior of these two modules are identical to the 24IO version.
So I cannot explain why I have this issue with this model only.

I have done other tests to find out what could be the problem.
I have done a small program with only my driver and in this configuration I have no error, it's work fine.
This close function only generate error when the driver is integrate and use in my full application.

Finally, I found that the problem is because I called the Close function from another thread than the one use to call the OpenN function.
When I start my application, the driver OnInit() event initalize the IO device with the OpenN function of the DLL. Which is the main ateasy thread.
Then, when I exit my application I am calling the Close function from another thread (I have created) and in that case I have this RT error from ateasy.
I have move the call to the OnEnd() event of my system and no more error. It's works at this place as it is the main ateasy thread too.
I have found also that I can use the Try Catch to catch the error.

What I can not explain is why I have this issue with this device/dll but not with the two other models.

As a workaround for now, as I don't want to move the call to the Close function to the OnEnd() of system, I will add a Try Catch in my driver to avoid this error message.

Do you think it is an Ateasy or DLL issue?

Thanks and regards,
Cyril

Cyril P.
Meung Sur Loire, Loiret

Nov 29, 2012
19 Posts

Re: Ateasy 8 - Runtime Error #0xEEDFADE

I have contacted in parallel the provider of the DLL and he found a bug in the DLL for this device. Some object was not released and this is the cause of the RT error.
The first trial with a modified DLL was good. I am waiting for the final release of the DLL to check again but it seems this problem is resolved.

Edit: new fixed DLL works fine now.

Thanks for your help.
Cyril



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]