Question

Opening any application "access violation at address ... in module 'vcl70.bpl'. Write of address..."

Asked by: Ron_de_Weijze

Hi expert,

Something strange happening here. Out of the blue, it seems, "acces violation at address ... in module 'vcl70.bpl'.  Write of address..." appears whichever application I open that I am working on. The most recent change I made was add a line that called the ColorDialog from the VCL. Similar lines have been working fine for a long time in different units. The just added line also worked! However when I closed the session, the problem started. I also, less recently, replaced some directories for unused applications (backups). Putting them back did not solve it.

I noticed that vcl70.bpl is in the C:\windows\system32 directory, so that is pretty basic. Hope I do not have to re-install Delphi for I read somewhere here that de-installing can make the problem bigger... Plus, how could damage (access violation) extend thàt far from just adding a simple line.

BTW that line was:
if ColorDialog.Execute then LinkColor.Color := ColorDialog.Color;

Please help!

Thank you.
Ron dW

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2004-09-07 at 03:35:17ID21121289
Tags

violation

,

access

,

address

Topic

Delphi Programming

Participating Experts
3
Points
400
Comments
44

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. DELPHI 6 VCL
    hi experts, l'm looking for Crystal Report delpi 6 VCL. i do not have the Registration number for downloading from CrystalReport website coz i'am only need to test it. can anyone know where can i get Delphi 6 Crystal Report VCL without Registration Number ? thank you. any hel...
  2. How to solve the Eaccess violation
    I keep receiving the following error and almost always they include rtl70.bpl or coreide.bpl or some kind of important file which is stored in the systemroot of my windows xp computer, im an administrator so i thought i had access to the files which i installed myself, but d...
  3. Delphi 7 and Crystal Reports 10 VCL problem - Error:5…
    Hello, We are trying to implement Crystal Reports 10 VCL in a Delphi 7 application. All is ok when Crystal Reports 10 is fully installed on the machine. But when we try to setup the application at a customer (who of course hasn't the complete Crystal Reports environment i...
  4. Access violation at address 04E9FBAF in module 'bord…
    Hi, i had Borland C++ Builder 6 on my computer, and have installed Borland Delphi 6 today. After installing Delphi, the compiling in BCB6 throws the error "Internal Error EVA-1528" and after i click ok on this one, a second error appears, the one that's in the title...
  5. Access violation ... in module 'MSVBVM60.DLL'
    hi, i'm trying to use an acitveX from delphi. i didn't write this activeX but i know it was writen in vb6. i registered this activeX with: regsvr32 "C:\Windows\System32\theActiveX.ocx" i got : DLLRegisterServer in C:\Windows\System32\theActiveX.ocx succeeded i tr...
  6. Access violation ... in module 'MSVBVM60.DLL'
    hi, i'm trying to use an acitveX from delphi. i didn't write this activeX but i know it was writen in vb6. i registered this activeX with: regsvr32 "C:\Windows\System32\theActiveX.ocx" i got : DLLRegisterServer in C:\Windows\System32\theActiveX.ocx succeeded i tr...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: Ferruccio68Posted on 2004-09-07 at 03:44:29ID: 11995319

Maybe you made some modification in a vcl that use vcl70.bpl and on IDE loading cause the exception (like a call to a nil or something else) or simplyhave installed some new bugged vcl, but with these infos it's hard to find a quick solution.
I suggest to you to use MadExcept ( http://www.madshi.net/ ) to have a full log for these exceptions and understand where it occurs....

F68 ;-)

 

by: Ferruccio68Posted on 2004-09-07 at 04:39:52ID: 11995672

--> how could damage (access violation) extend thàt far from just adding a simple line.
-->if ColorDialog.Execute then LinkColor.Color := ColorDialog.Color;

For example if ColorDialog is nil at the first call (on ide loading) calling this line gives an AV

Try changing the line to

If Assigned(ColorDialog) then
   if ColorDialog.Execute then LinkColor.Color := ColorDialog.Color;

I don't know about this LinkColor.I assume that it is your vcl so it's already assigned, but take care of this also

F68 ;-)

 

by: Ron_de_WeijzePosted on 2004-09-07 at 04:48:39ID: 11995711

