Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > Apps

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 09-05-2001, 05:27 AM
ocornwall ocornwall is offline
Junior Member
 
Join Date: Apr 2001
Posts: 3
Default HELP! HELP! My apps works fine. I get AV's if recompile and run.

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
Reply With Quote
  #2  
Old 09-05-2001, 05:39 AM
Eneko Alonso Eneko Alonso is offline
Senior Member
 
Join Date: Mar 2001
Posts: 167
Default RE: HELP! HELP! My apps works fine. I get AV's if recompile and run.

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 >)-
Reply With Quote
  #3  
Old 09-05-2001, 06:37 AM
mrpmorris mrpmorris is offline
Junior Member
 
Join Date: Sep 2001
Posts: 14
Default RE: HELP! HELP! My apps works fine. I get AV's if recompile and run.

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)
Reply With Quote
  #4  
Old 09-05-2001, 07:36 AM
Prophet Prophet is offline
Senior Member
 
Join Date: Jun 2001
Posts: 114
Default RE: HELP! HELP! My apps works fine. I get AV's if recompile and run.

==================================================
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
====================
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:50 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.