I have a baffling application bug. Any clues you could
offer to help me squash this bug would be greatly
appreciated.
My application saves the contents of the form, as an
object to arrayList. The form contains buttons so that I
can navigate through all the objects and also add and
delete objects. When the application is opened or
closed, an XML file, using the SoapFormatter is read or
written to the hard drive. The application works well.
ALMOST.
One of the controls on the form is a picture box. Double
clicking the picture box opens the OpenFile dialog so
that a JPEG can be displayed in the picture box. After
invoking the OpenFile dialog I can navigate to other
objects in the arrayList and return. The file name for
the JPEG image has been has been saved in the arrayList
and the picture displays as designed.
However, when I close the application the arrayList is
NOT written to the hard drive if I had invoked the
OpenFile dialog.. If I manually edit the textbox that
contains the JPEG file name, the JPEG image changes and
the file IS written to the hard drive.
This mystery has had me bamboozled for a couple of weeks;
thanks in advance for any suggestions.
GrandpaB
offer to help me squash this bug would be greatly
appreciated.
My application saves the contents of the form, as an
object to arrayList. The form contains buttons so that I
can navigate through all the objects and also add and
delete objects. When the application is opened or
closed, an XML file, using the SoapFormatter is read or
written to the hard drive. The application works well.
ALMOST.
One of the controls on the form is a picture box. Double
clicking the picture box opens the OpenFile dialog so
that a JPEG can be displayed in the picture box. After
invoking the OpenFile dialog I can navigate to other
objects in the arrayList and return. The file name for
the JPEG image has been has been saved in the arrayList
and the picture displays as designed.
However, when I close the application the arrayList is
NOT written to the hard drive if I had invoked the
OpenFile dialog.. If I manually edit the textbox that
contains the JPEG file name, the JPEG image changes and
the file IS written to the hard drive.
This mystery has had me bamboozled for a couple of weeks;
thanks in advance for any suggestions.
GrandpaB
Comment