Using v11 I can't seem to upload images anymore in the Control Panel. I have no clue as to what causes this. What happens is the following:
1) I go to the "code"-tab on the Control Panel
2) From the CP Task bar I click: "New" and then: "Bitmap"
3) "Create Global Bitmap" dialog box appears
4) I click on "Import Bitmap from file"
5) File select window appears
6) I select the Icon I want to upload. Specs of the image are: 32 pixels width, 32 pixels high, size 3,05kB, filename: "spread_sheet_32.bmp"
7) I click: "Open"
What then happens is the following:
8) The "Create Global Bitmap" window returns on screen with the Sample Bitmap correctly displayed BUT without a file name or library entry. So, I enter the filename I want it stored under in the "Bitmap Object Name" box. I use the filename that it had: "spread_sheet_32.bmp" and I select the library to be used in the "Library" entry box below in the dialog. I select the standard ALB file of the database, that resides in the current workspace.
9) I click: "OK"
10) The Control Panel flickers a few times. When looking for the image in the "Code" section of the control panel, the image does NOT show. It has NOT been included.
So, what could be happening here?
The problem does not go away after a "Compact Database", a restart of the database or a complete restart of the Alpha Five environment or either a complete restart of the Computer itself. The computer is running Windows 8. I have tried this repeatedly also with other images and other file names, but with the same result: it does not load the images anymore.
I even created another ALB file and added it to the database ("File"> "Workspace properties" > "Libraries"). But even when I select this new ALB on uploading the images, it does not show the new image at all.
Next, I tried to convert the library to a filesystem dictionary ("Control Panel"> "Code tab" > right click) and then through windows copied the image into the specified folder. The image would then show in the code panel, but when trying to select it from a Form's image selection box A5 would always freeze and come to a complete stop. So I had to refer to a complete database restore each time that I tried this.
At this point, I am out of creativity here and need some help on this one. Can't do without images in this database since they are my icons that I use in this app.
The app originally dates from v9, and I remember uploading images to the control panel has always been quirky to say the least, but I always got the job done. Now, something else seems to be the matter. I don't know what it is, and I do not think that the ALB's indexes get repaired on a Database Compact, but I am not sure about that. Could be a "rotten index" on the ALB, but then again, even creating a new ALB did not work which in that case should have because it is a complete new table. So, I don't know anymore now to be honest.
What could be causing this, and how to address it? All ideas are appreciated!!
UPDATE:
After a few hours of troubleshooting: drag-and-drop still seems to work !?! I can pick up an icon from the windows explorer window, drop it on the CP and it actually WILL show !?!
I can even select it and work with it as it seems.
I know, it's a workaround and I am of course happy with that but these type of things always frustrate me. You can loose hours easily with this kind of trouble, so I am still looking for reasons, causes and solutions although I now do seem to have a workaround. Is it something others can confirm, or do others have similar experiences?
1) I go to the "code"-tab on the Control Panel
2) From the CP Task bar I click: "New" and then: "Bitmap"
3) "Create Global Bitmap" dialog box appears
4) I click on "Import Bitmap from file"
5) File select window appears
6) I select the Icon I want to upload. Specs of the image are: 32 pixels width, 32 pixels high, size 3,05kB, filename: "spread_sheet_32.bmp"
7) I click: "Open"
What then happens is the following:
8) The "Create Global Bitmap" window returns on screen with the Sample Bitmap correctly displayed BUT without a file name or library entry. So, I enter the filename I want it stored under in the "Bitmap Object Name" box. I use the filename that it had: "spread_sheet_32.bmp" and I select the library to be used in the "Library" entry box below in the dialog. I select the standard ALB file of the database, that resides in the current workspace.
9) I click: "OK"
10) The Control Panel flickers a few times. When looking for the image in the "Code" section of the control panel, the image does NOT show. It has NOT been included.
So, what could be happening here?
The problem does not go away after a "Compact Database", a restart of the database or a complete restart of the Alpha Five environment or either a complete restart of the Computer itself. The computer is running Windows 8. I have tried this repeatedly also with other images and other file names, but with the same result: it does not load the images anymore.
I even created another ALB file and added it to the database ("File"> "Workspace properties" > "Libraries"). But even when I select this new ALB on uploading the images, it does not show the new image at all.
Next, I tried to convert the library to a filesystem dictionary ("Control Panel"> "Code tab" > right click) and then through windows copied the image into the specified folder. The image would then show in the code panel, but when trying to select it from a Form's image selection box A5 would always freeze and come to a complete stop. So I had to refer to a complete database restore each time that I tried this.
At this point, I am out of creativity here and need some help on this one. Can't do without images in this database since they are my icons that I use in this app.
The app originally dates from v9, and I remember uploading images to the control panel has always been quirky to say the least, but I always got the job done. Now, something else seems to be the matter. I don't know what it is, and I do not think that the ALB's indexes get repaired on a Database Compact, but I am not sure about that. Could be a "rotten index" on the ALB, but then again, even creating a new ALB did not work which in that case should have because it is a complete new table. So, I don't know anymore now to be honest.
What could be causing this, and how to address it? All ideas are appreciated!!
UPDATE:
After a few hours of troubleshooting: drag-and-drop still seems to work !?! I can pick up an icon from the windows explorer window, drop it on the CP and it actually WILL show !?!
I can even select it and work with it as it seems.
I know, it's a workaround and I am of course happy with that but these type of things always frustrate me. You can loose hours easily with this kind of trouble, so I am still looking for reasons, causes and solutions although I now do seem to have a workaround. Is it something others can confirm, or do others have similar experiences?
Comment