Automation - CREATE-Error

Bettina
Member Posts: 22
I have a dll which I could register with regsvr32 without problems. The dll was created in Delphi from an external company. In Excel-VB it works fine.
I can define a variable in Navision for this automation, so the dll should be registered correctly. But if I try to create an instance I get the "Internal error 33 in module 35", if I don't check the return value of CREATE.
I tried to register the dll in the Navision-Client-folder and in \windows\system32. I checked it with a Navision 5.01-Client on Windows Vista and Windows XP, but I can't create an instance.
Has anybody an idea what can be wrong with the dll? What should be considered by creating a dll for use in Navision?
I can define a variable in Navision for this automation, so the dll should be registered correctly. But if I try to create an instance I get the "Internal error 33 in module 35", if I don't check the return value of CREATE.
I tried to register the dll in the Navision-Client-folder and in \windows\system32. I checked it with a Navision 5.01-Client on Windows Vista and Windows XP, but I can't create an instance.
Has anybody an idea what can be wrong with the dll? What should be considered by creating a dll for use in Navision?
0
Answers
-
Try to clear the automation before create.
If clear(Automation) then
create(Automation);Regards,
Manish0 -
Thank you for your information, manisharma31, but I do clear the automation before CREATE.0
-
Hi Bettina
Can you create an instance using create statement if you use the return value?
Regards
Thomas0 -
Hello Thomas, if I check the return value, I only avoid the "Internal Error"-Message. It is not possible to create the instance.0
-
Can you talk with the developer of the dll? It could be a problem with the COM interface. What is the job of the dll?
Regards
Thomas0 -
Bettina, I am quite sure that you must have done this, still, I thought, some time we miss the obvious. When you say, "I tried to register the dll in the Navision-Client-folder and in \windows\system32." Did you register the dll from the NAV client folder or did you register from a different location and just copied the dll there?
Rgds,
Chn0 -
Hello Chn, firstable I copied the dll to the Navision-Client folder, then I registered it. Whats with the dlls which are linked in "My dll"? They are registered in \windows\system32, but do I have to copy these dlls to the Navision-Client folder? No, or?0
-
Hi Bettina,
In case your .dll registration was proper (as you have mentioned, that the registration process was not a problem), then I guess you need to discuss the issue with the developer of this. Also you can check the .dll by using it through some other option, for example, you can try the .dll with Visual Basic, etc.
Regards,
Chn0 -
Chn, the dll works fine in Visual Basic.
Thomas, at the moment the dll is very simple, because it should be a test for a warehouse solution. There is only one function with 6 input parameters and a return value.0 -
Could be a problem with the interface.
Try to discuss this viewtopic.php?f=23&t=8156 topic with the programmer.
Hope this helps
Thomas0 -
Hello all, the developer of the dll found the solution today. The object must support a "lDispatch-Interface". Then you can create an instance in Navision. Don't know if it is an special option in Delphi or not. Now it works and I'm happy ...
Thank you all for your support! Good to know there is someone in the world who wants to help.0 -
Glad to hear that!
Regards
Thomas0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 320 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