473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

error code 0xe0434f4d on exit

16
hi
i have written a program in wpf platform that run correctly on my system
but it dont work on other systems
i have installed .net framework 3.5 sp1 on my system
but in other systems i installed redistributable version of .netframework 3.5
Jan 25 '10 #1
15 31919
Plater
7,872 Expert 4TB
What kind of errors or exceptions are you getting exactly?
Does your program run correctly and then when it exits it throws the 0xe0434f4d error?

EDIT: Looks like that is unmanaged code telling you the managed code is throwing an exception.
Jan 25 '10 #2
mjsafa
16
no it does not run
it close at beggining of run
it is not code error
because when i install .net framework 3.5 SP1 (237 MB) the program will run correctly but when i install redistributable version of .net frame work, the programm will crash suddenly.
i dont know why.
Jan 25 '10 #3
mjsafa
16
but that 237 MB version of .net framework will take 30 minutes to install
Jan 25 '10 #4
Plater
7,872 Expert 4TB
Put try/catch blocks everywhere in your program.
From what I read your program is generating a managed exception, but for whatever reason, you're not seeing it
Jan 25 '10 #5
Frinavale
9,735 Expert Mod 8TB
Have you checked the Windows Event Log for any information regarding problem?

-Frinny
Jan 25 '10 #6
mjsafa
16
i put a try catch in my first line of code and commented other parts of code
but the problem didn't resolved. i think its for my xaml code
what can i do?
Jan 26 '10 #7
mjsafa
16
i deleted some lines of my xaml code and it worked correctly
the problem is for my xaml code.
the code i deleted is regarding to a sound player control that was using a data binding to an XML file fore list of sounds and a control that played sound
Jan 26 '10 #8
Plater
7,872 Expert 4TB
Perhaps the user's computer doesn't have the same sound control?
Jan 26 '10 #9
mjsafa
16
that problem was not resolved but i found the code line and deleted that line
but i found so much same errors
i think for working with wpf i must install .netFX 3.5 sp1
n way
Jan 28 '10 #10
tlhintoq
3,525 Expert 2GB
Instead of deleting features of your application until you are left with something that only runs on the least common denominator of PC's, your application should handle the errors gracefully.

