Re: /temp not available/accessible after startup

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



How are your applications being started? Is it being started using
HKLM\Init? If so, is it calling SignalStarted()? Does it start before the
Explorer shell? Have you tried creating \Temp yourself?

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

<andre.tippel@xxxxxxxxxxxxxx> wrote in message
news:78dc7197-a938-42ec-ac3d-de1edc52cc8f@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Paul,
i tried to wait for the availaility of /temp with help of
"Directory.Exist" and "Thread.Sleep" but it doesn't help. It seems to
me that in my application context /temp is accessible only if it
exists before the application start.

But you bring an idea to me, i add some start conditions so that the
starter-app check if the environment setup is complete... i try this
at monday...


On 30 Apr., 16:59, "Paul G. Tobey [eMVP]" <p space tobey no spam AT no
instrument no spam DOT com> wrote:
The order in which *any* external filesystem is mounted, or the time it
takes for it to be mounted, is going to vary. This would be the same case
if you had a storage card that was sometimes inserted on startup and
sometimes not. You have to handle that case in your code. Wait for it to
become available, if you absolutely need it in order to work.

Paul T.

<andre.tip...@xxxxxxxxxxxxxx> wrote in message

news:cc2d1974-a293-46b7-ad73-3fe2fff6e26e@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hi,
i have an application that start two other applications therfore it
parse a xml file that contains startup parameters. With this xml file
you can configure commandline parameters for the apps and configure a
delay to ensure that one (1) app is completly started before the
other (2).

My Problem is that the app (2) [.Net 2.0] that should start as the
second one can't access /temp directory mostly. I add checks if the
directory exist and add a Thread.Sleep to avoid multiple access to /
temp but it doesn't help.
If i close the app by hand and start it again (by hand) it works
without problems. In my opinion the other apps doesn't access this
folder.

Had anyone else of you problems with file access like this?? Why can i
only access the folder after i close the app and start it again?

tia
Andre


.



Relevant Pages

  • RE: More on Shatter
    ... Latency for the WM_TIMER message is irrelevant. ... load, and you code an app to fire WM_TIMER's at every 50ms, your WM_TIMERS ... > try to do real-time things (as I wager most applications ...
    (Vuln-Dev)
  • Re: Crawl 0.5 MacOS question.
    ... If you try to open that, it kicks you into the Terminal app ... a folder alias and simple reads: "Drag 'Crawl' to Applications." ...
    (rec.games.roguelike.misc)
  • Re: Safely SHUTDOWN Device from Application
    ... If you have only specific applications then you could designate one to be ... How you handle suspend is very much hardware dependent, ... It's then up to the app to take ... By 'Safe Shutdown', I meant that any application writing/reading to/ ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Where to put info about apps in OS X?
    ... the decoded app itself goes in "Applications" at sysadmin level. ... After you mount the disk image, there will be an icon ... the Option key and drag the disk image icon to the Applications folder. ...
    (comp.sys.mac.apps)
  • Re: Where to put info about apps in OS X?
    ... the decoded app itself goes in "Applications" at sysadmin level. ... I have a folder called "Information" which I created inside my Documents ... documentation together, and put that folder in Applications. ...
    (comp.sys.mac.apps)