G
Guest
Hi
I've got an annoying problem when trying to run my own application on an XP
Embedded PC with .Net Framework 2 and DirectX 9. Might be long-winded, so
please bear with me.... (and i'm no expert, just beginning the whole .Net
business)
On my local development PC, I'm running Windows XP Pro SP2, Visual C#
Express, DirectX 9 SDK and the .Net Frameworks 2.
My application uses DirectInput to interface with a joystick and contains a
form with a couple of buttons. When this is compiled and run on the local PC,
everything works perfectly as expected. However, when i transfer this to the
Embedded PC, i immediately get an error saying "application encountered a
problem and needs to close" then the application closes and asks me if i want
to send an error report.
Checking the error report info, i get the following:
EventType : clr20r3
P3 : 44edbc51
P9 : system.io.filenotfoundexception
Could this problem arise due to the way exceptions are handled in my
application (i can provide source if needed) or could it be anything to do
with the following...
I run FileMon to see what's happening with what files and i find that right
before the "CLOSE" request, a number of files are "NOT FOUND" - these are
- WINDOWS\Microsoft
..Net\Framework\v2.0.50727\config\security.config.cch.XXX.XXXXXX (XXX's change
after every execution of the program)
- WINDOWS\Microsoft
..Net\Framework\v2.0.50727\config\enterprisesec.config.cch.XXX.XXXXXX (XXX's
are same as above)
and finally
- Documents and Settings\<Current User>\Application Data\Microsoft\CLR
Security Config\v2.0.50727.42\security.config.cch.XXX.XXXXXX (XXX's again
same as above)
Now the "CLOSE" request is sent, presumably because the application has
crashed. Anyways, i'll continue. In my source code, if i remove all traces of
DirectX (all code commented out and all namespaces commented out) and i
re-compile, the program will run on both my local PC and on the embedded PC
without any errors.
I originally thought it was something to do with the way DirectX was
installed on the XP Embedded image but the above tells me that its a .Net
Framework error. Aaarrrggghhhh
Bizarre and i don't know why. Please can someone help me (if you understand
the above that is...)??? I wish i knew more about what i'm doing.
Thanks in advance
Kev
I've got an annoying problem when trying to run my own application on an XP
Embedded PC with .Net Framework 2 and DirectX 9. Might be long-winded, so
please bear with me.... (and i'm no expert, just beginning the whole .Net
business)
On my local development PC, I'm running Windows XP Pro SP2, Visual C#
Express, DirectX 9 SDK and the .Net Frameworks 2.
My application uses DirectInput to interface with a joystick and contains a
form with a couple of buttons. When this is compiled and run on the local PC,
everything works perfectly as expected. However, when i transfer this to the
Embedded PC, i immediately get an error saying "application encountered a
problem and needs to close" then the application closes and asks me if i want
to send an error report.
Checking the error report info, i get the following:
EventType : clr20r3
P3 : 44edbc51
P9 : system.io.filenotfoundexception
Could this problem arise due to the way exceptions are handled in my
application (i can provide source if needed) or could it be anything to do
with the following...
I run FileMon to see what's happening with what files and i find that right
before the "CLOSE" request, a number of files are "NOT FOUND" - these are
- WINDOWS\Microsoft
..Net\Framework\v2.0.50727\config\security.config.cch.XXX.XXXXXX (XXX's change
after every execution of the program)
- WINDOWS\Microsoft
..Net\Framework\v2.0.50727\config\enterprisesec.config.cch.XXX.XXXXXX (XXX's
are same as above)
and finally
- Documents and Settings\<Current User>\Application Data\Microsoft\CLR
Security Config\v2.0.50727.42\security.config.cch.XXX.XXXXXX (XXX's again
same as above)
Now the "CLOSE" request is sent, presumably because the application has
crashed. Anyways, i'll continue. In my source code, if i remove all traces of
DirectX (all code commented out and all namespaces commented out) and i
re-compile, the program will run on both my local PC and on the embedded PC
without any errors.
I originally thought it was something to do with the way DirectX was
installed on the XP Embedded image but the above tells me that its a .Net
Framework error. Aaarrrggghhhh
Bizarre and i don't know why. Please can someone help me (if you understand
the above that is...)??? I wish i knew more about what i'm doing.
Thanks in advance
Kev