Application in startup

J

Jose Reinaldo

Hi,
I follow the JB´s instructions and I manage to do my application to
initialize automatically when I boot my computer (Thanks JB), but I received
the error message:
" the instruction at "0x77f55e9" referenced memory at "0x00000034". The
memory could not be "read"
When I put the application inside the directory Startup my apllication run
without problems. Does someone have any idea about?

Jose Reinaldo
Sao Paulo - Brazil
 
S

Slobodan Brcin

What is the default working directory for your application?
Could this be your problem?

Regards,
Slobodan
 
J

Jose Reinaldo

Well, my application is located in d:\spaceinv\space.exe where exist others
files that my application needs. When I created the component (I created a
shell prototype component) I put cmiShellPath=d:\spaceinv\space.exe". Is
this the right place? Is there another way to set the default working
directory?
It seems that my application is starting before another essencial driver.
 
J

JB

Hey jose,

You can change the build order of your component. Normal
it is set to 1000. I always put it 1020. May this helps.

good luck
-----Original Message-----
Well, my application is located in d:\spaceinv\space.exe where exist others
files that my application needs. When I created the component (I created a
shell prototype component) I put
cmiShellPath=d:\spaceinv\space.exe". Is
 
S

Slobodan Brcin

I use different approach (only one that I could think of).

Make your initapp.exe and use it as a shell.
From within you can wait PnP to complete, do necessary screen adjustments,
etc.
Use CreateProcess to launch your app and to set environment, working folder,
etc.
initapp then closes.

Regards,
Slobodan
 
J

Jose Reinaldo

The error keeps! I think my application is run before other essencials
applications, I tried to put 2000 in Build Order and the application didn´t
work. I tried to build all groups before my application and I didn´t have
success. It´s hard!

"JB" <[email protected]> escreveu na mensagem
Hey jose,

You can change the build order of your component. Normal
it is set to 1000. I always put it 1020. May this helps.

good luck
-----Original Message-----
Well, my application is located in d:\spaceinv\space.exe where exist others
files that my application needs. When I created the component (I created a
shell prototype component) I put
cmiShellPath=d:\spaceinv\space.exe". Is
 
K

KM

Jose,

Don't know anything about your application but since you have mentioned
Startup it may have some dependencies on Explorer Shell/App, or some other
components. So, first check your app export (Dependency Walker or dumpbin
will help you with that) and try to include all the components required for
your app to be working properly.
Also, you may use Regmon/FileMon tools to find out more about your app.
Having sources for your application would help you the best to figure out
all the required components.
Look here for more info:
http://msdn.microsoft.com/library/en-us/dnxpesp1/html/xpe3rdparty.asp

As one more resources, you may debug your app on the target using VS Remote
Debugger feature. Serach this NG archive for more info on it.

KM


JR> Hi,
JR> I follow the JB´s instructions and I manage to do my application to
JR> initialize automatically when I boot my computer (Thanks JB), but I
JR> received the error message:
JR> " the instruction at "0x77f55e9" referenced memory at "0x00000034".
JR> The memory could not be "read"
JR> When I put the application inside the directory Startup my
JR> apllication run without problems. Does someone have any idea about?

JR> Jose Reinaldo
JR> Sao Paulo - Brazil
 
S

Slobodan Brcin

Jose,

I was under impression that you was able to complete FBA successfully.
Build order is used only during FBA.

Regards,
Slobodan
 
J

Jose Reinaldo

Ok, I dont´t know very much about this but I changed the Build Order and my
FBA worked right. I think that my application is run before another
essencial component like DirectX for example (my application use SDL engine)
but I don´t know how to make my app run after other components. Do you know
how to do?

Thanks
 
S

Slobodan Brcin

After FBA is done. We don't talk about components any more.

Instead during regular boot we talk about drivers, services and programs.

Drivers have they way of dealing with load order.
Services have they way of expressing dependencies on other components.

But regular programs are ignorant on boot order.
You can use CMP_WaitNoPendingInstallEvents to wait for all drivers to start,
but in most cases this is not required.

Use remote debugging to see what is failing in your application.

Regards,
Slobodan
 
J

Jose Reinaldo

Ok, Thank you very much for your advices.
I found the problem. It is in my default working directory. When I put the
whole path inside my source code I had success. I have now to set the
default working directory. How can I make this?
 
S

Slobodan Brcin

For this you should have created initapp like I said.

Or use API call SetCurrentDirectory from within your program.

Regards,
Slobodan
 
J

Jose Reinaldo

I am sorry but I didn´t manage to make anyone this hints. Do you have a link
or some lines to explain me?
I looked for them but without success

Thanks
 
J

Jose Reinaldo

"Directory listing Denied.
This Virtual Directory does not allow contents to be listed"
What is it?
 
J

Jose Reinaldo

I have an application space.exe in a folder c:\spaceinv with other 4 files
that the application needs. When I created the component Shell Space I put
also the 4 files and when I run my image I noticed that my application
(space.exe) don´t get to read these files.
 
S

Slobodan Brcin

URL link ends with .asp. So as you can see all long links are splited in few
lines and you must create one link from those lines.

Regards,
Slobodan
 
S

Slobodan Brcin

I know,

This is your problem from day one.
And I have provided you with two different approach to accomplish this.

Regards,
Slobodan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top