I've attached the related unit. I encounter "access violation" when I click
Button1 for more than 3 times.
TIA,
Roshanak.
Arjang Assadi <[EMAIL PROTECTED]> wrote:
Assuming that you are not using any Objects then there is no need to recycle
variable.
Is there any chance of sending the source code? cause debugging code is hard
enough when it is right on front of you, but it is even harder when it is
not.
Regards
Arjang
On 2/6/06, Roshanak Farhoodi wrote:
>
> Dear Mr. Arjang,
>
> I don't think accessing an unassigned variable is the cause of the
> problem. To ensure that, this time I press that button 3 times with the same
> options, every thing was ok, but the next time exactly with the same option
> "access violation" occurs. if the problem is concerned with accessing
> something that is not assigned, the program shouldn't continue the
> calculations 3 first times.
> whould u please explain me how can I recycle my used variables (they r
> mostly arrays of doubles and strings) at the end of that routine 2 ensure
> that they r free 4 the next calculations?
>
> thanks in advance,
> Roshanak
>
> Arjang Assadi wrote:
> Somewhere in the code an unassigned variable is been accessed hence the
> access violation,
> you might also want to recycle your objects to conserve memory and
> resources.
> BTW there is no garbage collection mechanisms in Delphi,
>
> Arjang
>
> On 2/4/06, Roshanak Farhoodi wrote:
> >
> > Dear all,
> >
> > I've encountered "access violation" error for the first time when I was
> > testing a program which has a lot of (really a lot!!!) variables,
> > assignments and calculations. 2 b more specific, one of the buttons of
> my
> > program, has a lot of calculations behind, the user can set some
> parameters
> > and then press it 2 see the results of calculations. but the program
> > tolerates the button 2 b pressed only 3 times, after that "access
> violation"
> > exeption will b raised.
> > May it be concerned with low virtual memory or what??? if it is really
> due
> > 2 shortage of virtual memory, when handeling such heavy programs what is
> the
> > best idea to manage or free the used up memory? Is there any "garbage
> > collection" or another similar policy as there exists in JAVA?
> >
> > So many thanks in advance 4 ur any comment,
> > Roshanak F.
> >
> >
> > ---------------------------------
> > Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
> > _______________________________________________
> > Delphi mailing list -> [email protected]
> > http://www.elists.org/mailman/listinfo/delphi
> >
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://www.elists.org/mailman/listinfo/delphi
>
>
>
> ---------------------------------
> Yahoo! Mail - Helps protect you from nasty viruses.
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://www.elists.org/mailman/listinfo/delphi
>
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi