Roger Daley Well-Known Member Licensed User Longtime User Feb 21, 2015 #1 Hi All, A puzzle! I have a number of .png files in the project that are not required. If I remove any of these I get the error below when I try to complie. If I copy them back in to the files folder all is good. I have tried using both the Designer "Remove Selected" and the IDE Files "Remove" to remove the files but it still causes the error. When I copy the file/s back in to the Files folder I don't need to have either the Designer or the IDE Add the file/s to their respective list, the .png file just needs to be in the Files folder. I could ignore them but would prefer to clean out unused files. Any help greatly appreciated. Regards Roger
Hi All, A puzzle! I have a number of .png files in the project that are not required. If I remove any of these I get the error below when I try to complie. If I copy them back in to the files folder all is good. I have tried using both the Designer "Remove Selected" and the IDE Files "Remove" to remove the files but it still causes the error. When I copy the file/s back in to the Files folder I don't need to have either the Designer or the IDE Add the file/s to their respective list, the .png file just needs to be in the Files folder. I could ignore them but would prefer to clean out unused files. Any help greatly appreciated. Regards Roger
NJDude Expert Licensed User Longtime User Feb 21, 2015 #2 Delete the files you don't need and run your code in DEBUG (legacy) mode to see the offending line. Upvote 0
Roger Daley Well-Known Member Licensed User Longtime User Feb 21, 2015 #3 Thanks NJDude I had tried Debug Rapid, but it didn't find a problem. The Legacy Debug certainly has found the problem at "Activity.LoadLayout("Portrait")" as shown below. Any idea as what I do to fix it, I'm out of my depth. Roger Upvote 0
Thanks NJDude I had tried Debug Rapid, but it didn't find a problem. The Legacy Debug certainly has found the problem at "Activity.LoadLayout("Portrait")" as shown below. Any idea as what I do to fix it, I'm out of my depth. Roger
NJDude Expert Licensed User Longtime User Feb 21, 2015 #4 If you look at the report, there's a panel not initialized, maybe you are adding an image to that panel background? Upvote 0
If you look at the report, there's a panel not initialized, maybe you are adding an image to that panel background?
Roger Daley Well-Known Member Licensed User Longtime User Feb 21, 2015 #5 I think that the panel is logged as not initialized is a different puzzle. The "aboutPanel" was created in the Designer and my understanding that this initializes the panel and it should not be initialized in code. The about Panel has only 1 Label [Text only, no images]. It causes no problem until I remove a .png file. The .png file not associated with the aboutPanel. I did however try initializing the panel in code but the result was the same error. Stanger and stranger. Regards Roger Upvote 0
I think that the panel is logged as not initialized is a different puzzle. The "aboutPanel" was created in the Designer and my understanding that this initializes the panel and it should not be initialized in code. The about Panel has only 1 Label [Text only, no images]. It causes no problem until I remove a .png file. The .png file not associated with the aboutPanel. I did however try initializing the panel in code but the result was the same error. Stanger and stranger. Regards Roger
Erel B4X founder Staff member Licensed User Longtime User Feb 22, 2015 #6 You should not initialize views created with the designer. Can you upload your project? Upvote 0
Roger Daley Well-Known Member Licensed User Longtime User Feb 22, 2015 #7 Thanks Erel, The project zip is to large to upload directly, but a link is below. I haven't used drop box before, this should work, let me know if it doesn't. There are a number of redundant files in the project, removing one, "banner.png" should demonstrate the problem. BrownPaper2 Regards Roger Upvote 0
Thanks Erel, The project zip is to large to upload directly, but a link is below. I haven't used drop box before, this should work, let me know if it doesn't. There are a number of redundant files in the project, removing one, "banner.png" should demonstrate the problem. BrownPaper2 Regards Roger