Thanks Ferrucio68, but I cannot even get that far, for loading the application (any one of them) doesn't even succeed. Starting Delphi 7 and opening the .dpr file (any) raises the errormessage. I am trying to apply MadExcept now but I hope it will intercept even that early.

Ron dW

 

by: Ron_de_WeijzePosted on 2004-09-07 at 05:08:15ID: 11995852

MadExcept says the error occurred in the IDE.
What should I make of the following report?

Madshi's Report:
===========
date/time         : 2004-09-07 14:06
computer name     : TOSHIBA
user name         : Ron de Weijze
operating system  : Windows XP Service Pack 1 build 2600
system language   : English
system up time    : 1 hour 52 minutes
program up time   : 8 seconds
processor         : Mobile Intel(R) Pentium(R) 4 - M CPU 1.90GHz
physical memory   : 488/1023 MB (free/total)
free disk space   : (C:) 4.03 GB
display mode      : 1024x768, 16 bit
process id        : $734
executable        : delphi32.exe
madExcept version : 2.7c
exception class   : EAccessViolation
exception message : Access violation at address 0083ACF0 in module 'vcl70.bpl'. Write of address 00000018.

main thread ($3c0):
0083acf0 vcl70.bpl       Controls TDockTree.RemoveZone
0083ab53 vcl70.bpl       Controls TDockTree.RemoveControl
00835ffe vcl70.bpl       Controls TWinControl.CMUnDockClient
00831a98 vcl70.bpl       Controls TControl.WndProc
00834c97 vcl70.bpl       Controls TWinControl.WndProc
0084e87d vcl70.bpl       Forms    TCustomForm.WndProc
0083bc63 vcl70.bpl       Controls TDockTree.WindowProc
00d244ae borlndmm.dll    Borlndmm SysGetMem
0083bc63 vcl70.bpl       Controls TDockTree.WindowProc
00831868 vcl70.bpl       Controls TControl.Perform
00835cba vcl70.bpl       Controls TWinControl.DoUnDock
003565e2 designide70.bpl Basedock TBaseDockHostForm.DoUnDock
008314c5 vcl70.bpl       Controls TControl.ManualFloat
0083138d vcl70.bpl       Controls TControl.ManualDock
00356465 designide70.bpl Basedock DestroyDockHosts
0050896a coreide70.bpl   Desktop  TDesktopState.Load
005084cf coreide70.bpl   Desktop  TDesktopStates.LoadDesktop
00503d42 coreide70.bpl   Filehist TClosedFile.Open
00844986 vcl70.bpl       Menus    TMenuItem.Click
00845e33 vcl70.bpl       Menus    TMenu.DispatchCommand
00846d46 vcl70.bpl       Menus    TPopupList.WndProc
00834914 vcl70.bpl       Controls TWinControl.MainWndProc
00846c95 vcl70.bpl       Menus    TPopupList.MainWndProc
77d4436f user32.dll               DispatchMessageA
0085568b vcl70.bpl       Forms    TApplication.ProcessMessage
008556c2 vcl70.bpl       Forms    TApplication.HandleMessage
008558f2 vcl70.bpl       Forms    TApplication.Run

thread $e70: <priority:-1>
7ffe0304 ???                  
77f5c292 ntdll.dll            NtSetInformationThread
77e72683 kernel32.dll         SetThreadPriority
4003c32a rtl70.bpl    Classes TThread.SetPriority

thread $b48: <priority:15>
7ffe0304 ???          
77f5c522 ntdll.dll     NtWaitForMultipleObjects
77e75eda kernel32.dll  WaitForMultipleObjectsEx
77e75fa5 kernel32.dll  WaitForMultipleObjects

thread $ab8: <priority:2>
7ffe0304 ???        
77d443b0 user32.dll  GetMessageA

modules:
00320000 designide70.bpl       7.0.8.1         C:\Program Files\Borland\Delphi7\Bin
003c0000 BRCIDE.DLL            7.0.4.453       C:\Program Files\Borland\Delphi7\Bin
00400000 delphi32.exe          7.0.8.1         C:\Program Files\Borland\Delphi7\Bin
00490000 coreide70.bpl         7.0.8.1         C:\Program Files\Borland\Delphi7\Bin
007b0000 vcl70.bpl             7.0.8.1         C:\WINDOWS\System32
00910000 vclactnband70.bpl     7.0.4.453       C:\WINDOWS\System32
00960000 vclide70.bpl          7.0.4.453       C:\Program Files\Borland\Delphi7\Bin
00a20000 tlib70.bpl            7.0.8.1         C:\Program Files\Borland\Delphi7\Bin
00aa0000 dcc70.dll             7.0.8.1         C:\Program Files\Borland\Delphi7\Bin
00bf0000 delphide70.bpl        7.0.4.453       C:\Program Files\Borland\Delphi7\Bin
00d10000 inetdb70.bpl          7.0.4.453       C:\WINDOWS\System32
00d20000 borlndmm.dll          7.0.4.453       C:\Program Files\Borland\Delphi7\Bin
020f0000 htmlide70.bpl         7.0.4.453       c:\program files\borland\delphi7\Bin
02120000 webdsnap70.bpl        7.0.4.453       C:\WINDOWS\System32
02170000 xmlrtl70.bpl          7.0.4.453       C:\WINDOWS\System32
02250000 stride70.bpl          7.0.4.453       c:\program files\borland\delphi7\Bin
02270000 proide70.bpl          7.0.4.453       c:\program files\borland\delphi7\Bin
02350000 delphipro70.bpl       7.0.4.453       c:\program files\borland\delphi7\Bin
023b0000 designdgm70.bpl       7.0.4.453       c:\program files\borland\delphi7\Bin
02420000 delphient70.bpl       7.0.4.453       c:\program files\borland\delphi7\Bin
02440000 delphiclxide70.bpl    7.0.4.453       c:\program files\borland\delphi7\Bin
02470000 qtintf70.dll          7.0.4.258       C:\WINDOWS\System32
02860000 clxdesigner70.bpl     7.0.4.453       C:\Program Files\Borland\Delphi7\Bin
02cc0000 direct70.bpl          7.0.4.453       c:\program files\borland\delphi7\Bin
02ce0000 wininet.dll           6.0.2800.1405   C:\WINDOWS\system32
02d80000 delphivclide70.bpl    7.0.4.453       c:\program files\borland\delphi7\Bin
02db0000 vcldesigner70.bpl     7.0.4.453       C:\Program Files\Borland\Delphi7\Bin
02e30000 DFWEDIT.DLL                           C:\Program Files\Borland\Delphi7\Bin
033c0000 MMD7Expt.dll          1.7.1.93        C:\Program Files\ModelMakerTools\ModelMaker\6.2\bin
03660000 idl2paswizardpkg.bpl  7.0.4.453       c:\program files\borland\delphi7\Bin
038e0000 iteide70.bpl          7.0.4.453       C:\Program Files\Borland\Delphi7\Bin
038f0000 itecore70.bpl         7.0.4.453       C:\Program Files\Borland\Delphi7\Bin
04130000 dcldbxcds70.bpl       7.0.4.453       c:\program files\borland\delphi7\Bin
04190000 rc70.bpl              7.0.4.453       C:\Program Files\Borland\Delphi7\Bin
041c0000 indy70.bpl                            C:\Program Files\Borland\Delphi7\Bin
042c0000 dbexpress70.bpl       7.0.8.1         C:\WINDOWS\System32
042f0000 dcldb70.bpl           7.0.8.1         C:\Program Files\Borland\Delphi7\Bin
04330000 vcldb70.bpl           7.0.8.1         C:\WINDOWS\System32
04380000 dsnapcon70.bpl        7.0.8.1         C:\WINDOWS\System32
043a0000 soaprtl70.bpl         7.0.4.453       C:\WINDOWS\System32
04430000 VclSmp70.bpl          7.0.0.188       C:\WINDOWS\System32
04450000 dbxcds70.bpl          7.0.4.453       C:\WINDOWS\System32
04460000 DBWEBXPRT.BPL         7.0.4.453       c:\program files\borland\delphi7\Bin
04490000 DCLIB70.bpl           7.0.4.453       c:\program files\borland\delphi7\Bin
044d0000 gds32.dll             6.5.0.28        C:\WINDOWS\System32
04540000 teedb70.bpl           7.0.4.453       C:\WINDOWS\System32
04550000 dclclxstd70.bpl       7.0.4.453       C:\Program Files\Borland\Delphi7\Bin
045a0000 dclsmpedit70.bpl      7.0.4.453       c:\program files\borland\delphi7\Bin
045c0000 applet70.bpl          7.0.4.453       c:\program files\borland\delphi7\Bin
045e0000 dclmlwiz70.bpl        7.0.4.453       c:\program files\borland\delphi7\Bin
045f0000 ibevnt70.bpl          7.0.0.188       C:\WINDOWS\System32
04600000 dclshlctrls70.bpl     1.0.0.0         c:\program files\borland\delphi7\Bin
04610000 vclshlctrls70.bpl     1.0.0.0         C:\WINDOWS\System32
04630000 dclIntraweb_50_70.bpl 1.0.0.0         c:\program files\borland\delphi7\Bin
04660000 Intraweb_50_70.bpl    1.0.0.0         C:\WINDOWS\System32
046d0000 IntrawebDB_50_70.bpl  1.0.0.0         C:\WINDOWS\System32
046f0000 dclRave70.bpl                         c:\program files\borland\delphi7\bin
04710000 Rave50VCLBE70.bpl                     C:\WINDOWS\System32
047f0000 Rave50CLXBE70.bpl                     C:\WINDOWS\System32
048e0000 dclofficexp70.bpl     7.0.1.569       c:\program files\borland\delphi7\Bin
04b50000 Package1.bpl          1.0.0.0         c:\program files\borland\delphi7\Projects\Bpl
04b60000 MMtest.bpl            1.0.0.0         c:\program files\borland\delphi7\Projects\Bpl
27000000 MsgInfo70.bpl         7.0.4.453       c:\program files\borland\delphi7\Bin
40000000 rtl70.bpl             7.0.8.1         C:\WINDOWS\System32
40220000 vclx70.bpl            7.0.4.453       C:\WINDOWS\System32
40260000 vcljpg70.bpl          7.0.4.453       C:\WINDOWS\System32
40280000 vclie70.bpl           7.0.4.453       C:\WINDOWS\System32
402c0000 vclhie70.bpl          7.0.4.453       C:\Program Files\Borland\Delphi7\Bin
40330000 dbrtl70.bpl           7.0.8.2         C:\WINDOWS\System32
40450000 visualclx70.bpl                       C:\WINDOWS\System32
40590000 websnap70.bpl         7.0.4.453       C:\WINDOWS\System32
40650000 inet70.bpl            7.0.4.453       C:\WINDOWS\System32
406a0000 dsnap70.bpl           7.0.8.1         C:\WINDOWS\System32
40700000 adortl70.bpl          7.0.8.1         C:\WINDOWS\System32
40850000 bdertl70.bpl          7.0.4.453       C:\WINDOWS\System32
40890000 dbx70.bpl             7.0.4.258       C:\Program Files\Borland\Delphi7\Bin

...

etc.

 

by: Ferruccio68Posted on 2004-09-07 at 05:38:44ID: 11996105

mmm... the AV comes at this line

0083acf0 vcl70.bpl       Controls TDockTree.RemoveZone

AFAIK the added line don't have nothing to do with this....

Seems that there's some error on IDE palette creating...what about your package? Are there docked forms or added menus to IDE or something else?

Note that could simply be a bpl corruption (maybe due to electrical failure or other unknowed matters)....

 

by: Ron_de_WeijzePosted on 2004-09-07 at 05:48:55ID: 11996183

The VCL has not been changed and came with Delphi, no added menu's.
How to handle a bpl corruption? Reinstall Delphi?

 

by: Ron_de_WeijzePosted on 2004-09-07 at 05:59:10ID: 11996252

Went ahead and started Repair which is on the install disks.

 

by: Ron_de_WeijzePosted on 2004-09-07 at 06:08:50ID: 11996327

The repair module looked for corrupted files and did not find any, so intallation was complete right away. How can I see if a bpl file is corrupt? Or what else could be the problem...

 

by: Ron_de_WeijzePosted on 2004-09-07 at 06:49:45ID: 11996709

Raised the points..

 

by: Ferruccio68Posted on 2004-09-07 at 08:09:26ID: 11997582

Was busy on job....
Let's try by another way: what happens if you uninstall the last modified VCL? And what about if you remove the already mentioned line?

 

by: BlackTigerXPosted on 2004-09-07 at 10:53:17ID: 11999238

I have had that happen to me, but I usually just restart Delphi and fixes the problem, if not, rebooting the machine does it for sure...

 

by: Ron_de_WeijzePosted on 2004-09-07 at 11:24:41ID: 11999555

Ferrucio:
Thanks I will look into that. Didn't know that it was possible to just un/reinstall the VCL. Though that the whole of Delphi had to be uninstalled to do that. And I did try the effect of removing the mentioned line but that didn't fix it.

BTX:
I cold booted the machine but the problem returned in the exact same way.

 

by: Ron_de_WeijzePosted on 2004-09-07 at 12:50:41ID: 12000328

Problem solved, the hard way however, by reinstalling Delphi as a whole (couldn't find out how to just reinstall VCL).

Of course, this may happen again, so if anybody knows what may have been another reason, please let us know!

Ferruccio and BlackTigerX, thank you guys, for your effort!

Ron dW

 

by: Ferruccio68Posted on 2004-09-07 at 12:58:34ID: 12000383

Glad to have helped you :)

 

by: Ron_de_WeijzePosted on 2004-09-07 at 13:01:15ID: 12000403

For the record...

Just running what I had, produces the following exception:

Project raised exception class EInvalidOperation with message 'Cannot focus a disabled or invisible window'. Process stopped.

 

by: Ferruccio68Posted on 2004-09-07 at 13:06:20ID: 12000448

And what about madexcept log in this case?

 

by: Ron_de_WeijzePosted on 2004-09-07 at 14:50:54ID: 12001339

Ferruccio, I don't know what's wrong but I get the Delphi help file all the time, not the madExcept report, since I reinstalled Delphi.

 

by: Ron_de_WeijzePosted on 2004-09-07 at 15:03:34ID: 12001409

madExcept version : 2.7c
exception class   : EAccessViolation
exception message : Access violation at address 0082A534 in module 'vcl70.bpl'. Write of address 00000018.

main thread ($a60):
0082a534 vcl70.bpl       Controls           TDockTree.RemoveZone
0082a397 vcl70.bpl       Controls           TDockTree.RemoveControl

 

by: Ferruccio68Posted on 2004-09-07 at 15:50:21ID: 12001710

that's the same that posted above, so the error is in the package containing your component....

If you want you can send to me the package source to my email (see my profile) tomorrow (here's 1.00 AM and i'm going to sleep) so i can try to debug it...

F68 ;-)

 

by: Ron_de_WeijzePosted on 2004-09-07 at 16:09:56ID: 12001817

Thanks very much Ferruccio.

Just found out that the problem is directly caused by trying to use desktops I created. A series of them and they all worked fine until yesterday. In retrospect, I see that it must have been the latest one that I created just before hell broke loose yesterday. Now all of them are corrupted, but the application runs again.

Still investigating..

 

by: Ron_de_WeijzePosted on 2004-09-08 at 06:00:06ID: 12005800

The problem is showing its ugly face again. This time I will not reinstall Delphi!!

It returned after running the program, and the program loading the (default file) data, got stuck in an endless loop and wasn't responding any more. CTRL-ALT-DEL was all I could do towards Delphi. Then, after loading Delphi, and the program (not running it), I saved the desktop. That is, saved it from the reinstalled environment, to overwrite the old one that directly caused the problem in the old one. Then, there the old devil reappeared.

*&^%$$##@!

 

by: Ron_de_WeijzePosted on 2004-09-08 at 06:36:37ID: 12006190

Found a solution:

-----
Comment from geobul
Date: 01/03/2002 12:27AM PST
Comment  
Hi,
Delphi IDE error messages can be ignored! Select 'Tools-Debugger Options' from main menu. Go to the 'Language exceptions' page and uncheck 'Stop on Delphi Exceptions'. Press 'OK' button. That's all.
Regards, Geo

http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20250365.html?query=%22delphi+ide+error%22&clearTAFilter=true
-----

 

by: Ferruccio68Posted on 2004-09-08 at 06:43:36ID: 12006261

mmm...that's a work-around, not a solution :))
Doing so you'll ever have a stop on every exception, not just on ide exception....btw that's a good WA....:))

 

by: Ron_de_WeijzePosted on 2004-09-08 at 06:48:02ID: 12006317

You're right, that's a workaround. So if you find a better way, please share!

Thanks.
Ron dW

 

by: Ferruccio68Posted on 2004-09-08 at 06:52:47ID: 12006373

Still looking for, be sure that if it's found it'll be shared :)

F68 ;-)

 

by: Ron_de_WeijzePosted on 2004-09-08 at 07:06:29ID: 12006528

Error reports automatically generated and sent to Microsoft lead me to...

Downloading Windows XP Service Pack 2 (update 1 of 1)...

I am sure I already had installed this, but there seems to be a Service Pack recently released as well that is different from this one (doesn't carry the Windows XP prefix) so perhaps that was the one I installed. Pretty confusing! Looks like hiding serious bugs.

 

by: Ron_de_WeijzePosted on 2004-09-09 at 03:58:55ID: 12014976

The problem is not solved. The workaround sometimes does and at other times does not work (uncheck Stop on Delphi exceptions). Re-installing Delphi does work however upon rebooting the old symptoms return.

I will re-open this problem under a new name 'Delphi IDE error' (new points) and redescribe it with the extra info I have now.

Ron dW

 

by: Ferruccio68Posted on 2004-09-09 at 04:09:31ID: 12015057

Just re-reading the thread i'm looking on this:
--> Just running what I had, produces the following exception:

Project raised exception class EInvalidOperation with message 'Cannot focus a disabled or invisible window'. Process stopped.

This means that there's a try to focus something directly in onshow or oncreate....
So let's skip the bpl failure and let analize the project....
Maybe in one of your desktop there's a saved situation with an already created form, and a call from somewhere to it in design time. On restart the Desktop that come try to reproduce the situation but as it's just opening now that call fails as maybe the situation isn't anymore reproducible (some not available/visible form on opening), so the AV comes up.

 

by: Ron_de_WeijzePosted on 2004-09-09 at 04:18:52ID: 12015100

I deleted the suspected desktops and saved the ones created in the new environment (windows update, reinstalled Delphi, updated Delphi, new session). That didn't help.. Perhaps deleting them is only visual but not real?

 

by: Ron_de_WeijzePosted on 2004-09-09 at 04:47:44ID: 12015248

Hi Ferruccio,

I believe it cannot be a Delphi exception since the problem occurs immediately upon loading the program, before I can hit Run.

Let me tell you some more about the background. This program was developed professionally in 97-98, with the latest Delphi versions of those years. That means warnings regularly occur, like pointers that cannot really be trusted, yet no problems building, compiling and running until day before yesterday.

Obviously the code cannot be loaded. If it is true that the VCL is not upward compatible from Delphi 6 or so, Borland has a problem. Would you know anyone I could contact about this and how? The Borland site is very unfriendly.

Thanks,
Ron.

 

by: Ferruccio68Posted on 2004-09-09 at 05:06:29ID: 12015378

well, first read this comment from rllibby (one of the most appreciated delphi experts by me)

As to how the file got corrupted, its hard to say.

If and when it does get corrupted, it can cause a mess though. Many of the settings in there are for window locations/sizes, and those can cause items to appear off screen, or not appear at all. Worse even, some of the settings (those that end in "Data") are hexadecimal values used by the ide when the desktop file is loaded. If those values are incorrect, it can cause access violations, hanging of the ide on startup, etc...

It would *appear* that the ide does little, to no validation of the hex data before attempting to use it. For example, changing the BottomPanelData value for the EditWindow0 setting to include non hex characters caused my IDE to not appear at all. The few windows that did appear would not paint.

It doesn't happen often, but it does get corrupted from time to time. Most likely (in my case anyways) from forced shutdowns when debugging an application that ends up hanging the ide.

In my situation, I create a backup of my standard dst/dsk files so that if problems do arise, I can close the idea, restore the copies, and then its good to go.

Hope this helps,
Russell

 

by: Ron_de_WeijzePosted on 2004-09-09 at 05:21:05ID: 12015478

Thanks Ferrucio!

I could use old hex data files that possibly have not changed or should not have changed. But the older versions do not load either. Nothing loads!

New fact:
Starting Delphi, starting New Project, *also* raises the AV!!

Hypothesis:
I purchased and run Delphi 7 Studio. I downloaded patch/upgrade Delphi 7 Enterprise because 'about' sayd that is what was installed in the first place (so I purchased Studio but got Enterprise). Perhaps the main module for Studio and Enterprise is the same, especially since the download patch/upgrade is equally big for both (11,179 kb). However, if they are not exactly the same, that could explain the problem.

Still, of course, this is unlikely for I have run the 'wrong' patch for a long time.

Action:
For the third time in two days now I will reinstall Delphi and run the patch/upgrade 7.1, this time the one for Studio, not for Enterprise.

There is nothing else I can do, is there?

 

by: Ferruccio68Posted on 2004-09-09 at 05:26:22ID: 12015514

For what we know until now seems that there's nothing else to do.
Your hypoth is quite realistic, but if this is the scenario well, peraphs there's something strange in Borland Stuff develepores mind (i hate how they've build Delphi 8 for .net)...

