Forms not closing

G

Guest

Hi,

I've got a very strange problem. I've got a vb.net pocket pc application.
When I run this application on a Psion Workabout PDA some forms don't close.
Not when I call Me.Close() and not when I hit the 'OK' button. The form
triggers it's load event instead of closing. If I hit the 'OK' button or call
me.Close() for the second (sometimes third time) the form closes. I managed
to reproduce this on my regular PDA only once, but resetting helped. This
doesn't help on the Psion, it has plenty of free memory, more than 40MB when
the application is running.
No exceptions are being thrown, but the forms just don't close....

I open the forms like this:

dim tmpForm as new frmSettings
tmpForm.ShowDialog()

Any ideas what could be causing this behaviour?

Thanks,

Natasja
 
C

chris-s

I have seen similar behaviour when the form contained a control that
was not being disposed of correctly. I don't know exactly what the
problem was with the object, but when you tried to dispose it when
closing a form it appeared to never return from the call.

If you are using any non-standard controls on the form, try removing
them to see if it makes any difference.

Chris
 

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

Top