It's a Foxpro Bug (Suprise)
The image cannot be contained in the executable ie the project - remove it frm the project and access with load image via relative pathing - the image you refer to may not be in the project - Wala - No more invalid file descriptor crap.
I had this same problem and worked it through with Tech Support
Jon
>I have a form with an ImageList that I want to add images to programatically. In the form's activate method I have this code:
>
>THISFORM.oleMyImageList.ListImages.Add(, "MyIconKey", LOADPICTURE("MyIcon.ico"))
>
>I get an 'Illegal file descriptor' error. What am I doing wrong? I was referring to Andy MacNeill's article in FPA's Jan '97 issue for help. Any ideas?
>
>TIA
JJ-
One man gathers what another man spills.......