Issue with invincible form

  • Thread starter Thread starter Bonj
  • Start date Start date
B

Bonj

I have got an issue with a subform of an application that I have.
Basically, the subform displays a crystal report, and this works fine - it's
just that when you want to close it, it won't close. Clicking its cross
button does absolutely nothing, neither does any method of trying to close
it other than ending its process. While this doesn't impair the
functionality of the app, it's slightly annoying - because while it's OK in
debug mode as you can just click stop, it's slightly annoying when it's in
release mode and installed, as it has to be killed via task manager. I can't
think why this is, other than wondering if it could be some unmanaged
skullduggery going on in the crystal report that somehow locks resources
that can't be ended. All the form does is have a crystal report viewer that
gets passed an instance of a crystal report to display in it by the main
form. The subform is invoked via ShowDialog, prior to which the main form is
hidden. It then shows its crystal report successfully and is otherwise is
responsive, although thereafter, it's impossible to get the subform to
close. Can anyone think why this is?
 
No, on the contrary even. I can get it to fire, and I tried putting things in
there to force it to close, such as Application.Exit(), but to no avail. But
it's definitely not setting it to cancel the close.
 
Back
Top