Re: application launch @ startup by Sajid
Sajid
Thu Jul 29 01:51:50 CDT 2004
hi Anil,
i have tries giving 1 minute of delay[Sleep(60000)] at the begging of the
application, still the same error comes.
any other way ?
regards
sajid
"Anil Sharma" <anil@sdc.canon.co.in> wrote in message
news:64dd01c47531$7dea4950$a501280a@phx.gbl...
> Error code 2 (mentioned in your previous postings)
> suggests that the specified path is not found. Try putting
> a sleep for minute at the entry point of your app and then
> reduce the time depending on its consistency.
>
> Regards,
> Anil
>
> >-----Original Message-----
> >Hi Bruce,
> >
> >you are right,
> >wavplay.exe does gets started but but it somehow fails in
> ReadWaveFile
> >function with error = 1,
> >which seams that it is not able to find existing file.
> >
> >regards
> >sajid
> >
> >"Bruce Eitman (eMVP)"
> <beitmannospam@NOSPAM_applieddata.NOSPAM_net> wrote in
> >message news:OFXcRhSdEHA.592@TK2MSFTNGP11.phx.gbl...
> >> I have been assuming that your app actually started,
> then an error
> >occured,
> >> that may not be the case. Your wavplay.exe is in the
> image isn't it? And
> >> the name is right?
> >>
> >> It might be time to break out the debugger. Put a
> breakpoint in your it
> >and
> >> reboot.
> >>
> >> --
> >> Bruce Eitman (eMVP)
> >> Senior Engineer
> >> beitman AT applieddata DOT net
> >>
> >> Applied Data Systems
> >> www.applieddata.net
> >> An ISO 9001:2000 Registered Company
> >> Microsoft WEP Gold-level Member
> >>
> >>
> >> "Sajid" <sajidbms@yahoo.com> wrote in message
> >> news:%23RJ0HaSdEHA.3476@tk2msftngp13.phx.gbl...
> >> > hi Bruce,
> >> >
> >> > i did try with Sleep(10000) i.e., 10 seconds delay
> but this did not
> >> workout.
> >> > any other way
> >> >
> >> >
> >> > "Bruce Eitman (eMVP)"
> <beitmannospam@NOSPAM_applieddata.NOSPAM_net>
> >wrote
> >> in
> >> > message news:uBCl1PSdEHA.592@TK2MSFTNGP11.phx.gbl...
> >> > > Dean did not ask if the file is in your image, he
> asked if the file
> >> system
> >> > > is ready to provide it to you that early in the
> boot cycle.
> >> > >
> >> > > Running an application that early, you might find
> that some drivers
> >are
> >> > > still initializing. Try putting a call to Sleep at
> the start of you
> >app
> >> > > with a few seconds delay. See if that fixes the
> problem. That is not
> >> the
> >> > > solution though, just a test.
> >> > >
> >> > > --
> >> > > Bruce Eitman (eMVP)
> >> > > Senior Engineer
> >> > > beitman AT applieddata DOT net
> >> > >
> >> > > Applied Data Systems
> >> > > www.applieddata.net
> >> > > An ISO 9001:2000 Registered Company
> >> > > Microsoft WEP Gold-level Member
> >> > >
> >> > >
> >> > > "Sajid" <sajidbms@yahoo.com> wrote in message
> >> > > news:uWSsATRdEHA.3528@TK2MSFTNGP12.phx.gbl...
> >> > > > Yes Dean,
> >> > > >
> >> > > > i have included the default file in my image
> through the project.bib
> >> > FILES
> >> > > > section.
> >> > > > if i play that default file manually after
> startup, it plays.
> >> > > >
> >> > > > regards
> >> > > > sajid
> >> > > >
> >> > > > "Dean Ramsier" <ramsiernospam@nospam.com> wrote
> in message
> >> > > > news:OxxClbOdEHA.3044@TK2MSFTNGP10.phx.gbl...
> >> > > > > Is the file you're trying to access available
> at this time, and
> >are
> >> > you
> >> > > > > accessing it correctly?
> >> > > > >
> >> > > > > --
> >> > > > > Dean Ramsier - eMVP
> >> > > > >
> >> > > > >
> >> > > > > "Sajid" <sajidbms@yahoo.com> wrote in message
> >> > > > > news:u%232nT4JdEHA.2352@TK2MSFTNGP09.phx.gbl...
> >> > > > > > hi all,
> >> > > > > >
> >> > > > > > in my platform.reg file i have included this
> registry
> >> > > > > >
> >> > > > > > [HKEY_LOCAL_MACHINE\init]
> >> > > > > > "Launch95"="audio.dll"
> >> > > > > > "Launch96"="audevman.dll"
> >> > > > > > "Launch97"="waveapi.dll"
> >> > > > > > "Launch98"="wavplay.exe"
> >> > > > > > "Depend98"=hex:0A,00, 14,00, 5F,00, 60,00,
> 61,00
> >> > > > > >
> >> > > > > >
> >> > > > > > where is see, wavplay.exe is dependent on
> shell.exe, device.exe,
> >> > > > > audio.dll,
> >> > > > > > audevman.dll, waveapi.dll
> >> > > > > > thus the "Depend98" key there.
> >> > > > > >
> >> > > > > > but even then the system does not play the
> default file.
> >> > > > > >
> >> > > > > > it says 'error in opening 98' and error code:
> 2
> >> > > > > >
> >> > > > > > i have added this statement to my application:
> >> > > > > > SignalStarted(_wtol(lpCmdLine));
> >> > > > > >
> >> > > > > > where 'lpCmdLine' has some default file path
> which exists.
> >> > > > > >
> >> > > > > > any reasons why wavplay.exe application is
> not playing @ startup
> >?
> >> > > > > >
> >> > > > > > regards
> >> > > > > > sajid
> >> > > > > >
> >> > > > > >
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > >
> >> > >
> >> >
> >> >
> >>
> >>
> >
> >
> >.
> >