Scenario:
Delphi did a non-normal shutdown.
When I restarted I got the messages "Could not find xxxxx.bpl - Would you like to load this next time?" (NOTE: not exact language of message; but close). It did this on a couple files.
Unfortunately I said "No - Don't Load on next Startup" and also did not note the specific bpl file names. I do recall they were in the CodeGear directory. This was stupid/lazy on my part.
Delphi loads and compiles but there is no Debugging available (basically all the options under the Run menu are disabled).
Under Tools->Options->Debugger Options there is no CodeGear Debuggers.
So basically I have totally disabled the debugging. Anyone know how I can get it back?
First check that you did not destroy critical elements in the Windows PATH environment variable. That will prevent core elements of the IDE from loading, even if the registry settings are correct.
Next, try saving this as bdsfix.reg then run it by double-clicking it:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Borland\BDS\5.0\Known IDE Packages]
"$(BDS)\\Bin\\asmview100.bpl"="Assembly Browser Package"
"$(BDS)\\Bin\\codetemplates100.bpl"="(Untitled)"
"$(BDS)\\bin\\coreproide100.bpl"="Core IDE Pro Package"
"$(BDS)\\Bin\\dbkdebugide100.bpl"="(Untitled)"
"$(BDS)\\bin\\dbkdebugproide100.bpl"="(Untitled)"
"$(BDS)\\Bin\\dotnetcoreide100.bpl"=".NET Core IDE Package"
"$(BDS)\\bin\\exceptiondiag100.bpl"="(Untitled)"
"$(BDS)\\bin\\fileexplorer100.bpl"="(Untitled)"
"$(BDS)\\bin\\historyide100.bpl"="(Untitled)"
"$(BDS)\\Bin\\htmlhelp2100.bpl"="Borland HtmlHelp Viewer"
"$(BDS)\\bin\\idefilefilters100.bpl"="IDE File filters"
"$(BDS)\\bin\\plugview100.bpl"="Pluggable Tree View Package"
"$(BDS)\\Bin\\projecttargets100.bpl"="(Untitled)"
"$(BDS)\\bin\\refactoride100.bpl"="Borland Core Refactoring Package"
"$(BDS)\\Bin\\startpageide100.bpl"="Borland Start Page IDE Package"
"$(BDS)\\bin\\todoide100.bpl"="Borland ToDo"
"$(BDS)\\Bin\\delphidotnetcore100.bpl"="(Untitled)"
"$(BDS)\\Bin\\DataExplorer100.bpl"="(Untitled)"
"$(BDS)\\bin\\htmide100.bpl"="(Untitled)"
"$(BDS)\\bin\\htmltidy100.bpl"="(Untitled)"
"$(BDS)\\bin\\mlcc100.bpl"="(Untitled)"
[HKEY_CURRENT_USER\Software\Borland\BDS\5.0\Known IDE Packages\Delphi]
"$(BDS)\\Bin\\delphicompro100.bpl"="(Untitled)"
"$(BDS)\\Bin\\delphicoreproide100.bpl"="(Untitled)"
"$(BDS)\\Bin\\delphide100.bpl"="Delphi Win32 IDE Personality"
"$(BDS)\\Bin\\delphierrorinsite100.bpl"="Delphi Error Insite Package"
"$(BDS)\\Bin\\delphipro100.bpl"="(Untitled)"
"$(BDS)\\Bin\\comcore100.bpl"="(Untitled)"
"$(BDS)\\Bin\\delphivclide100.bpl"="Delphi VCL Designer IDE Package"
"$(BDS)\\Bin\\vclmenudesigner100.bpl"="(Untitled)"
"$(BDS)\\Bin\\win32debugide100.bpl"="(Untitled)"
"$(BDS)\\Bin\\win32debugproide100.bpl"="(Untitled)"
"$(BDS)\\Bin\\iteidew32100.bpl"="(Untitled)"
"$(BDS)\\Bin\\TGIDE100.bpl"="Borland Together IDE Integration"
"$(BDS)\\Bin\\unittestide100.bpl"="(Untitled)"
Second attempt, if the above does not work is to back up (export to .reg file from regedit) the following key and then very carefully, rename this registry key:
HKEY_CURRENT_USER\Software\Borland\BDS\5.0 (Delphi 2007 specific)
I recommend renaming it to
HKEY_CURRENT_USER\Software\Borland\BDS\4.0 (Makes it invisible to 2007 but easily recoverable)
For more recent delphi versions, look under HKEY_CURRENT_USER\Software\Codegear or HKEY_CURRENT_USER\Software\Embarcadero for a BDS sub-folder, and then a number, XE is 8.0 or XE2 is 9.0.
This will reset your local login account's delphi settings to factory install defaults.
You can add back in the contents of `HKEY_CURRENT_USER\Software\Borland\BDS\5.0\Known Packages' to get back your additional third party packages.
Update The OP was actually missing the file dbkdebugide100.bpl
Related
I am attempting to install the JCL library into Delphi RAD Studio 11. Git placed the jcl tree in my Users directory (say C:\Users\xxx); I followed instructions and made sure I updated the modules, etc.
I then attempted to execute the install.bat file, located in the C:\Users\xxx\jcl\jcl directory. When I did that I got a message to the effect that my version of RAD Studio/Delphi does not support command line compiling. That's fine, I simply opened the JDIInstaller.bdsproj (located in the C:\Users\xxx\jcl\jcl\installer folder) with RAD Studio and built it, successfully.
I then tried running the project from within RAD Studio, but I couldn't, I got an error message telling me to shut down all running instances of Delphi. Instead, I ran the EXE file directly from the C:\Users\xxx\jcl\jcl\bin folder; it ran to completion and said the installation finished. So far, so good. I should note that the JCL installer set the BPL path to C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl and the DCP path to C:\Users\xxx\jcl\jcl\lib\d28\win32.
The issue is this: When I then go to open RAD Studio, I get a number of messages like below. The text of the error message is:
Can't load package C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl\JclBaseExpert280.bpl.
The specified module could not be found.
Do you want to attempt to load this package the next time a package is loaded?
This dialog is repeated an additional six times (i.e. there are a total of seven messages). The file names are as follows (they all end with "Expert280.bpl", so I'm just giving the beginning part): Debug, FavoriteFolders, ProjectAnalysis, Repository, JCLSIMDView, JCLStackTraceViewer.
If I open Components->Install Packages in the RAD Studio IDE, the seven files appear in the Design Packages list, but unchecked. They all appear as "File C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl" followed by the specific file name.
I checked, and the files exist in that location, but I know from my research that the message can be misleading; i.e., the message is returned by Windows which may be looking for a support file.
I don't know where to go from here.
I should note that previously I attempted to install JCL/JVCL into RAD Studio 2010 and initially got the same error message, but solved it by using a more recent version of JCL. However, there IS no more recent version of JCL that I can find.
Of course, it may be this cannot be done; i.e. install JCL/JVCL into Alexandria. Any information whether this is the case and, if not, what I might try would be appreciated.
Has anyone had any success installing the Advantech DAQNavi components in Delphi 10.3 or 10.4 ?
The big problem is that I cant find a detailed step by step explanation of how to install activex components into Delphi 10.3 or 10.4.
I pay embarcadero for support but their response is "Ask Advantech" !
I have installed the Advantech DAQNavi ActiveX components into Delphi 10.3 and everything appears to go OK without any issues but If I then add them to a form nothing shows on the form. The components appear in the structure list and I can edit them that way, the same applies if I open a project created with an earlier version of Delphi that uses the Advantech ActiveX components.
The fact that something has not worked correctly during the install worries me and I dont feel comfortable compiling projects using these components with this version of Delphi.
Following is a step-by-step guide to installing an ActiveX component for which you have a type library in Delphi Sydney (v.10.04).
Assuming you have a drive D: (I have never trusted Windows with saving important work on its boot drive), create the folder d:\D104, and 2 subfolders below it, d:\D104\Units and d:\D104Pkg.
Start the Delphi IDE if not already running, or do a Close All if it is.
Goto Component | Import Component in the IDE main menu.
Select your type lib from the pop-up
Click Next and set Palette Page to "My Imports"
Click Next and set the radio button to Install to New Package.
Click Next and set the Package name to e.g. D:\d104\Pkg\MyPackage.dpk and fill in the Description box as you think.
Click Finish. The IDE will generate
a file in D:\D104\Units named like MyTypeLib.Pas (but see the comment below step 9) and
the file D:\D104\Pkg\MyPackage.dproj
It will then attempt to compile D:\D104\Pkg\MyPackage.Bpl, which is the package that you need to install in the IDE to have the component(s) in your typelib show up on the MyImports tab of Delphi's Component Palette. Btw, a .Bpl file is a special sort of Dll which, as well as your components, contains some "behind the scenes" code to help .Bpl files get along with one another and the IDE, including memory-sharing.
Assuming the compilation generates no errors, go to Component | Install Packages in the IDE and use the Add button in the pop-up to add D:\D104\Pkg\MyPackage.Bpl and you're done.
If the compile in step 9 doesn't appear to have done anything, it's most likely because the BPL has been generated to the wrong place. Find it and delete it (because otherwise it will come back to haunt you), then:
Open D:\D104\Pkg\MyPackage.dproj as a project in the IDE, then from the IDE's main menu, click Project ! Project Options & on the Project pop-up, select the
"Delphi Compiler" tab, and on the right, set the package Output Directory to D:\D104\Pkg
and click Save, then re-compile the project and use Component | Install Packages to install the .Bpl file.
=================================
Fwiw, in the D5/D6/D7 era, adding components to the IDE was much simpler (and IME less error-prone) because you could do the entire process using a stand-alone Package Editor.\Units
Embarcadero have now looked into it and responded :
"It is bug... it was a fix, for another bug this is one of those good intentions paving fixes."
Apparently the bug simply prevents the control appearing on the form at design time and does not affect the operation of the OCX.
I just upgraded from Delphi 10.3.1 to Delphi 10.3.2. I exported the migration settings so I could import them immediately after the upgrade was completed.
Unfortunately the "migration settings" does not include the MRU (Most Recently Used) list of Delphi projects and files I had been working with within the 10.3.1 IDE.
It's probably too late now because I did a complete uninstall of Delphi 10.3.1 before doing the install of Delphi 10.3.2 as per Embarcadero's instructions. So I'm asking this for upgrades I will be doing going forward.
Is there a way to export the MRU list from the Delphi IDE so it can be imported after an upgrade?
The list of Closed Files and Closed Projects is included in the Migrations Settings export file.
Simply open this file with an XML friendly text editor and look for these two sections:
<SettingGroup Name="Closed Files" Selected="true">
<SettingGroup Name="Closed Projects" Selected="true">
The reason I suggest an "XML" friendly text editor such as Notepad++ is this; I tried opening the migration settings file within the Delphi IDE and got and error message.
Error - "One or more lines were too long and have been truncated"
Unfortunately you have to open the "Closed Projects" one at a time from within the IDE to rebuild this list. In reality it only takes a few minutes to do and it get's the IDE's MRU list updated.
Here is the problem I've met:
Working in BDS 2006 IDE, my older computer gone, new ( i7 mount ) has been built and it has Windows 7 Ult OS 64bit, where 2006 was installed and QuickReports Pro as well as eDocEngine, FIB+, TMS, LMD, ZEOS & DB Comparer Component Packs - I use them in my products.
On computer I have Office 2010 installed as well, by default in 32bit version and Adobe CS6. That's it.
After installation I tried few times reinstall RAD 2009 and anyway, always the same problem, to simplify it is 100% reproducable like that:
Create new Delphi VCL Forms application ;
Click File / New / Other and goto, say, "Delphi files" and select Frame or DataModule. When new file is created, all the time we have message:
"Stack overflow - save your work and restart Delphi for Microsoft Windows"
After that IDE set in bad state and next F12 ( show VCL designer) closes Delphi with General Error.
Any idea what happens?
As I said, I tried few time uninstall - install 2006, start in any personality, use / do not use any of the updates or IDE fixes from Andy's site, nothing helps.
Any help would be greatly appreciated.
You can try running a second instance of the IDE in the debugger.
Create an empty dll or package project.
Open Run > Parameters
Set the host application to $(BDS)\bin\BDS.exe
Then just hit F9 to run the second instance of the IDE in the debugger. After that just follow the steps to reproduce the problem and wait for the exception. If all goes well you'll get a complete call stack to step through.
Note: You may see various other exceptions occurring as the IDE loads. These are normal and can usually be ignored.
Also you didn't mention what version of Windows was on your old machine. If it was Windows XP Uwe could be right. XP was a little more lax on security by default than Vista or 7. The new default is to restrict write access to any folder under Program Files. If that turns out to be the problem you can adjust the write permissions for $(BDS) for whatever user account you use for development.
Delete de PackageCache in Embarcadero registry entries. Its not a complete solution but worked for me.
Got that from here: http://qc.embarcadero.com/wc/qcmain.aspx?d=118669 (last answer).
I have no BDS 2006 at hand, but is it possible that the default folder for new projects is located below the Program Files folder? In that case there might be no write access to that folder.
Virtual treeview by Mike Lischke seems so popular on the web and as third party component. I just downloaded version 4.8.7 on my machine.
I have Delphi 2010 and Delphi 7.0 in 2 partitions.
Aftter clicking installer of virtual treeview, a log file prompts, saying it has been installed successfully.
I check Delphi 2010, yes, it is on component palette showing 3 controls.
But when I start Delphi 7.0, IDE prompts 'Can not load VirtualtreesD7.bpl...'. I ignore it, and find that Virtual treeview design time package is in list but UNCHECKED. If I try to check it, again it promts "Can not load virtualtreesD7...".
I search whole Disk and find a VirtualTreesD7D.bpl, and manually add it in design time package list. It is on palette with 3 controls.
I tested it quickly and exit Delphi 7.0. But when I restart Delphi 7.0, again it prompts "Can not load VirtualtreesD7.bpl...", it is again not on palatte and not Checked in design time package list.
This is very simple question. Can you let me know how to solve it?
Thank you very much in advance.
Edit:
Thanks for comments.
I tested your comments, but not work.
New problem:
If I uninstall virtual treeview by clicking unins000.exe and reinstall it only in Delphi 7.0, the installer prompts in the last screen ''...completed.." and no error prompts. When I start Delphi 7, the virtual treeview design time package is not in package list. This is even worse than the last time (last time it is in package list but not checked).
I check very carefully one line by one line of that log file, it says:
...
...
VirtualTreesD7.dpk(39)
VirtualTreesD7.dpk(39)
VirtualTreesD7.dpk(41)
VirtualTreesD7.dpk(43)
**VirtualTreesD7D.dpk(32) Fatal: Required package 'VirtualTreesD7' not found**
Why?
Why it does not successfully install and does not prompts the error in installation in the last install screen.
How to solve this "Fatal...not found" problem.
Thank you all for help.
New Edit: (Is this Answer?)
Thanks for your help and suggestion first.
I take 2 hours to test and find a possible solution. It works on my machine and it can be installed in Delphi 7.0.
Steps:
1. uninstall virtual treeview by clicking unins000.exe from Delphi 7.0 ( you can separately install virtual treeview in Delphi 2010)
2. clicking newly downloaded VirtualTreeview setup 4.8.7.exe, install it in Delphi 7 folder, do not install it in default...Rad..path. Important: INGNORE ALL ERROR PROMPTS DURING INSTALLATION (INCLUDING ERROR PROMPT IN THAT LARGE INSTALLATION LOG FILE).
3. Go to $\Virtual Treeview, right click VirtualTreesD7D.dpk, select Open with Delphi 32 development environment. A window prompts for you to compile. JUST CLICK COMPILE, DO NOT CLICK INSTALL.
4. Go to Component -> Install Packages. Go to $\Bpl folder and manually add VirtualTreesD7D.bpl into Design Package. The three controls will appear in Palette.
5. Go to folder $\Bpl and YOU MUST COPY VirtualTreesD7.bpl (NOT VirtualTreesD7D.bpl) INTO $\Bin folder.
6. Close Delphi 7 and restart it, you will find that this component is on Palette and in Package list, it is in Design package list and CHECKED.
I personally feel that the installer of Virtual treeview needs improvements to free users from such trouble and test in installation. The installer needs rewrite.
This is my case of installation. I do not know if it can be generalized to all users.
Thank you all.
The IDE uses LoadLibrary (actually, LoadPackage) to load packages for components that are installed. This means that it follows the same logic for where it looks for files that LoadLibrary does.
The problem is that the IDE can't find the package using LoadLibrary's search logic - see the Remarks section here. So the solution is to add the folder to Delphi's Library Path (Tools->Options->Environment Options->Delphi Options->Library - Win32), or move it somewhere on the system PATH.
Ensure you have the folder where the virtualtrees.pas (\source) is located in the environment search path.
You may manually need to install the *.dpk file for Delphi 7. Open the D7.dpk, compile then open and install the D7D.dpk (Runtime first then Designtime package)
Haven't done it on Delphi2010 w/ Delphi7, but installing with just Delphi7 is fine.
*edited