| View previous topic :: View next topic |
| Author |
Message |
mustafa korkmaz Guest
|
Posted: Thu Dec 21, 2006 9:13 am Post subject: windows 2003 server auto close |
|
|
TForm1 = class(TForm)
..........
public
myarray: array[ 1..10 ] of integer;
end;
procedure TForm1.Button1Click(Sender: TObject);
var i: integer;
begin
for i := 1 to 10000 do myarray[ i ] := i;
end;
When I press to button1 this program is being closed by windows 2003 server.
Can you give me so program code example that closed by windows 2003 server when you run it?
I want to learn when does win.2003 server closes the program? I want to run and see so programs.
Give me example codes.
Thanks. |
|
| Back to top |
|
 |
Matt M Guest
|
Posted: Thu Dec 21, 2006 9:50 pm Post subject: Re: windows 2003 server auto close |
|
|
mustafa korkmaz presented the following explanation :
| Quote: | TForm1 = class(TForm)
.........
public
myarray: array[ 1..10 ] of integer;
end;
procedure TForm1.Button1Click(Sender: TObject);
var i: integer;
begin
for i := 1 to 10000 do myarray[ i ] := i;
end;
When I press to button1 this program is being closed by windows 2003 server.
Can you give me so program code example that closed by windows 2003 server
when you run it?
I want to learn when does win.2003 server closes the program? I want to run
and see so programs.
Give me example codes.
Thanks.
|
Well the program is closing because it is crashing.
You have your array set to 1..10 yet you're using a for loop that goes
from 1 to 10000.
But if you want to crash programs, try some dividing by 0 math,
interacting with objects that aren't created, and maybe a object
creating itself (AObject.Create instead of AObject := TObject.create); |
|
| Back to top |
|
 |
mustafa korkmaz Guest
|
Posted: Thu Dec 21, 2006 11:08 pm Post subject: Re: windows 2003 server auto close |
|
|
AObject.Create
This is cause access violation exception.But this program is not being closed by win 2003 server.
if there is Buffer overflow win 2003 server closes program.
In which situations 2003 server closes the program? I want to learn this with example codes.
I have created big project with delphi 5. But some times it is being closed by win 2003 server.I can not found the wrong lines.Because it is very big project and it is multi threaded application.So I decide to learn In which situations 2003 server closes the program? I need I lot of wrong example codes.
Matt M <tsusai @ gmail dot com> wrote:
| Quote: | mustafa korkmaz presented the following explanation :
TForm1 = class(TForm)
.........
public
myarray: array[ 1..10 ] of integer;
end;
procedure TForm1.Button1Click(Sender: TObject);
var i: integer;
begin
for i := 1 to 10000 do myarray[ i ] := i;
end;
When I press to button1 this program is being closed by windows 2003 server.
Can you give me so program code example that closed by windows 2003 server
when you run it?
I want to learn when does win.2003 server closes the program? I want to run
and see so programs.
Give me example codes.
Thanks.
Well the program is closing because it is crashing.
You have your array set to 1..10 yet you're using a for loop that goes
from 1 to 10000.
But if you want to crash programs, try some dividing by 0 math,
interacting with objects that aren't created, and maybe a object
creating itself (AObject.Create instead of AObject := TObject.create);
|
|
|
| Back to top |
|
 |
|