comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » bug in cgHasImageMagic
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: bug in cgHasImageMagic [message #89517 is a reply to message #89515] Wed, 22 October 2014 16:26 Go to previous messageGo to previous message
JP is currently offline  JP
Messages: 55
Registered: April 2008
Member
actually, it may be a good thing after all, because when using SPAWN in windows, paths cannot be UNC, so an error will still show up either when reading or writing a postcript or any other file...
But the error message could be a little different I think, tell the user that the path to the file/s cannot be UNC.

JP




On Thursday, 23 October 2014 10:15:24 UTC+11, JP wrote:
> Hi David (FYI, the rest of the group),
>
> I found a bug in cgHasImageMagic. It's very simple, I could fix myself, but you may want to update the program.
> It has to do with UNC paths:
>
> IDL> cd, 'c:'
> IDL> print, cgHasImageMagick(VERSION=VERSION)
> 1
> IDL> print, version
> 6.8.9-7
> IDL> cd, '\\wron\working\'
> IDL> print, cgHasImageMagick(VERSION=VERSION)
> 0
>
> the problem in cgHasImageMagic is that SPAWN does return an error, but it doesn't mean that ImageMagic is not installed:
>
> IDL> Spawn, 'convert -version', result, error_result
> IDL> print, error_result
> '\\wron\working' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory.
> IDL> print, result
> Version: ImageMagick 6.8.9-7 Q16 x64 2014-08-16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC Features: DPC Modules OpenMP
> Delegates: bzlib cairo freetype jbig jng jp2 jpeg lcms lqr pangocairo png ps rsvg tiff webp xml zlib
>
>
> cheers
>
> JP
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plotting Seasons
Next Topic: Read several files into one big data array?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 07:08:57 PDT 2025

Total time taken to generate the page: 1.27986 seconds