HELP!!

  • Thread starter Thread starter HelpME
  • Start date Start date
H

HelpME

I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost

On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck

The program compiles fine with no errors or warning on the machine it
was written on.
 
I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost

This is like diagnosing a disease of someone just claiming to be sick
without telling anything else. You need to provide far more information
for us to even guess what might be wrong.
On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck

When you say you are unable to install your program, are you unable to
install it, or does it install just fine, but does not run.
The program compiles fine with no errors or warning on the machine it
was written on.

Well, if it didn't compile, you would probably not install it elsewhere.
A compiled program may crash just fine without giving any compiler
warnings.
 
I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost

On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck

The program compiles fine with no errors or warning on the machine it
was written on.

What is your program actually attempting to do?
Does it crash as soon as you run it, or at some point later?
You could try putting some MessageBoxes in to try and see where it is
crashing, better still, add some code to write to a textfile/log so you can
see what is going on...
 
You are correct about the diagnosis without symptoms. Unfortunately
the only symptom I have is what I told you. You can thank MS for that

So I have an app that works fine somethime and other times after small
alterations in code produce that cryptic message on a few machines
(not just one) in the office. The "crash" is sporatice and not
corrected with rebooting.

The app is similar to a chat program over the internal network. I have
check firewalls and antivirus. Not sure how to isolate the problem



Date: Tue, 05 Dec 2006 07:18:38 +0100
Subject: Re: HELP!!
From: "Morten Wennevik" <[email protected]>
Content-Type: text/plain; format=flowed; delsp=yes;
charset=iso-8859-15
MIME-Version: 1.0
References: <[email protected]>
Content-Transfer-Encoding: 7bit
Message-ID: <[email protected]>
User-Agent: Opera Mail/9.01 (Win32)
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: alcanet-gw.online.no 193.212.3.130
Path: TK2MSFTNGP01.phx.gbl!TK2MSFTNGP05.phx.gbl
Lines: 1
Xref: TK2MSFTNGP01.phx.gbl microsoft.public.dotnet.general:219629

I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost

This is like diagnosing a disease of someone just claiming to be sick
without telling anything else. You need to provide far more
information
for us to even guess what might be wrong.
On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck

When you say you are unable to install your program, are you unable to
install it, or does it install just fine, but does not run.
The program compiles fine with no errors or warning on the machine it
was written on.

Well, if it didn't compile, you would probably not install it
elsewhere.
A compiled program may crash just fine without giving any compiler
warnings.
 
Well, all I can do is repeat my suggestion that you create a 'debugging'
version of the program that displays a MessageBox, or writes to a log before
each main thing that it does, and see if you can work out what happens just
before it falls over.

If you're feeling really smart, you can attach the debugger to a remote
process and acutally step through the running code to see what is going on.

I assume that it never crashes when running it in debug mode on your
development machine...?

Chris.

You are correct about the diagnosis without symptoms. Unfortunately
the only symptom I have is what I told you. You can thank MS for that

So I have an app that works fine somethime and other times after small
alterations in code produce that cryptic message on a few machines
(not just one) in the office. The "crash" is sporatice and not
corrected with rebooting.

The app is similar to a chat program over the internal network. I have
check firewalls and antivirus. Not sure how to isolate the problem



Date: Tue, 05 Dec 2006 07:18:38 +0100
Subject: Re: HELP!!
From: "Morten Wennevik" <[email protected]>
Content-Type: text/plain; format=flowed; delsp=yes;
charset=iso-8859-15
MIME-Version: 1.0
References: <[email protected]>
Content-Transfer-Encoding: 7bit
Message-ID: <[email protected]>
User-Agent: Opera Mail/9.01 (Win32)
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: alcanet-gw.online.no 193.212.3.130
Path: TK2MSFTNGP01.phx.gbl!TK2MSFTNGP05.phx.gbl
Lines: 1
Xref: TK2MSFTNGP01.phx.gbl microsoft.public.dotnet.general:219629

I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost

This is like diagnosing a disease of someone just claiming to be sick
without telling anything else. You need to provide far more
information
for us to even guess what might be wrong.
On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck

When you say you are unable to install your program, are you unable to
install it, or does it install just fine, but does not run.
The program compiles fine with no errors or warning on the machine it
was written on.

Well, if it didn't compile, you would probably not install it
elsewhere.
A compiled program may crash just fine without giving any compiler
warnings.


