BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

windows 2003 server auto close

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Students
View previous topic :: View next topic  
Author Message
mustafa korkmaz
Guest





PostPosted: Thu Dec 21, 2006 9:13 am    Post subject: windows 2003 server auto close Reply with 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.
Back to top
Matt M
Guest





PostPosted: Thu Dec 21, 2006 9:50 pm    Post subject: Re: windows 2003 server auto close Reply with quote



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





PostPosted: Thu Dec 21, 2006 11:08 pm    Post subject: Re: windows 2003 server auto close Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Students All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.