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.85 MB
Time: 0.045 c
1-22114
Aleksandr
2001-12-19 19:28
2002.01.08
How to collect color from numbers and brightness?


4-22465
AKV
2001-11-02 10:44
2002.01.08
как определить handle окна над которым находится мышь


3-21983
Victor
2001-12-06 13:13
2002.01.08
serial number on Delphi 6


14-22352
Merlin
2001-11-02 13:04
2002.01.08
We have all the moves recorded !!!


14-22330
Alexey T.
2001-11-02 13:25
2002.01.08
HELP MY !!!





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