![]() |
|
#1
|
|||
|
|||
|
I have an app which has been working for months. I recently attempted to install Delphi 5.0 Update Patch #1 (UP1) and I recently tried downloaded CoolTray, PSQRFilter from this site.
I have an old copy of my code which works fine. I run the source code in Delphi 5.0 and It works well. If I make any changes and recompile I get Access Violation whenever the application create any form other than the main form. I have removed all of the recent installs (CoolTray, PsQRFilter and UP1) and I still have the same problem. Why would I get AV's when any form other then the Main Form is created. I have tried manually creating the forms with the same problem. Any ideas? Thanks Orville |
|
#2
|
|||
|
|||
|
I have no idea.
When I have some AV's, I close Delphi, and restarts it. If don't works fine, reboot the computer... Finally, if anything works, uninstall and reinstall Delphi. Sorry. ___.:* SehnOken *:.___ -(< from Spain >)- |
|
#3
|
|||
|
|||
|
I had the same problem after upgrading to Delphi 5.1
I just uninstalled Delphi, and then re-installed 5.0 without applying the 5.1 patch. Pete http://www.HowToDoThings.com (Delphi Articles) http://www.StuckIndoors.com/delphi (Open-source components) |
|
#4
|
|||
|
|||
|
==================================================
Possible Problem #1: ================================================== Are you creating the form instances correctly as in the following format: var MyForm : TForm // declair the form variable Begin MyForm := TForm.Create(nil); // create the instance End; And when destroying the form you are using MyForm.Close; Are you destroying the forms when they are no longer needed? If you dont there will be a memory leak. ================================================== Possible Problem #2: ================================================== Sometimes when you install custom components you download from this site, or others, they include examples with them. And sometimes the examples are named like delphi default project names, ie: PROJECT1, Unit1.pas, Unit2.pas etc. If they are names UNIT1.pas or PROJECT1 and you these files exist within the delphi envirment path this can cause a load of problems for delphi and can be hard to track down. Make sure that no project has a file UNIT1.PAS in any of the delphi envirment paths... ie: Lib, or Bin subfolders.. I dont know if any of these will help, but might be worth a try. ==================== Prophet ICQ: 51173027 ==================== |
![]() |
| Thread Tools | |
| Display Modes | |
|
|