--
Happy Coding!
Morten Wennevik [C# MVP]
What is your program actually attempting to do?
Does it crash as soon as you run it, or at some point later?
You could try putting some MessageBoxes in to try and see where it is
crashing, better still, add some code to write to a textfile/log so you
can
see what is going on...
 
You are correct it never crashs on the devlopment machine. I am not
smart enough to know how to attach a debugger to a remote process.
and am not sure what it means ( I have only been coding in Vb.net for
a short time) Could you provide me with some info??



Well, all I can do is repeat my suggestion that you create a 'debugging'
version of the program that displays a MessageBox, or writes to a log before
each main thing that it does, and see if you can work out what happens just
before it falls over.

If you're feeling really smart, you can attach the debugger to a remote
process and acutally step through the running code to see what is going on.

I assume that it never crashes when running it in debug mode on your
development machine...?

Chris.

You are correct about the diagnosis without symptoms. Unfortunately
the only symptom I have is what I told you. You can thank MS for that

So I have an app that works fine somethime and other times after small
alterations in code produce that cryptic message on a few machines
(not just one) in the office. The "crash" is sporatice and not
corrected with rebooting.

The app is similar to a chat program over the internal network. I have
check firewalls and antivirus. Not sure how to isolate the problem



Date: Tue, 05 Dec 2006 07:18:38 +0100
Subject: Re: HELP!!
From: "Morten Wennevik" <[email protected]>
Content-Type: text/plain; format=flowed; delsp=yes;
charset=iso-8859-15
MIME-Version: 1.0
References: <[email protected]>
Content-Transfer-Encoding: 7bit
Message-ID: <[email protected]>
User-Agent: Opera Mail/9.01 (Win32)
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: alcanet-gw.online.no 193.212.3.130
Path: TK2MSFTNGP01.phx.gbl!TK2MSFTNGP05.phx.gbl
Lines: 1
Xref: TK2MSFTNGP01.phx.gbl microsoft.public.dotnet.general:219629

I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost

This is like diagnosing a disease of someone just claiming to be sick
without telling anything else. You need to provide far more
information
for us to even guess what might be wrong.
On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck

When you say you are unable to install your program, are you unable to
install it, or does it install just fine, but does not run.
The program compiles fine with no errors or warning on the machine it
was written on.

Well, if it didn't compile, you would probably not install it
elsewhere.
A compiled program may crash just fine without giving any compiler
warnings.


--
Happy Coding!
Morten Wennevik [C# MVP]
I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost

On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck

The program compiles fine with no errors or warning on the machine it
was written on.

What is your program actually attempting to do?
Does it crash as soon as you run it, or at some point later?
You could try putting some MessageBoxes in to try and see where it is
crashing, better still, add some code to write to a textfile/log so you
can
see what is going on...
 
Don't worry about debugging remote processes for now. If you want to find
out how to do that, you're best off reading the online help, or 'asking'
Google.

What I'd do in your position is go through the program, and identify the
main things that happen (eg opening a file, creating a connection to a
database, creating a large object etc etc) and putting a MessageBox in that
says what is happening. Then you can run the program, you will have to keep
clicking on Messageboxes to keep it running, but when the program crashes,
you should be able to have some idea where it went wrong by the last
messagebox that you saw. I'd put just a few Messagesboxes in at first then
once you have identified the rough area causing the problem, you can add
more in that area to pin it down more specifically.

An improvement to the above could be to open a Textfile at the start of the
program, then rather than putting MessageBoxes in your code, you could just
write lines to this TextFile then when the program crashes, looking back
through the file should again help you to pin down where it is going
wrong...

Chris.

You are correct it never crashs on the devlopment machine. I am not
smart enough to know how to attach a debugger to a remote process.
and am not sure what it means ( I have only been coding in Vb.net for
a short time) Could you provide me with some info??



Well, all I can do is repeat my suggestion that you create a 'debugging'
version of the program that displays a MessageBox, or writes to a log
before
each main thing that it does, and see if you can work out what happens
just
before it falls over.

If you're feeling really smart, you can attach the debugger to a remote
process and acutally step through the running code to see what is going
on.

I assume that it never crashes when running it in debug mode on your
development machine...?

Chris.

You are correct about the diagnosis without symptoms. Unfortunately
the only symptom I have is what I told you. You can thank MS for that

So I have an app that works fine somethime and other times after small
alterations in code produce that cryptic message on a few machines
(not just one) in the office. The "crash" is sporatice and not
corrected with rebooting.

The app is similar to a chat program over the internal network. I have
check firewalls and antivirus. Not sure how to isolate the problem



Date: Tue, 05 Dec 2006 07:18:38 +0100
Subject: Re: HELP!!
From: "Morten Wennevik" <[email protected]>
Content-Type: text/plain; format=flowed; delsp=yes;
charset=iso-8859-15
MIME-Version: 1.0
References: <[email protected]>
Content-Transfer-Encoding: 7bit
Message-ID: <[email protected]>
User-Agent: Opera Mail/9.01 (Win32)
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: alcanet-gw.online.no 193.212.3.130
Path: TK2MSFTNGP01.phx.gbl!TK2MSFTNGP05.phx.gbl
Lines: 1
Xref: TK2MSFTNGP01.phx.gbl microsoft.public.dotnet.general:219629


I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost


This is like diagnosing a disease of someone just claiming to be sick
without telling anything else. You need to provide far more
information
for us to even guess what might be wrong.

On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck


When you say you are unable to install your program, are you unable to
install it, or does it install just fine, but does not run.

The program compiles fine with no errors or warning on the machine it
was written on.

Well, if it didn't compile, you would probably not install it
elsewhere.
A compiled program may crash just fine without giving any compiler
warnings.


--
Happy Coding!
Morten Wennevik [C# MVP]
On Tue, 5 Dec 2006 11:42:07 -0000, "ChrisM"


I wrote a program in Vb.Net that was running fine. However I am
unable to install it on a couple of machines. When i run it I get a
windows error message that says

My Project.exe has encountered a problem and needs to close. We are
sorry for the inconvience.

If you were in the middle of something, the information you were
working on might be lost

On one machine it ran fine for a week but when I recompile the program
wuth a minor change (The text in a single label) it appeared and now I
am stuck

The program compiles fine with no errors or warning on the machine it
was written on.

What is your program actually attempting to do?
Does it crash as soon as you run it, or at some point later?
You could try putting some MessageBoxes in to try and see where it is
crashing, better still, add some code to write to a textfile/log so you
can
see what is going on...
 
Back
Top