I can make some general suggestions that apply to good coding practice.
  • Assume that everything is broken, or at least not ideal.
  • Presume that the user is going to provide data in a format or manner that you just didn't expect. If you use a textbox for a number, the user will type "One".
  • Assume that hardware breaks in the middle of what you are doing, so you have to recover.
  • Take a few extra lines of code to get standards like the boot drive, the number thousands seperator etc. Don't assume that you have a C: drive or that a comma is the separator because not everyone is in America.
  • Check that files/folders exist, even if you just did a call to make it: You may not have permissions.
  • Don't assume the harddrive has room for what you are doing: They do fill up. Usually right in the middle of you writing to your log file.
  • Get used to placing breakpoints and walking through the code line by line. Double check EVERYTHING on every line. Keep the "Locals" and "Autos" windows open so you can see your values.
    • Put a breakpoint on the first line of the method causing trouble.
    • When the code stops there, walk through line by line with F-10.
    • Check the values of your assumptions (looking at the Locals and Automatic variable windows as well as hovering the mouse over the variables in the code (hothelp will popup).
  • Stop. Breath. Relax. Then reason out the problem. Cut it down by sections or halves. "The value was good here, then at this method it wasn't. Where did it go between 'A' and 'B'?"
  • Range check and validate values. Confirm that you didn't get a zero when you are only set to accept 1-10. Confirm your objects and values aren't null. Initialize them to a known default if possible. If a selection can be from 0-10, then initialize to -1: Now you have something to check for.

Example:
Expand|Select|Wrap|Line Numbers
  1. Graphics g = Graphics.FromImage(m_Undo);
Presumes that m_Undo must be good (not null)(actually exists)(not in use)(you have permissions)(doesn't time out when accessed). If that assumption fails so does the program, because you can't make anything from a file if the file is null. Get used to validating data and assumptions in your code if you want it to be robust. For example:
Expand|Select|Wrap|Line Numbers
  1. if (m_Undo != null)
  2. {
  3.    bool bSuccess = false;
  4.    // Do your thing here, for example:
  5.    if (myObject != null) bSuccess = true;
  6.    // or
  7.    if (denominator > 0) bSuccess = true;
  8.    // or
  9.    if (MyFunctionReturn != Failed) bSuccess = true;
  10.    // Hurray, your thing worked!
  11.  
  12.    if (bSuccess)
  13.    {
  14.       // Then do this other thing if it worked
  15.    }
  16.    else
  17.    {
  18.       // Then do the failure recovery part / user failure message
  19.    }
  20.  
  21.    return bSuccess; // If you want the calling method to know if it worked.
  22. }
Jan 28 '10 #11
mjsafa
16
but my code run correctly on my system and if i install .net framework 3.5 SP1, my code will run in other systems
so that my code has no problem. its because of some bugs in .net frame work 3
Jan 28 '10 #12
tlhintoq
3,525 Expert 2GB
Could be bugs or maybe you are using features that only exist in 3.5sp1 but not in 3.0.

It doesn't seem unusual to expect that new version have new features or that service packs fix bugs.

You know what you need to do to make it work in the real world. So what is your problem/question?
Jan 28 '10 #13
mjsafa
16
i didnt used any feature that needs 3.5 SP1. and installing SP1 needs over 30 minutes and my application is multimedia and i can not say to users to install my little app over 30 minutes
Jan 28 '10 #14
tlhintoq
3,525 Expert 2GB
and if i install .net framework 3.5 SP1, my code will run in other systems
What more needs to be said?

Either debug your code to make it 3.0 compliant or install 3.5sp1.
Jan 28 '10 #15
mjsafa
16
nstalling SP1 needs over 30 minutes and my application is multimedia and i can not say to users to install my little app over 30 minutes
Jan 28 '10 #16

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Mike Fisher | last post by:
I'm seeing an error when I try to run/debug a web service. Although it doesn't happen every time, it does occur more than half of the times I hit F5. It appears to be returned by the the JIT...
3
by: Hamilton | last post by:
Hi there, I've seen this error appear a few times in newsgroups but unfortunately I haven't found one that actually provides a solution. I'm basically deploying a new website into an area at a...
7
by: Grant Smith | last post by:
OK... I need a simple way to throw an error code to the operating system in a VB.NET Console application. Return is not allowed. Any ideas? Thanks, -- Grant Smith A+, Net+, MCP x 2
2
by: mike_li | last post by:
On Window 2000 Professional Server DB2 UDB Level: DB2 code release "SQL07029" with level identifie "030A0105" and informational tokens "DB2 v7.1.0.98", "n040510" and "WR21337". In the...
1
by: delusion7 | last post by:
Trying to create a table and insert records from a webform and I keep getting this message: "Successfully created the registration table. Unable to execute the query. Error code...
0
by: ankan.banerjee | last post by:
Hi all, We have a .NET Server DLL which is hosted as a COM+ application. The server is invoked by another .NET Client DLL which resides on the local machine and is invoked by a MFC application....
4
by: Pool | last post by:
I tried to connect DB2 (Sitting in Unix server at my client location) using Db2 connect V8. I am getting the following error message. I tried all the possible options BUt the error is same.. See each...
4
by: jonc1 | last post by:
I have written a windows forms app, for .net 3.5 sp1, I have dployed this OK to a Vista machine but it fails to run on an XP machine. It generates the above execption code. I initially thought...
1
by: sajidk | last post by:
Hi All, I am very new to DB2 programming. I have written a SQL stored procedure and called it from C# . The program is working but it is not returning the error code and sqlstate code. If i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.