BTW a try posting a new Q. in Ex-Ex could give more chances....

 

by: Ron_de_WeijzePosted on 2004-09-09 at 07:13:31ID: 12016723

Ferruccio68, I hope this did not take your points away, for you helped me and deserve what you already got. We didn't know the workaround would 'expire'.

Ron dW.

 

by: Ferruccio68Posted on 2004-09-09 at 07:16:22ID: 12016752

Ron_de_Weijze,
if you've asked it for me (as i'm the only participant) and you'd like to raise points for me, let me say that this is not needed.
If this is the case i thank you very much, but i repeat that it isn't needed...
You could give some feedback if you want, the raise isn't necessary :))

F68 ;-)

 

by: Ferruccio68Posted on 2004-09-09 at 07:21:09ID: 12016816

Maybe i've misunderstood...

--> Ron_de_Weijze contacted me via eMail
and want to raise the points for this question

Maybe your intention was to re-open the Q. to let it be available for other Members suggestions.
If so please don't take care about my last comment...

F68 ;-)

 

by: Ferruccio68Posted on 2004-09-09 at 07:28:08ID: 12016912

BTW
--> Ferruccio68, I hope this did not take your points away
Of course, unaccepting an answer take points away...but don't worry, i don't care about this :)

 

by: Ron_de_WeijzePosted on 2004-09-09 at 11:39:16ID: 12019855

Thank you Kretzmar,

No I did not install any component before the problem arose.

As mentioned before, even loading a new project instead of my own application (or one of its previous versions) caused the Access Violation problem.

Then, after closing Delphi, the errormessage became: "The instruction at .... referenced memory at .... The memory could not be "read". Click OK to terminate the program."

Since the problem occurs even before any program is loaded or remains after Delphi is closed, I started re-building the environment from scratch to find out as close as I can get, where the AV first rises.

For the record:

0. Installed latest Windows XP patches/updates
1. Deinstalled Delphi
2. Reinstalled Delphi in a non-default directory
3. Installed Delphi patch/upgrade 7.1 Architect
4. The program opens, no problem
5. Using the program: "Project projectname.exe raised exception class EInvalidOperation with message ‘Cannot focus a disabled or invisible window’. Process stopped. Use Step or Run to continue."
6. The debug setting "Stop on Delphi Exceptions".

So far so good.

(Do pray.)

 

by: kretzschmarPosted on 2004-09-09 at 13:15:01ID: 12020882

>(Do pray.)
i do, good luck ;-)

 

by: Ron_de_WeijzePosted on 2004-09-15 at 03:35:42ID: 12063031

Thank you for praying.
Here are your points back.
Don't know what did it, but is was solved.

Thanks all,
Ron dW

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...