Jump to content
Sign in to follow this  
limelect

Nobel prize for figuring out

Recommended Posts

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

Something wrong with .dproj files ?

 

These files maintain the project settings regarding compilation, environment, path, etc.

Share this post


Link to post

@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 by limelect

Share this post


Link to post
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 by Attila Kovacs

Share this post


Link to post

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

@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

@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

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

1) Right click on the folder and select properties.

2) in security tab click on advanced

3) Click on change owner image.png.e564efe359c1a0f8225fc95139516b6c.png

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 image.png.b229ed687c5953093985957bc4ff41db.png

8 ) ok

 

Share this post


Link to post

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

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

@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

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
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:

 

image.thumb.jpeg.84aa1e02a3bbfcdbf0bd7049d4d5f5e3.jpeg

Edited by Attila Kovacs
  • Haha 1

Share this post


Link to post

<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

It's FSK 12, I could suggest to consult a doctor if you are disturbed by those words.

Edited by Attila Kovacs

Share this post


Link to post

@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

Some news.

Compare Hex of both exe (same source working and nonworking)

sime to be different in content.

Share this post


Link to post

@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?????

Screenshot - 28_09_2023 , 16_30_23.jpg

Edited by limelect

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×