I replaced GIFs but old ones keep showing up!
#33929
23 Feb 21 05:56 PM
|
Joined: Jun 2001
Posts: 713
Steven Shatz
OP
Member
|
OP
Member
Joined: Jun 2001
Posts: 713 |
I have a strange situation. An ATE program has 1 xcall to "AUI" to display a GIF file. The image file name includes its PPN. I renamed the old GIF and added the new GIF with the original names. When displayed directly from Windows Explorer, the new GIF appears as expected. But after recompiling the program and running it in ATE, the old GIF is still in effect. This happens even if I move the old renamed GIF to a different PPN. It happens if I exit all running A-Shell and ATE jobs and relaunch ATE.
Similarly, the same program is using GDI //IMAGE commands to display 2 other GIFs. After renaming and replacing, the same problem occurs when I print. The old GIFs keep showing up.
Both problems appear to be cache-related, but I don't know how to find and clear that ATE cache. Can someone please help?
Last edited by Steven Shatz; 23 Feb 21 06:00 PM.
|
|
|
Re: I replaced GIFs but old ones keep showing up!
[Re: Steven Shatz]
#33930
23 Feb 21 06:40 PM
|
Joined: Jun 2001
Posts: 11,794
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,794 |
If the images originated on the server side, they would have been transferred to ATE and cached there (probably in %ATECACHE% or C:\ATE\CACHE). That directory is cleared when you exit the ATE session, so that may be all it takes.
Alternatively, the way to debug it is to open up the debug message window (CTRL+SHIFT+DBLCLICK on the ATE window), right click for properties, and select the FOPEN trace. That will show you the files that ATE tries to and/or succeeds in opening.
|
|
|
Re: I replaced GIFs but old ones keep showing up!
[Re: Steven Shatz]
#33931
23 Feb 21 10:54 PM
|
Joined: Jun 2001
Posts: 713
Steven Shatz
OP
Member
|
OP
Member
Joined: Jun 2001
Posts: 713 |
Thank you. For some reason, the old GIFs kept getting reloaded into C:\ATE\Cache, even though I exited ATE numerous times. The fopens trace led me to another directory which contained the old files (i.e., C:\DSK0:\100100 which has no corresponding server ppn.) When I replaced those old files with the new files, the problem was fixed. Is there any significance to DSK0:100,100? How did ATE know to look there?
|
|
|
Re: I replaced GIFs but old ones keep showing up!
[Re: Steven Shatz]
#33932
23 Feb 21 10:57 PM
|
Joined: Jun 2001
Posts: 11,794
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,794 |
That's a mystery. In addition to the ATECACHE and ATEPERMCACHE directories, it would look in a directory corresponding to an environment variable ASWCACHE, and possibly to an ATE-side ersatz for LPD:
If you still have the traces, they might provide more of a clue though.
|
|
|
Re: I replaced GIFs but old ones keep showing up!
[Re: Jack McGregor]
#33934
24 Feb 21 12:02 AM
|
Joined: Jun 2001
Posts: 713
Steven Shatz
OP
Member
|
OP
Member
Joined: Jun 2001
Posts: 713 |
I don't have the previous trace, but going back in you can see it is still looking in the same directory:
0 18:54:57 <TELNET:4627> findlocalfile: NPDAT:NPLOGO.GIF (C:\ATE\DSK0\100100\nplogo.gif) 1 18:54:57 <TELNET:4627> findlocalfile: C:\ATE\DSK0\100100\nplogo.gif found [C:\ATE\DSK0\100100\nplogo.gif]
Here is the AUI XCALL that displays this: DFLAGS = 8 OPCODE = 4 ! Open & Show PC'FILE$ = "NPDAT:NPLOGO.GIF" XCALL AUI,"IMAGE",OPCODE,IMAGE'HANDLE,STATUS,SROW,SCOL,EROW,ECOL,DFLAGS,PC'FILE$
NPDAT: is the ersatz for ISM1:[307,52] on the server.
I opened a local session from ATE and there is no ERSATZ for DSK0:100,100.
|
|
|
Re: I replaced GIFs but old ones keep showing up!
[Re: Steven Shatz]
#33935
24 Feb 21 12:26 AM
|
Joined: Jun 2001
Posts: 11,794
Jack McGregor
Member
|
Member
Joined: Jun 2001
Posts: 11,794 |
I was going to suggest that there must be an ersatz definition for NPDAT: on the ATE side. But if you've already checked that, it remains a mystery to me. I tried reproducing here (using FAB:SAMPLE.JPG as my spec), and with both the FOPENS and ATE traces turned on, I see the following (this is ATE 6.5) ...
213 16:17:21 <TELNET:45e4> TAB(-10,35);Þ4,0,5,5,20,50,0,"FAB:SAMPLE.JPG",0
214 16:17:21 <TELNET:45e4> Setting KS_HOLD for tab(-10,35)
215 16:17:21 <TELNET:45e4> findlocalfile: FAB:SAMPLE.JPG (FAB:SAMPLE.JPG)
216 16:17:21 <TELNET:45e4> try(1a): SAMPLE.JPG
217 16:17:21 <TELNET:45e4> flookup(SAMPLE.JPG) returns 0.000000
218 16:17:21 <TELNET:45e4> try(2): C:\ATE\cache\SAMPLE.JPG
219 16:17:21 <TELNET:45e4> flookup(C:\ATE\cache\SAMPLE.JPG) returns 0.000000
220 16:17:21 <TELNET:45e4> try(3): C:\ATE\permcache\SAMPLE.JPG
221 16:17:21 <TELNET:45e4> flookup(C:\ATE\permcache\SAMPLE.JPG) returns 0.000000
222 16:17:21 <TELNET:45e4> findlocalfile: FAB:SAMPLE.JPG Not found []
223 16:17:21 <TELNET:45e4> flookup(FAB:SAMPLE.JPG) returns 0.000000
224 16:17:21 <TELNET:45e4> -> send response (kbd): 2,0 (4 bytes, icc=0)
Note that in no case does it convert the unknown FAB: ersatz into a PPN, nor could really see how it could.
|
|
|
Re: I replaced GIFs but old ones keep showing up!
[Re: Steven Shatz]
#33950
25 Feb 21 09:35 PM
|
Joined: Sep 2002
Posts: 5,471
Frank
Member
|
Member
Joined: Sep 2002
Posts: 5,471 |
Steven - FWIW we use this approach and it works great.
Whenever we want to introduce a new icon to the application, we load it directly onto the Linux server in a dir called ICONS: Then our signin program syncs this directory with one on the PC/ATE side. Once there, our programs will always find it. The cool thing is that u can load it onto the server once and every PC will grab it when logging in.
ICON'UPDATE'CHECK: ! ! This routine will check if it is necessary to grab files from ! the "ICON:" directory on the server by looking for a particular ! update version in the local /icons/beta directory. ! XCALL AMOS,"ATSYNC icons:,%ATE%\icons\beta /p/v2",1 ! RETURN
|
|
|
Re: I replaced GIFs but old ones keep showing up!
[Re: Frank]
#33957
26 Feb 21 02:46 PM
|
Joined: Jun 2001
Posts: 713
Steven Shatz
OP
Member
|
OP
Member
Joined: Jun 2001
Posts: 713 |
Thanks for the suggestion, Frank! I wasn't aware of ATSYNC but it sounds like your elegant technique could help me avoid future ATE headaches.
|
|
|
Re: I replaced GIFs but old ones keep showing up!
[Re: Steven Shatz]
#33958
26 Feb 21 03:19 PM
|
Joined: Sep 2002
Posts: 5,471
Frank
Member
|
Member
Joined: Sep 2002
Posts: 5,471 |
|
|
|
|
|