Hi,

More investigations…

SetCurrentDirectory doesn’t seem to do anything. The dlls have to be next to 
the running exe for them to be loaded, which is why running from the IDE fails, 
but a built one does not as the dlls are in the same folder as the exe when 
built.

Maybe that is why the LoadLibrary(“CORE_RL_magick_.dl”) does not seem to work 
either.

MBS 131 definitely works
MBS 144pr9 does not. I always get a not responding error calling LoadLibraryFile

This is with the same installed ImageMagick location.

This is the code I used
  
  // we go into the right folder, so ImageMagick finds it's DLLs.
  dim folder as FolderItem = SpecialFolder.Applications.Child(“imagemagick")
  
  if folder.Exists = false then
    MsgBox "Please change path to ImageMagick folder in code."
    break
    Return
  end if
  
  if not ImageMagickQ16MBS.SetCurrentDirectory(folder) then
    MsgBox "Failed to change working directory."
    break
    Return
  end if
  
  if ImageMagickQ16MBS.LoadLibraryFile(folder.child("CORE_RL_magick_.dll")) then
    List.AddRow ImageMagickQ16MBS.Version
    List.AddRow ImageMagickQ16MBS.ReleaseDate
    List.AddRow ImageMagickQ16MBS.Copyright
    List.AddRow ImageMagickQ16MBS.Features
    List.AddRow ImageMagickQ16MBS.HomeURL
    List.AddRow ImageMagickQ16MBS.PackageName
    List.AddRow ImageMagickQ16MBS.QuantumDepth
    
    
  else
    MsgBox "Failed to load the 
library."+EndOfLine+EndOfLine+ImageMagickQ16MBS.LoadErrorString
  end if
  
  
  exception n as UnsupportedFormatException
    MsgBox "Exception: "+n.message
    
When run with MBS 131 I get this output

ImageMagick 6.7.3-6 2011-11-10 Q16 http://www.imagemagick.org
2011-11-10
Copyright (C) 1999-2011 ImageMagick Studio LLC
OpenMP    
C:\Program Files\imagemagick\\index.html
ImageMagick
Q16


Regards,

Lee Badham

Bodoni Systems Ltd

+44 (0)1923 220530




> Hi,
> 
> If I use
> 
> if ImageMagickQ16MBS.LoadLibraryFile(folder.child("CORE_RL_magick_.dll")) then
> 
> I don’t get a crash (but I get a X11.dll not found error)
> 
> Do you think the SetCurrentDirectory is working as intended? I’ve noticed 
> that I get an X11.dll not found error when running from the IDE, but not when 
> built. SetCurrentDirectory always succeeds.
> 
> Regards,
> 
> Lee Badham
> 
> Bodoni Systems Ltd
> 
> +44 (0)1923 220530
> 
> 
> 
> 
>> Hi,
>> 
>> I can’t get the new plugin to load the DLL properly. I get a ‘Application 
>> not responding’ followed by return to the IDE.
>> 
>> Stepping through the code it stops at:
>> 
>> if ImageMagickQ16MBS.LoadLibrary("CORE_RL_magick_.dll") then
>> 
>> The other calls beforehand work ok.
>> 
>> if not ImageMagickQ16MBS.SetCurrentDirectory(folder) then
>> 
>> 
>> Regards,
>> 
>> Lee Badham
>> 
>> Bodoni Systems Ltd
>> 
>> +44 (0)1923 220530
>> 
>> 
>> 
>> On 5 Nov 2014, at 15:00, Christian Schmitz <[email protected]> 
>> wrote:
>> 
>>> Hi,
>>> 
>>> * Fixed an issue with ImageMagick plugin LoadLibrary call for Windows.
>>> * Updated Sparkle Plugin classes for version 1.6.1.
>>> * Improved CURLEmailMBS class to work with Microsoft Outlook correctly.
>>> * Added SQLite3MBS.EnableLoadExtension method.
>>> * Added NSImageMBS.imageWithHandle.
>>> * Added option to CURLEmailMBS Constructor to use ISO Latin1 instead of 
>>> UTF-8 for encoding.
>>> 
>>> 
>>> Sincerely
>>> Christian
>>> 
>>> -- 
>>> Read our blog about news on our plugins:
>>> 
>>> http://www.mbsplugins.de/
>>> 
>>> _______________________________________________
>>> Mbsplugins_monkeybreadsoftware.info mailing list
>>> [email protected]
>>> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
>> 
>> _______________________________________________
>> Mbsplugins_monkeybreadsoftware.info mailing list
>> [email protected]
>> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
> 
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> [email protected]
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to