Previous Thread
Next Thread
Print Thread
//IMAGE and Windows Ashell and ATE Cache #31373 07 Aug 19 03:27 PM
Joined: Sep 2003
Posts: 4,135
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,135
Im currently working at home under Ashell/Windows and wondering if the GDI //IMAGE command looks at the Windows Ashell permcache or cache directory for the image? as im uploading theses all upfront at users login, If so then its must be me being a fool somewhere.
Im getting the following GDI error and pretty sure the image is in my Q:\Madics\miame\cache folder.
//IMAGE,FORMETAL.PNG,1,1,1658,2244,IMGF_STRETCH
7 16:26:05 <PRINT:4cc9> IMAGE Library Error #0 (No error (0) (FORMETAL.PNG))

(And I guess it work the same under ATE and it looks at the ATE cache folder.)

Thanks
Steve

Last edited by Steve - Caliq; 07 Aug 19 03:28 PM.
Re: //IMAGE and Windows Ashell and ATE Cache [Re: Steve - Caliq] #31374 07 Aug 19 03:31 PM
Joined: Sep 2003
Posts: 4,135
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,135
Well I thought it was working in the office under ATE/Linux yesterday and this confirms that side of things:
Quote
A-Shell will look for the referenced image file in the directories pointed to by the environment variables ATECACHE and ATE, if it is not found in the originally specified directory. This is mainly useful for ATE printing, where the host may pre-transfer images to one of the cache directories without having to modify the print file or deal with incompatibilities between the directory structure used on the host and on the ATE client.


Does Ashell/Windows do something similar?

Re: //IMAGE and Windows Ashell and ATE Cache [Re: Steve - Caliq] #31375 07 Aug 19 03:34 PM
Joined: Sep 2003
Posts: 4,135
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,135
This really is just to keep most my code consistent between platforms and having it working when developing at home smile

Re: //IMAGE and Windows Ashell and ATE Cache [Re: Steve - Caliq] #31377 07 Aug 19 04:52 PM
Joined: Jun 2001
Posts: 11,645
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,645
The best way to see what it's really doing is to activate the FOPENS trace. If I do this from a local Windows context and try reference a non-existent file coffee2.jpg in an //IMAGE directive, I see this.

Code
44 09:44:22 <PRINT:4cc9> findlocalfile: coffee2.jpg (c:\vm\miame\EXLIB65\908037\coffee2.jpg)
45 09:44:22 <PRINT:4cc9>   try(4): c:\vm\miame\DSK0\001025\coffee2.jpg
76 09:46:13 <PRINT:4cc9> findlocalfile: coffee2.jpg (c:\vm\miame\EXLIB65\908037\coffee2.jpg)
77 09:46:13 <PRINT:4cc9>   try(-1): C:\TEMP\coffee2.jpg
78 09:46:13 <PRINT:4cc9>   try(4): c:\vm\miame\DSK0\001025\coffee2.jpg
79 09:46:13 <PRINT:4cc9> findlocalfile: c:\vm\miame\EXLIB65\908037\coffee2.jpg Not found []


Line 77, which says "try(-1)" appears only if the environment variable ASWCACHE exists (in my case, I set it to C:\TEMP). That's one difference between local A-Shell/Windows and ATE (which will instead look in the %ATECACHE% and %ATEPERMCACHE% directories.)

Line 78, which says "try(4)" is looking in the ASHLPD: ersatz directory.

If it's an ICO or PNG file, it will also look in the %MIAME%\icons\ subdirectory (both ATE and A-Shell/Windows).

Re: //IMAGE and Windows Ashell and ATE Cache [Re: Steve - Caliq] #31378 07 Aug 19 08:29 PM
Joined: Sep 2003
Posts: 4,135
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,135
Thanks Jack, as I’m using PNG files I could place them All in %MIAME%\icons but maybe best I set ASWCACHE to a %MIAME%\cache folder, thanks for the tips!

Re: //IMAGE and Windows Ashell and ATE Cache [Re: Steve - Caliq] #31405 09 Aug 19 01:46 PM
Joined: Sep 2003
Posts: 4,135
Steve - Caliq Offline OP
Member
OP Offline
Member
Joined: Sep 2003
Posts: 4,135
Under Ashell/Windows transferring the files to c:\temp\madics and setting ASWCACHE worked a treat. Thanks! GDI Printing is happy again.


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3