Problem using OCX on RTC client
ddanica
Member Posts: 10
Hi!
I'm doing an upgrade from Nav 5 to Nav2009 R2 and I have the following problem:
In some objects I use methods from an OCX developed by one of my colleagues. On classic client work fine, but when I try to use it on RTC client, I receive the following error:
"This message is for C/AL programmers: The call to member [...] failed: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))."

I receive this error for any method that I call. The OCX is created in Visual C++. Can anyone tell me what is wrong with the OCX or in what way must be created to work?
I use windows 7 with all updates.
Thank You!
I'm doing an upgrade from Nav 5 to Nav2009 R2 and I have the following problem:
In some objects I use methods from an OCX developed by one of my colleagues. On classic client work fine, but when I try to use it on RTC client, I receive the following error:
"This message is for C/AL programmers: The call to member [...] failed: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))."

I receive this error for any method that I call. The OCX is created in Visual C++. Can anyone tell me what is wrong with the OCX or in what way must be created to work?
I use windows 7 with all updates.
Thank You!
0
Comments
-
Maybe your call of the automation has missing parameters. In Nav2009 there are 2 more paramaters for the CREATE function.
Create(someAutomationVariable,True/False(New Server),True/False (Run on Client));
Example:
CLEAR(WshShell);
IF ISCLEAR(WshShell) THEN
CREATE(WshShell,FALSE,ISSERVICETIER);
Have you checked this?
Regards,
egnaz0 -
Thank you Egnaz, but CREATE is used only for automation data type. This is an OCX and I use OCX data type.0
-
what does the OCX do? Also OCX only instantiate at the client and not on the server.0
-
Yes, I need to run it on client, not on server. In this OCX I have many methods. For example, I have a method that make browse and select a folder (because in CU 412 is a function that make's browse just for a file) , I have a method that read all files form a folder, etc. All this methods work fine on classic client, the error appear just for RTC client and I have this error for all methods.0
-
You'll get this error because the RTC is processing such things on the service tier maschine. That's the reason why automations have the new parameters.
In the moment I don't know a workaround for your OCX problem. Maybe you have to redesign it to work with DotNet DataType.
Regards,
egnaz0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
