Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search

Plugin not working on client's machines

Author
Message
  Topic Search Topic Search
NEON View Drop Down
Member
Member


Joined: 2015 Jul 23
Location: Austria
Online Status: Offline
Posts: 70
Direct Link To This Post Topic: Plugin not working on client's machines
    Posted: 2018 May 16 at 9:35am

User Information:

Cinema 4D Version:   R18, R19 
Platform:   Windows  ;   
Language(s):     C++  ;   PYTHON  ; 

---------

Hello PluginCafe,

I have a very, very odd problem, being, that my plugin which I am developing for my clients works (the problem especially is, that it LOADS) on all of my machines. But it does not work on any of my clients machines. 
Which is odd.

I compiled the plugin both for Windows 8.1 and Windows 10 (always for R18 and 19), so that my clients can try the different versions for their different machines. And it works just fine for me.
But it does not even load (nor show any error messages in the console) on my clients machine.
They have used the right version of the plugin for their corresponding machine and version.

The plugin does use some external .dll files, which are placed correctly within the folder hierachy. 
No errors, nothing.

Has anybody encountered a similar issue, or knows where this issue comes from? 

I really hope somebody can help me with that! 

thanks in advance and best regards, 
Florian
Back to Top
karanik View Drop Down
Member
Member


Joined: 2015 Sep 19
Online Status: Offline
Posts: 14
Direct Link To This Post Posted: 2018 May 16 at 12:14pm
Hi,

First of all check that you are distributing release builds of your plugin. Customer machines do not have the MSVC debug runtime dlls and so will fail to load.

Also in my experience C4D on windows is very particular about where it looks for plugin dll dependencies. If you're linking with import libs to other dlls, placing them in the plugin folder will not work, as C4D does not include the plugin directory in the dll search path. To test this try moving these dlls temporaritly to the same folder the C4D executable. If the plugin loads then was the cause.

In general a quick way to diagnose dll dependecy probems is to use the nifty Dependency Walker tool. As the name suggests it will show you the dependency chain of a dll or exe file, and highlight what is missing.

Cheers,


Kostas


Back to Top

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.