Hello, I have a problem with a Form (EJournalF) that is activated unexpectedly and can't find from where. If I let it be Auto_Created
in Project/Option/Font Auto_Create there are 2 instances at run-time, if it is listed in Available_Forms, only one instance is created. I have a MenyForm as Mainform and a button that state EjournalF.Show;, but EJournalF is activated and shown inspite of pressing the Meny-button. This have worked correctly since years, but I made some additions in the code and I can't figure out what made the change. This is a production program, so any helo would be appriciated!!
Bo_1
Recommended Answers
Jump to PostDoes your form have an onCreate event handler? If not, add one. Then put a breakpoint in the event handler and when you hit the breakpoint check the call stack window to see what code was running when the form is created.
Alternatively, do a "Search ... Find in files" …
Jump to PostHave you searched for TEJournalF.Create rather than TEjournal.FormCreate ?
Jump to PostSearch your project for anything that has
EJournalF
in it.
Jump to PostCan you step over (F8) the call(s) to Fast Reports code, rather than tracing into them with F7?
What variable is being used to hold your form? Is it the Delphi-provided variable in the form's unit? Something like:
var EJournalF: TEJournalF;
If so, temporarily comment out …
All 16 Replies
SalmiSoft
102
Junior Poster
Bo_1
SalmiSoft
102
Junior Poster
Bo_1
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
SalmiSoft
102
Junior Poster
Bo_1
SalmiSoft
102
Junior Poster
Bo_1
Bo_1
SalmiSoft
102
Junior Poster
Bo_1
SalmiSoft
102
Junior Poster
Bo_1
SalmiSoft
102
Junior Poster
Bo_1
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.