limelect 48 Posted September 28, 2023 The program does not matter but basically, it shows database data by using FDConnection1.GetTableNames('', '', '', str, [osMy, osOther], [tkTable], False); and FDConnection1.GetFieldNames('', '', str, '', Str2); Now to the story I got back to this program (that worked) compiled and it stopped working.. I did nothing just compiled. worked on it nothing. went to my backup and copied the main.pas and main.dfm (those are the only files) did not work. . The execution on the backup workers as expected. Mad a new project by copping from backup the dpr pas dfm and compile it does not work. Now to the NOBEL prize. Copy the project from the backup to a directory and compile and it works Check by comparing pas and dfm. same. Check as much as possible DCU with hex program same. size wise both exe are the same. The point is that it is so crazy that I had to share it with you guys. Share this post Link to post
DelphiUdIT 176 Posted September 28, 2023 Something wrong with .dproj files ? These files maintain the project settings regarding compilation, environment, path, etc. Share this post Link to post
limelect 48 Posted September 28, 2023 (edited) @DelphiUdIT Read carefully. Mad a new project by copping from backup the dpr pas dfm and compile it does not work. It has nothing to do with dproj But you gave me an IDEA I will check dproj on both programs Edited September 28, 2023 by limelect Share this post Link to post
Attila Kovacs 629 Posted September 28, 2023 (edited) 4 minutes ago, limelect said: It has nothing to do with dproj Of course, it has, it only worked when you copied the dproj from the backup. Maybe the search path. But why don't you debug in the first place? That doesn't require any "Nobel Prize." Edited September 28, 2023 by Attila Kovacs Share this post Link to post
Kas Ob. 121 Posted September 28, 2023 Here a theory: Once you ran the IDE with different user permission than yours now and the directory now have limited privileges, that interfere with the IDE ,the EXE, the DCU ...etc Also may be you used RDP once upon a time and renamed or created the needed directories, also with change the owner. Anyway, to test this, either check the permission, or an easier solution just rename a parent folder, or the project only, then create new with the same name, and try again. Share this post Link to post
Kas Ob. 121 Posted September 28, 2023 Or try to take owner ship of a parent directory and apply the settings to sub folders. Share this post Link to post
limelect 48 Posted September 28, 2023 @Attila KovacsThe whole point is that I have nothing to do with the program. . There is nothing to debug. as I made a new project from a working file and it does not work. Read carefully what I wrote Share this post Link to post
limelect 48 Posted September 28, 2023 @Kas Ob. Run as administrator does not help Something very basic is a fault here I tested your idea made a new directory and copied the whole project files !!! and it does not work. Only coping the directory works Share this post Link to post
Kas Ob. 121 Posted September 28, 2023 Have you tried to take ownership of the directory ? Share this post Link to post
limelect 48 Posted September 28, 2023 Copy the whole project from backup workes. Copy file from directory does not. can you plz explain your idea of how to do it? Share this post Link to post
Kas Ob. 121 Posted September 28, 2023 1) Right click on the folder and select properties. 2) in security tab click on advanced 3) Click on change owner 4) click advanced 5) click find now 6) in the list of users and groups select your user then OK 7) Now check that replace 8 ) ok Share this post Link to post
limelect 48 Posted September 28, 2023 well I am the owner with full control Share this post Link to post
Kas Ob. 121 Posted September 28, 2023 More step 1) in security tab select your user and click edit 2) check all the allow to your user also remove readonly in case it is there also check if the your binary (EXE) has any combability enabled and disable it. Share this post Link to post
limelect 48 Posted September 28, 2023 Do not forget that the backup is supposed to be duplicate of the original. I can put the backup folder anywhere and it will compile and work. However, its files do not. Share this post Link to post
limelect 48 Posted September 28, 2023 @Kas Ob. sorry with all due respect the above has nothing to do with the compilation and working project. It is crazier than it just a few checkboxes Share this post Link to post
limelect 48 Posted September 28, 2023 What I did was take a NOT working exe and put it in a working dir and the exe did not work! so it is NOT a direct problem But a compilation problem. Crazy as it sounds I cannot find why in one directory the compilation is OK and the other dir the compilation does not give a working exe although file !!!!! are the same !!!!!!!!!! Share this post Link to post
Attila Kovacs 629 Posted September 28, 2023 (edited) 1 hour ago, limelect said: There is nothing to debug. as I made a new project from a working file and it does not work. Read carefully what I wrote I'm already very careful, but it doesn't make any sense. This just came to my mind: Edited September 28, 2023 by Attila Kovacs 1 Share this post Link to post
Rollo62 536 Posted September 28, 2023 <OT> I do not know most of these wordings, perhaps they come from another century. This feels very unbalanced and not equal in word choice to me, couldn't this be better to put a big warning bar over it that this comic may severely disturb the unsophisticated reader. </OT> Share this post Link to post
Attila Kovacs 629 Posted September 28, 2023 (edited) It's FSK 12, I could suggest to consult a doctor if you are disturbed by those words. Edited September 28, 2023 by Attila Kovacs Share this post Link to post
limelect 48 Posted September 28, 2023 @Attila Kovacs This is why I give the NOBEL prize for free. I am with Delphi since #1 !!!! never but never had such a thing. Always take pas dpr and dfm and you got it. So this is why I put this post. Share this post Link to post
limelect 48 Posted September 28, 2023 Some news. Compare Hex of both exe (same source working and nonworking) sime to be different in content. Share this post Link to post
limelect 48 Posted September 28, 2023 Ok final verdict. Copied the good directory into a new directory and it works Crazy ha????? Share this post Link to post
Attila Kovacs 629 Posted September 28, 2023 We still don't know what "works" means and why is there nothing to debug? Share this post Link to post
limelect 48 Posted September 28, 2023 (edited) @Attila Kovacs If I knew (with all my experience) what was going on I wouldn't put this post. The problem has NOTING to do with the source If you take the source and put it in one directory and compile the outcome is that the program does not give the expected result. That's it It does not read the database. I needed in a project to copy database content It is a Delphi compiler????? Edited September 28, 2023 by limelect Share this post Link to post
Attila Kovacs 629 Posted September 28, 2023 Did you try to relocate the computer in the room? Share this post Link to post