mibuso.com

Microsoft Business Solutions online community
It is currently Thu Jun 20, 2013 3:38 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: [Solved] Automation - CREATE-Error
PostPosted: Tue Apr 24, 2012 2:49 pm 
Offline

Joined: Wed Nov 05, 2008 12:19 pm
Posts: 16
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?


Last edited by Bettina on Wed May 09, 2012 9:20 pm, edited 2 times in total.

Top
 Profile E-mail  
 
 Post subject: Re: Automation - CREATE-Error
PostPosted: Wed Apr 25, 2012 11:09 am 
Offline
Site Supporter

Joined: Mon Oct 06, 2008 2:05 pm
Posts: 241
Country: India (in)
Try to clear the automation before create.

If clear(Automation) then
create(Automation);


Top
 Profile  
 
 Post subject: Re: Automation - CREATE-Error
PostPosted: Thu Apr 26, 2012 8:56 am 
Offline

Joined: Wed Nov 05, 2008 12:19 pm
Posts: 16
Thank you for your information, manisharma31, but I do clear the automation before CREATE.


Top
 Profile E-mail  
 
 Post subject: Re: Automation - CREATE-Error
PostPosted: Thu Apr 26, 2012 9:14 am 
Offline

Joined: Thu Sep 09, 2004 2:04 pm
Posts: 1036
Location: Switzerland
Country: Switzerland (ch)
Hi Bettina
Can you create an instance using create statement if you use the return value?
Regards
Thomas


Top
 Profile  
 
 Post subject: Re: Automation - CREATE-Error
PostPosted: Thu Apr 26, 2012 9:41 am 
Offline

Joined: Wed Nov 05, 2008 12:19 pm
Posts: 16
Hello Thomas, if I check the return value, I only avoid the "Internal Error"-Message. It is not possible to create the instance.


Top
 Profile E-mail  
 
 Post subject: Re: Automation - CREATE-Error
PostPosted: Thu Apr 26, 2012 10:10 am 
Offline

Joined: Thu Sep 09, 2004 2:04 pm
Posts: 1036
Location: Switzerland
Country: Switzerland (ch)
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
Thomas


Top
 Profile  
 
 Post subject: Re: Automation - CREATE-Error
PostPosted: Thu Apr 26, 2012 1:01 pm 
Offline

Joined: Wed Apr 07, 2004 9:39 am
Posts: 340
Location: Bangalore
Country: India (in)
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,

Chn


Top
 Profile E-mail WWW  
 
 Post subject: Re: Automation - CREATE-Error
PostPosted: Tue May 08, 2012 2:40 pm 
Offline

Joined: Wed Nov 05, 2008 12:19 pm
Posts: 16
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?


Top
 Profile E-mail  
 
 Post subject: Re: Automation - CREATE-Error
PostPosted: Wed May 09, 2012 7:02 am 
Offline

Joined: Wed Apr 07, 2004 9:39 am
Posts: 340
Location: Bangalore
Country: India (in)
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,

Chn


Top
 Profile E-mail WWW  
 
 Post subject: Re: Automation - CREATE-Error
PostPosted: Wed May 09, 2012 10:17 am 
Offline

Joined: Wed Nov 05, 2008 12:19 pm
Posts: 16
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.


Top
 Profile E-mail  
 
 Post subject: Re: Automation - CREATE-Error
PostPosted: Wed May 09, 2012 10:54 am 
Offline

Joined: Thu Sep 09, 2004 2:04 pm
Posts: 1036
Location: Switzerland
Country: Switzerland (ch)
Could be a problem with the interface.
Try to discuss this viewtopic.php?f=23&t=8156 topic with the programmer.
Hope this helps
Thomas


Top
 Profile  
 
 Post subject: Re: Automation - CREATE-Error
PostPosted: Wed May 09, 2012 9:17 pm 
Offline

Joined: Wed Nov 05, 2008 12:19 pm
Posts: 16
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.


Top
 Profile E-mail  
 
 Post subject: Re: Automation - CREATE-Error
PostPosted: Thu May 10, 2012 6:27 am 
Offline

Joined: Thu Sep 09, 2004 2:04 pm
Posts: 1036
Location: Switzerland
Country: Switzerland (ch)
Glad to hear that!
Regards
Thomas


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: