Has anyone noticed that webPictures start returning not found after some number of days of running? Ive been seeing this regularly now while developing. Ive got 4 or 5 icons that I serve up via webPictures and setting the URL of a control in the browser to their URL property. The webPicture classes themselves are stored in module variables. They are inited at program startup, this is a standalone web app. The session value is set to nil immediately upon creating them.
(actually as I look at it they are actually created when the first session opens as I am unable to access the URL property outside of a session? Thats probably another bug report for another time)
They work for a day and a half or there abouts and after that they start returning a not-found error. It doesnt seem to be related to sessions as I can timeout or reload or startup from multiple machines and it all works fine in the first day or so. And then if I restart the app they work fine again.
Standalone. Ive also noticed that I cannot seem to access the .url property of a webPicture outside of a session thread. Which may be besides the point, but Ive had to switch them all to separate file handlers to stop that and the other. I get async events over a separate socket that require me to update the display and create a new webPicture, but I cant get that to work at all anymore with webPictures. Even properly getting the session set for the control Im about to send it to, when I access the .url property of the new webPicture I created I get an exception.
As long as I keep a reference to the webPicture and its session is set to nil I should be able to reference it forever shouldnt I? It almost feels like its saved the image to a temporary folder which goes away after some length of time? Im not sure what is happening to them.
Somethings definitely wrong there. Could you show me an example of how you are initializing them?
And that exception is???
Technically, if initialized correctly they should exist until the app quits. Ill need to see a complete sample though. How youre creating them, how youre accessing them and an example of an image thats going missing.