Gotheallblacks
Programmer
Has anybody come across C5 errors using "PictureVal" after having set the "Picture" Propery.I have spent a week trying to find a random C5 Error #@%&) Arrg
Some Interesting random ocurrances:
1) A Image object Picture(separate from my running code) was being changed by VFP to random Icons of any CmdButton or other images on the Running form.2) Random crashes
3) After some crashes even opening a table (not even in my working project) would C5 and hang.
I used to set my Image objects Picture = to a "Blank" image file and when I needed set the PictureVal using FileToStr() and could also use the Picture Property to keep the filename stored for ref.
I had Rebooted,Reloaded project,packed,zapped,checkd viruses,malware,spyware. Went from VFP 9 Sp1 to Sp2 and still no luck.
I initially thought dangling refrences and then code for a grid:
ThisForm.grdColours.grcImage.ctnImage.imagepicker.PICTURE=colours.filename
ThisForm.grdColours.grcImage.CtnImage.imagepicker.PICTUREVAL=FILETOSTR(colours.filename)
RETURN ThisForm.grdColours.BACKCOLOR
I have changed all my code use only 'Picture' property or 'PictureVal' but not Both and have "thrashed" my project and haven't had any crashes for the last 8 hours, X fingers ?
Some Interesting random ocurrances:
1) A Image object Picture(separate from my running code) was being changed by VFP to random Icons of any CmdButton or other images on the Running form.2) Random crashes
3) After some crashes even opening a table (not even in my working project) would C5 and hang.
I used to set my Image objects Picture = to a "Blank" image file and when I needed set the PictureVal using FileToStr() and could also use the Picture Property to keep the filename stored for ref.
I had Rebooted,Reloaded project,packed,zapped,checkd viruses,malware,spyware. Went from VFP 9 Sp1 to Sp2 and still no luck.
I initially thought dangling refrences and then code for a grid:
ThisForm.grdColours.grcImage.ctnImage.imagepicker.PICTURE=colours.filename
ThisForm.grdColours.grcImage.CtnImage.imagepicker.PICTUREVAL=FILETOSTR(colours.filename)
RETURN ThisForm.grdColours.BACKCOLOR
I have changed all my code use only 'Picture' property or 'PictureVal' but not Both and have "thrashed" my project and haven't had any crashes for the last 8 hours, X fingers ?