2
votes

Recently i upgraded from Delphi 2007 to 10.3.3 . The same app when compiled with 10.3.3 will crash at startup, but only in some machines ; in my environment i could not simulate the problem but some of my customers are having this issue. If i compile the same app in D2007, the error won't happen so i assume is something related to the new Delphi version.

The error message is this below and after this, the app will close. The message is too generic, what can i do to at least try to identify what is causing the crash ?

Here is what i tried : in the main form of my application, i went to the FormCreate event and put a showmessage('stop'); on the first line, but the crash happens before this.

I know this is a hard question, but i'm seeking for suggestions to at least look in some direction, so please help !

Thanks in advance.

enter image description here

UPDATE : Here is Eureka Log trace :

enter image description here

1
Well, read of address 00000000 means it's trying to read from a nil pointer.Jerry Dodge
If the crash happens before the creation of your main form, then it's likely to occur in the initialization section of some unit, which is a pain in the @$$ to track down and debug.Jerry Dodge
I would go with madExcept. it will help you determine exactly where the exception is.kobik
You need a stacktrace, MadExcept or Eurekalog should be helpful in your casewhosrdaddy
@delphirules: if you cannot reproduce it on your system; there is always the possibility to do remote debuggingwhosrdaddy

1 Answers

1
votes

After install EurekaLog, i could find the problem was related to Datasnap. Here is what i did that fixed the issue, hopefully will help somebody.

The library midas.dll was already present in the same folder of the app. I then copied midas.dll to c:\windows\syswow64 and run the command below in prompt with Admin rights :

c:\windows\syswow64\regsvr32 midas.dll

After that the app runs fine.

Can somebody explains why this was needed ?