473,386 Members | 1,973 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,386 software developers and data experts.

Crash upon exit?

Hi,

I have a problem with my app, sometimes (1 out of 10 or so) when the user
closes the app, it crashes (not visiable) but stays as a task in the
background.

This of course doesnt work good with my liveupdate function that cannot
overwrite the files when this has happend. The users ends up having to kill
the process or logoff/login again.

Even for me, in develop mode, the IDE sometimes crashes when I close that
one with my app loaded, I suspect its one of the component in my application
that causes it, but not sure which one.
When it crashes in the IDE it says "memory cannot be read xxxxx" so its not
that much of information.

When it happens for the clients, its not showing any errors at all
(sometimes it does then its the same "Memory cannot be read at xxxx"...

What can I do to find and eliminate this problem? Or is there a workaround?
I do unload all forms, disposing them before, so it must be something
else...

Regards
Fredrik Melin
Nov 20 '05 #1
8 1151
Hi Fred,

Sounds like a pointer reference is screwed up which probably means it is a
bug in one of the components as you say!. Is there no way you can isolate
some of the compenents to try and narrow this down ? Often with this type of
problem the only person who will be able to resolve it is you yourself.

Someone was referring to a free profiler on here in the last two/three days,
I dont know if this might help you track it down. Look through and you will
see it.

Regards - OHM

-------------------------

Fredrik Melin wrote:
Hi,

I have a problem with my app, sometimes (1 out of 10 or so) when the
user closes the app, it crashes (not visiable) but stays as a task in
the background.

This of course doesnt work good with my liveupdate function that
cannot overwrite the files when this has happend. The users ends up
having to kill the process or logoff/login again.

Even for me, in develop mode, the IDE sometimes crashes when I close
that one with my app loaded, I suspect its one of the component in my
application that causes it, but not sure which one.
When it crashes in the IDE it says "memory cannot be read xxxxx" so
its not that much of information.

When it happens for the clients, its not showing any errors at all
(sometimes it does then its the same "Memory cannot be read at
xxxx"...

What can I do to find and eliminate this problem? Or is there a
workaround? I do unload all forms, disposing them before, so it must
be something else...

Regards
Fredrik Melin

Nov 20 '05 #2
Cor
Hi Fredrik,

I think in my opinion the same as OHM, but this does give me some nasty
feeling.
I do unload all forms, disposing them before, so it must be something
else...


Normaly you only have to dispose and unload a dialogform

Can it not be the oposite, if you don't dispose that you don't have the
error and not unload, I think you mean with that last setting them to
nothing.

But it is just a gues in the dark,

Cor
Nov 20 '05 #3
Your right, I am disposing them and setting them to nothing.

"Cor" <no*@non.com> wrote in message
news:u2**************@TK2MSFTNGP10.phx.gbl...
Hi Fredrik,

I think in my opinion the same as OHM, but this does give me some nasty
feeling.
I do unload all forms, disposing them before, so it must be something
else...


Normaly you only have to dispose and unload a dialogform

Can it not be the oposite, if you don't dispose that you don't have the
error and not unload, I think you mean with that last setting them to
nothing.

But it is just a gues in the dark,

Cor

Nov 20 '05 #4
Cor
Hi Frederik,

I would try it once with not doing that, because that is not the way as it
is described to do, just closing should be enough so that the framework can
delete them using the garbadge collector.

When you get an error, maybe that is the reason of the behaviour what you
get now, but I should not try to fix that with disposing it or setting to
nothing.

As far as I know can disposing direct be used by frequently new created
objects or very large objects.
Your right, I am disposing them and setting them to nothing.


I hope this helps?

Cor

Nov 20 '05 #5
* "Fredrik Melin" <me*@n.o.spam.dacsa.net.remove.as.needed> scripsit:
Your right, I am disposing them and setting them to nothing.


Post some code.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #6
Ive look through it the best I can, and I suspect its a instance of IE that
is the problem

In our app, to open a link to a webbpage I use the following code.

(its in a module for global access)
Public ie As SHDocVw.InternetExplorer

Public Sub NavigateToWebPage(ByVal URL As String)

Try
ie = New SHDocVw.InternetExplorer

If (ie Is Nothing) Then
'ie = New SHDocVw.InternetExplorer
ie.Visible = True
Else
If (Not ie.Visible) Then
ie.Visible = True
End If
End If
ie.Navigate(URL)
Catch ex As System.Runtime.InteropServices.COMException
If (ex.Message.ToLower() = "the object invoked has disconnected
from its clients.") Then
ie = New SHDocVw.InternetExplorer
ie.Visible = True
ie.Navigate(URL)
End If
End Try

End Sub
There is no .Dispose on it, so that I cant do when I close the app, If I try
using IE.quit the user get all kinds of strange errors (maybe when the IE is
already closed, havent checked that fully yet)

But I suspect that this is the code that causes the problem.

Any ideas how to cleanup this instance of IE?
Or howto use a better code to open a browser and view a page.
Regards
Fredrik

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
* "Fredrik Melin" <me*@n.o.spam.dacsa.net.remove.as.needed> scripsit:
Your right, I am disposing them and setting them to nothing.


Post some code.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #7
Cor
Hi Frederik,

When I look at the code I am asking myself.
Catch ex As System.Runtime.InteropServices.COMException
If (ex.Message.ToLower() = "the object invoked has disconnected from its clients.") Then
ie = New SHDocVw.InternetExplorer
ie.Visible = True
ie.Navigate(URL)
End If
End Try

What happens as the exception is thrown by something else than with that
ex.message?

Would it not need some action also?

Just a thought

Cor
Nov 20 '05 #8
I have a global handler for all unhandled exceptions in the app.

- Fredrik

"Cor" <no*@non.com> wrote in message
news:ub****************@TK2MSFTNGP10.phx.gbl...
Hi Frederik,

When I look at the code I am asking myself.
Catch ex As System.Runtime.InteropServices.COMException
If (ex.Message.ToLower() = "the object invoked has

disconnected
from its clients.") Then
ie = New SHDocVw.InternetExplorer
ie.Visible = True
ie.Navigate(URL)
End If
End Try

What happens as the exception is thrown by something else than with that
ex.message?

Would it not need some action also?

Just a thought

Cor

Nov 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: accolades | last post by:
We've discussed this before in the group; IDEs that crash on completion of a PyGame or PyOgre (or any other graphics library) script. I have had this result with pretty much every IDE that I have...
8
by: Jean-Marc Blaise | last post by:
Hi, I'm on Linux Intel, V8.1 / FP4. I have an instance crash. The test case: db2set DB2_FMP_COMM_HEAPSZ = 0 db2stop db2start db2mtrk -i -d -p -v ==> Instance is crashed.
10
by: xixi | last post by:
i have db2 udb v8.1 on windows 64 bit 2003 server, after db2 server start , i found this in the db2diag.log, is this error? 2004-05-05-15.28.30.780000 Instance:DB2 Node:000...
14
by: Jurgen Haan | last post by:
Hey all, at the company where I work we had a strange situation yesterday. Our DB2 database locked up, or as it later seemed, the DBM, or some connection manager. We couldn't open new...
7
by: Jamma | last post by:
Hello, I have an Access 2000 file working on XP machines and a NT network. The files are split and 95% of the time all is well and stable. The main issue arises when the app prints,a novell...
9
by: Droopy | last post by:
Hi, I am running an application on 74 PC (1 instance on each PC). This morning, 2 applications crashes. There were neither popup windows signaling it nor dump file created. I only find in the...
3
by: Lyndsey.Ferguson | last post by:
Hello Everyone, I am investigating a crash within our application that has me stumped. I am developing for Mac OS X, but I believe that this may be a regular gcc c++ type question. Here is...
3
by: lookaround | last post by:
Hi everyone, I need some help... I call an external exe (a command-line tool) with Process.Start through this code: try { p = new Process(); p.StartInfo.UseShellExecute = false;...
2
by: Racerx | last post by:
Hi All : I use db2 8.1 fixpack 3 on AIX. I recieved the following message in the diaglog ====================================================== ADM7513W Database manager has started. ...
5
by: cbbibleboy | last post by:
Hey, I've been getting some very strange results with what seems to be very simple code. All I'm doing is trying to use an STL vector of "cSprite"s -- a class I wrote. The problem arises when I try...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.