Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

How to cause a system error. Find similar branches


Andrewv   (2001-12-18 14:14) [0]

Can I get a system error from my own program?
"The program has performed an illegal operation"?



Андрей Сенченко   (2001-12-18 14:25) [1]

var i: integer begin i: = i / 0 end.
or do you need an optional error generator?



Dimka Maslov   (2001-12-18 17:26) [2]

ExceptObjProc: = nil;
PInteger (nil) ^: = 0;



Pat   (2001-12-18 17:45) [3]

> Andrey Senchenko
And he checked?



panov   (2001-12-18 17:56) [4]

was
s: string;
p: Pointer;
begin
s: = "Exception";
p: = nil;
Move (s, p, 9);



Дремучий   (2001-12-18 21:59) [5]

var Obj: TLabel; // any component type
// the constructor Obj is not called anywhere!
begin
// access to uncreated object
Obj.Caption: = "Exception! Ha-ha dva raza!";
end;





Алексей Петров   (2001-12-19 08:46) [6]

The person asked for an illegal operation - and you offer him access violation in unison :)

Priveleged instruction:
asm hlt end;

This is a purely illegal operation.
asm lock nop end




Digitman   (2001-12-19 08:55) [7]

I absolutely agree with <Alexey Petrov>



Bizon   (2001-12-19 10:05) [8]

I tried the last option.
External Exception Error in both 98 and 2
That's it.



Алексей Петров   (2001-12-19 10:20) [9]

External Exception - This is a Delphi wrapper over all exceptions unknown to Delphi.
And the code corresponds, just, to the processor exception "invalid operation code".



Bizon   (2001-12-19 10:26) [10]

Remarkably, but this processing is highlighted in the message, and how to make it clearly written: The program has completed ......
As in the wind `usually.



Dimka Maslov   (2001-12-19 10:36) [11]

In Delphi, the address of the exception handler ExceptObjProc is defined; if it is defined, an exception will be thrown when a system error occurs. Otherwise - "the program performed an illegal operation"



Bizon   (2001-12-19 10:41) [12]

OK. Happened.



handra   (2001-12-19 14:34) [13]

Nifiga:
ExceptObjProc: = nil;
asm lock nop end;

Result:
Exception unknown software exception, etc.
Then the following:
Runtime error 255 at ....




Big_Hart   (2001-12-19 14:53) [14]

asm
Cli
end
Repeat
until false



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.59 MB
Time: 0.027 c
1-22232
T2
2001-12-16 07:24
2002.01.08
WIN386.SWP


3-21980
Aleksandr
2001-12-05 13:26
2002.01.08
How to create a connection string TADOConnection in the program?


1-22242
Sour
2001-12-14 11:00
2002.01.08
POP3


1-22122
Mikhalyov Dmitry
2001-12-19 19:38
2002.01.08
Again about events


1-22213
T2
2001-12-16 07:14
2002.01.08
Secret Api & oth.





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish