Re: Using a program as shell ?



Thank you Vinson,

I've used a .bat that launch my App, without any delay, and the connection
is established on the first attempt.
I don't know the reason of this behavior but doing so it works good.
Thank you again.

- Dany -

"Vinson" <Vinson@xxxxxxxxxxxxxxxxxxxxxxxxx> ha scritto nel messaggio
news:05530D8E-9AEF-479B-A1C9-03B377A1A3BD@xxxxxxxxxxxxxxxx
That is strange!

It is a wild shot, but why not write a small shell program that will
launch
your SQL program, after a slight delay? Then your SQL program would not
be
the actual shell program, and may have no problem connecting on the first
attempt.

"Daniele Piccinini" wrote:

Thank you Vinson,
I've tried to delay the connection up to 5 min. but this still don't
work.
On the other hand, if i stop the app 1 min after the boot and restart it,
the connection works fine.
It looks like the program started as shell is not able to connect ...

- Dany -

"Vinson" <Vinson@xxxxxxxxxxxxxxxxxxxxxxxxx> ha scritto nel messaggio
news:81963044-31A2-4F79-9EA8-7A488F71D87C@xxxxxxxxxxxxxxxx
It is just a guess, but perhaps your app (Shell) is available and ready
to
connect before the actual network connectivity has been established by
the
OS. Why not delay the initial SQL connection by a few seconds,
programatically, to allow the rest of the OS to come to life? It may
take
10
seconds of waiting to allow the OS to build the IP stack, etc. Again,
just a
guess...

Vinson

"Daniele Piccinini" wrote:

Hi,

I've developed a VC++ supervision application. This app have to be the
only
user interface app that is running on the pc. Doing so the user cannot
"play" with other XP functionality.
I've tried to set this app as shell in this way :

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon]
"Shell"="C:\\MyApp.exe"

The app use a connection to a sql server database, and when the app
try
to
connect the login fails. If i close the app and restart the app using
task
manager it's all right.

How can i avoid this problem ?
Someone have a different solution for this problem?

Thanks

- Dany -








.



Relevant Pages

  • Re: Using a program as shell ?
    ... but why not write a small shell program that will launch ... your SQL program, after a slight delay? ... I've tried to delay the connection up to 5 min. but this still don't work. ... On the other hand, if i stop the app 1 min after the boot and restart it, ...
    (microsoft.public.windowsxp.security_admin)
  • Re: A month with a Nokia n95 (long)
    ... and can't play. ... One of these days I will get around to writing a small app to do it all on the fly. ... HSDPA works well and you can have more than one internet connection going at once. ... For example I can use it as a modem for my laptop and also "listen again" to a Beeb radio programme. ...
    (uk.telecom.mobile)
  • Re: ADO Connection.Execute Method leaves Open SQL Process
    ... Have the App create a single ADODB.Connection object, ... requesting only one connection from a single ADO Connection ... Pool, thus if all requests are sequenced and not over-lapping ...
    (microsoft.public.vb.database.ado)
  • Re: ADO Connection.Execute Method leaves Open SQL Process
    ... your first paragraph where it talks about "a VB6 app". ... requesting only one connection from a single ADO Connection ... ' at this point a new SQL process HAS been created!! ...
    (microsoft.public.vb.database.ado)
  • Memory leak with ADO
    ... When the app runs through the loop 2k times about 16-30 megs ... procedure TForm1.SpeedButton1Click(Sender: TObject); ... Caption = 'Connection String' ... object Connection: TADOConnection ...
    (borland.public.delphi.database.ado)