Project Access Violation when set Optimization

Asked

Viewed 50 times

0

I’m on a project where I don’t know why a access violation when I try to open the program only on release mode, in the debug mode this error does not appear.
Error happens in function call DoShow of VCL.Forms.
The error apparently does not appear to be in my code because the error happens after the FormShow and before the FormActivate, what could be?

update

I realized that such problem only occurs when in my project I am the Optimizer for On, what is the relation of this?

  • Add the error code to the question to help

  • @Tmc the problem is that the error appears as if it were in the sources of Delphi itself. In my code it does not generate the error, so that when the exception and I click break, it shows the running code of vcl.Forms

  • Okay, it is in the part of the Code that believes this the problem, in case Show put Showmessage('home') and Showmessage('End') into blocks of codes, thus you "Depura no Release"

  • @And this happens: I put Showmessage('start') at the end of the form.Onshow and Showmessage('end') at the beginning of the Form code.Onactivate and gave error between these two msgs

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.