v15 DLL Plugin Issue
I have an issue which is quickly becoming a major issue with a Plugin that was working and is now no longer working since upgrading to v15. The plugin wqs originally written with DLLWizard as a WIN4DX header to a DLL. It calls an address lookup solution by passing a postcode. It was then converted to the new Plugin architecture via plugin wizard (although I am unsure of the settings that were used). This has worked for the past few years with v13 and appeared to work with v15 but since deploying it in on one of the few clients who use this PAF solution we have found that it no longer works with v15. The plugin shows and the code compiles but at runtime it does not work. As far as I can tell the internal path to the DLL is not resolving or there is an issue with how the plugin is I may need help more than just advice with this as each day that goes by means a client is unable to use the functionality. Any ideas are welcomed. Ideally what I need is a way of directly creating a new style plugin from the DLL like the old DLL Wizard process which is sadly missed. Regards, Dougie telekinetix Limited- J. Douglas Cryer Phone : 01234 761759 Mobile : 07973 675 218 2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE Email : jdcr...@telekinetix.com Web : http://www.telekinetix.com ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: v15 DLL Plugin Issue
Is it a path issue with how Windows is seamlessly running things out of the C:/ProgramData folder when your application is in C:/Program Files? That could screw up paths in our code. Randy -- Randy Jaynes Senior Programmer and Customer Support http://printpoint.com • (845) 359-0298 • PrintPoint, Inc • 57 Ludlow Lane • Palisades, NY 10964 > On Sep 1, 2016, at 10:38 AM, Douglas Cryer wrote: > > I have an issue which is quickly becoming a major issue with a Plugin that > was working and is now no longer working since upgrading to v15. > > The plugin wqs originally written with DLLWizard as a WIN4DX header to a DLL. > It calls an address lookup solution by passing a postcode. > > It was then converted to the new Plugin architecture via plugin wizard > (although I am unsure of the settings that were used). This has worked for > the past few years with v13 and appeared to work with v15 but since deploying > it in on one of the few clients who use this PAF solution we have found that > it no longer works with v15. The plugin shows and the code compiles but at > runtime it does not work. > > As far as I can tell the internal path to the DLL is not resolving or there > is an issue with how the plugin is > > I may need help more than just advice with this as each day that goes by > means a client is unable to use the functionality. > > Any ideas are welcomed. Ideally what I need is a way of directly creating a > new style plugin from the DLL like the old DLL Wizard process which is sadly > missed. > > Regards, Dougie > > > telekinetix Limited- J. Douglas Cryer > Phone : 01234 761759 Mobile : 07973 675 218 > 2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE > Email : jdcr...@telekinetix.com Web : http://www.telekinetix.com > > > > > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: v15 DLL Plugin Issue
Randy, Re: Is it a path issue with how Windows is seamlessly running things out of the C:/ProgramData folder when your application is in C:/Program Files? No I do not thank it is anything like that. I thought it might be a 64bit vs 32bit issue because the server was moved from v13 to v15 64bit but when I try the code on standalone v15 which is 32 bit the code crashes when it makes the call to the plugin method which works fine with v13. Is there such a thing as a direct replacement for DLLWizard? Regards, Dougie telekinetix Limited- J. Douglas Cryer Phone : 01234 761759 Mobile : 07973 675 218 2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE Email : jdcr...@telekinetix.com Web : http://www.telekinetix.com On 01/09/2016, 18:39, "4d_tech-boun...@lists.4d.com on behalf of 4d_tech-requ...@lists.4d.com" <4d_tech-boun...@lists.4d.com on behalf of 4d_tech-requ...@lists.4d.com> wrote: Re: v15 DLL Plugin Issue ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: v15 DLL Plugin Issue
unless the plugin is dynamically loading the DLL (LoadLibrary), it should appear as disabled immediately because dependencies are resolved at startup. if that is the case, you could use "depends" to see which DLLs are missing. http://www.dependencywalker.com what if you place the DLL right next to the 4DX? > 2016/09/01 23:38、Douglas Cryer のメール: > The plugin shows and the code compiles but at runtime it does not work. 宮古 啓介 セールス・エンジニア 株式会社フォーディー・ジャパン 〒150-0043 東京都渋谷区道玄坂1-10-2 渋谷THビル6F Tel: 03-6427-8441 Fax: 03-6427-8449 keisuke.miy...@4d.com www.4D.com/JP ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: v15 DLL Plugin Issue
Miyako, Re: unless the plugin is dynamically loading the DLL (LoadLibrary), it should appear as disabled immediately because dependencies are resolved at startup. if that is the case, you could use "depends" to see which DLLs are missing. http://www.dependencywalker.com If I understand you correctly you are saying that if there was a broken dependency then the plugin would not load. If so, I can rule that out because the plugin is loading. On the clients machine I have put a very simple uncompiled database with two methods to test what happens. I have copied it and lauched it separately with v13 and v15. The converted (new style) plugin is installed in both. In both the plugin shows OK in the method after re-parsing it (several times). On the v13 copy the method runs and calls the plugin commands OK. On the v15 copy the 4D just crashes. what if you place the DLL right next to the 4DX? I had tried this, although it made no sense doing it as the original path was set to the DLL in the original DLLWizard project. Struggling… telekinetix Limited- J. Douglas Cryer Phone : 01234 761759 Mobile : 07973 675 218 2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE Email : jdcr...@telekinetix.com Web : http://www.telekinetix.com ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: v15 DLL Plugin Issue
the command name tokenising in the method editor only proves that the RSR (or manifest,json) file is present. whether a plugin is loaded or not is evident in the Explorer, plugins page. > 2016/09/02 22:25、Douglas Cryer のメール: > In both the plugin shows OK in the method after re-parsing it (several times). 宮古 啓介 セールス・エンジニア 株式会社フォーディー・ジャパン 〒150-0043 東京都渋谷区道玄坂1-10-2 渋谷THビル6F Tel: 03-6427-8441 Fax: 03-6427-8449 keisuke.miy...@4d.com www.4D.com/JP ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: v15 DLL Plugin Issue
Doug, Check if it is enabled from 4D's Explorer like shown here: http://kb.4d.com/assetid=76951 -Tim ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: v15 DLL Plugin Issue
Timothy and Miyako, Thank you for your input, I found the following based on your suggestions: Under v13 The plug-in shows in the list as AddressX but in the explorer window as DLLTOOLSSW Version 1.0.1.0 Location “AddressX.bundle” in volume “C:” with a full path displayed with a popup menu. Under v15 I see the plug-in called AddressX but the only information it shows in the explorer window is : AddressX Location “AddressX.bundle” in volume “C:” with a full path displayed with a popup menu. Also the commands now appear below a sub section now called “Theme 1” instead of directly under the AddressX plug-in. This does not give me any further clues. Clearly v15 is reading the plug-in differently but that does not help me fix the issue. Regards, Dougie telekinetix Limited- J. Douglas Cryer Phone : 01234 761759 Mobile : 07973 675 218 2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE Email : jdcr...@telekinetix.com Web : http://www.telekinetix.com ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: v15 DLL Plugin Issue
I see you already posted the DLL name. it sounds like the plugin (DLL wrapper) is hooking to the non-unicode entry point (FourDPack). v15 exposes the unicode entry point (FourDPackex). I think you need to re-develop the plugin in unicode mode. > 2016/09/05 23:25、Douglas Cryer のメール: > DLLTOOLSSW 宮古 啓介 セールス・エンジニア 株式会社フォーディー・ジャパン 〒150-0043 東京都渋谷区道玄坂1-10-2 渋谷THビル6F Tel: 03-6427-8441 Fax: 03-6427-8449 keisuke.miy...@4d.com www.4D.com/JP ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: v15 DLL Plugin Issue
I guess DLLTOOLSSW is the name of the 4DX, not the DLL it is linked to. the mystery is why it "appeared to work with v15" initially. even though DLL wizard is no longer available for unicode mode, it was always possible to read public C APIs from a DLL using DUMPBIN. then you could use LIBTOOLS and some text editing to create a LIB file for linking. and call the DLL using standard Win32 APIs. but it would be much easier if there were at least some header files or SDK to use that DLL. > 2016/09/01 23:38、Douglas Cryer のメール: > > It was then converted to the new Plugin architecture via plugin wizard > (although I am unsure of the settings that were used). This has worked for > the past few years with v13 and appeared to work with v15 but since deploying > it in on one of the few clients who use this PAF solution we have found that > it no longer works with v15. The plugin shows and the code compiles but at > runtime it does not work. > > As far as I can tell the internal path to the DLL is not resolving or there > is an issue with how the plugin is > I may need help more than just advice with this as each day that goes by > means a client is unable to use the functionality. > Any ideas are welcomed. Ideally what I need is a way of directly creating a > new style plugin from the DLL like the old DLL Wizard process which is sadly > missed. 宮古 啓介 セールス・エンジニア 株式会社フォーディー・ジャパン 〒150-0043 東京都渋谷区道玄坂1-10-2 渋谷THビル6F Tel: 03-6427-8441 Fax: 03-6427-8449 keisuke.miy...@4d.com www.4D.com/JP ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: v15 DLL Plugin Issue
Many thanks to everyone who input into my issue. I have eventually found a solution. I wrote a VBScript that calls the ActiveX object and that works now. Initially it was not working when I tested it on the desktop but it works from within 4D v15. Here is my crude understanding of what was happening: When the script was double clicked it is running WScript and given the platform it is probably running the 64 bit version which could not create the ActiveX object. When I write and run the script file from within 4D I am using CScript and this is working. I am assuming because it is running 32bit version of CScript. What ever the reason I now have a working solution with the COM object and LAUNCH EXTERNAL PROCESS Thank you everyone who gave input as knowing I had other minds on it helped keep me sane. Regards, Dougie telekinetix Limited- J. Douglas Cryer Phone : 01234 761759 Mobile : 07973 675 218 2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE Email : jdcr...@telekinetix.com Web : http://www.telekinetix.com ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **