Delphi 2010 + Firebird 2.5 + IBX: crash the IDE

Posted on 2011-05-03
Medium Priority
Last Modified: 2013-11-23
Hi Experts,
I'm experiencing a very annoying problem. I use Delphi 2010, Firebird 2.5, IBX components, Windows 7 Pro.
Whenever I invoke the "Edit SQL" property editor on a TIBQuery or TIBDataSet, I get a crash of the IDE. Sometimes it crashes ("this program has stopped working blah blah blah"), sometimes the Delphi error dialog popups ("Access Violation in dcldb140.bpl at address blah blah... view details... etc"); clicking ok doens't solve because the popup appears again and again, forever; I have to kill bds via task manager.
I have another machine with Delphi that has the same exact problem.
This problem started appearing some time ago, but it did appear quite seldom, and a restart was enough to recover from the error.
Now it is appearing everytime.
Has anyone had the same issue? Any idea how I can approach it?
 the damn error
Question by:lomo74
LVL 19

Expert Comment

ID: 35512514
ensure you have the most up-to-date version of ide

Author Comment

ID: 35512617
Delphi and C++ Builder 2010 Update 4

this is the latest, afaik

Author Comment

ID: 35512677
I'm going to do a fresh install on a VM...
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Author Comment

ID: 35514464
darn - on a fresh install it is running well, apparently.
what on earth I did that caused this... on two machines!
now I'm going to
1) calc diffs between the working installation and the messed one;
2) reinstall all the stuff (devexpress, fastreport, and so on).
I'll make test at each step. I want to discover which is the offending component. aaarrrggghhhhh
LVL 32

Expert Comment

by:Ephraim Wangoya
ID: 35538150

I had a similar problem with Delphi 7 but I solved it the lazy way

I just installed EurekaLog, now everytime there is a problem, a popup dialog from EurekaLog is displayed and I just click on the continue button LOL

Author Comment

ID: 35683388
I have the problem in the IDE, not in my own applications.
Can EurekaLog trap exceptions in the IDE too? Before the VCL itself traps the exception?
Moreover, I see that the exception is occurring at SqlEdit.pas line 507; I opened that file and saw that we're inside an ActionUpdate event. Doing some debug reveals that possibly the EAX register contains trash when the event is called (I'm not 100% sure of this)...
But at least this explains why the error never goes away: the ActionUpdate event is called whenever the application is idle... :-(

Author Comment

ID: 35684401
today the error is gone.
darn... tomorrow it will come back again.
this drives me crazy

Accepted Solution

lomo74 earned 0 total points
ID: 35696377
update --
I compared my install with a fresh install -> binary same, so uninstall / reinstall of the IDE should solve nothing.
Instead, I found this thread: http://www.delphigroups.info/2/10/757317.html
Well, I'm sure I did the same mistake, once, while installing one of the many components I work with.
So, I followed these steps:
1) removed all components, except those shipped with Delphi itself;
2) removed the various ToolsApi.dcu DesignIntf.dcu and so on that I manually created because I din't find them (and didn't know they were inside designide.dcp)
3) recompiled/reinstalled a small set of components that I really need, so that they aren't using my (broken?) ToolsApi.dcu etc but the correct ones
So far, the problem is gone. I'll test in the next days.

Author Comment

ID: 35877043
Sorry - I'm still testing.
Problem is appearing again, but unfrequently.
I agree that the Q be closed.
BTW there is a nice solution: create wrapper components and define custom editors for properties. Finally, I adopted this technique, and now I have my own TWrapIBDataset with a custom SQL editor that uses syntax hilight (synedit) and does not crash :-) This is a nice topic for an article: "how to enhance standard Delphi components with customized design time editors" ;-)
Anyway I would be happy to finally figure out what is going wrong with Embarcadero's standard components...
LVL 101

Expert Comment

ID: 35892787
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question