English
Bugs and vermeintliche

ErrorProc won't "angesprungen"

 

E.T.
Hi,

in folgendem code becomes by me the (provozierte) Error of course gemeldet:
(element there not ! >> row 30)
but ErrorProc won't angesprungen !!

I have whom Test-code from my Prog "extrahiert", with the equal Windowstyles and Controls etc. How in the program uses.In my Program becomes in ErrorProc yet some further Done, so should z.B. a File with the Fehlerbeschreibung prepares go.

as i now even at proggen ausversehen such one Static ge-cleart  have (How in the example with solid), is me the behaviour noticed.
CompileMarkSeparation
Declare Static_1&[], Static_2&[], Ende%

ErrorProc

    Set("Errorlevel",1)
    @messagebox("ERRORPROC WURDE AUFGERUFEN !!!","INFO",64)
    Set("Errorlevel",0)

EndProc

Set("Errorlevel",0)  bei -1 wird garnichts angezeigt und abgebrochen
Set("OnError", 1)
WindowStyle 512+16+8+2
WindowTitle "ERRORPROC - TEST"
Window 800,600
Static_1&[0] = @Control("Dialog","",$54000000,0,0,@Width(%HWnd),@Height(%HWnd),%HWnd,1,%HInstance)
@Create("Text",Static_1&[0],"STATIC 1",250,250,100,20)
Static_1&[1] = @Create("Button",Static_1&[0],"...zu Static 2 >>>",300,100,200,30)
Static_2&[0] = @Control("Dialog","",$54000000,0,0,@Width(%HWnd),@Height(%HWnd),%HWnd,1,%HInstance)
ShowWindow(Static_2&[0],0)
@Create("Text",Static_2&[0],"STATIC 2",250,250,100,20)
Static_2&[1] = @Create("Button",Static_2&[0],"<<< zurück zu Static 1...",300,100,200,30)
Clear Ende%

WhileNot Ende%

    Waitinput

    If %Key = 2

        Ende% = 1

    ElseIf @Clicked(Static_1&[1])

        ShowWindow(Static_1&[0],0)
        ShowWindow(Static_2&[0],1)

    ElseIf @Clicked(Static_2&[1])

        ShowWindow(Static_2&[0],0)
        @Create("Text",Static_1&[0],"Static 2 wurde jetzt qgekilltq !!",200,280,300,20)
        @Create("Text",Static_1&[0],"Jetzt nochmal versuchen, auf Static 2 zu schalten !!",200,310,400,20)
        ShowWindow(Static_1&[0],1)
        Clear Static_2&[]<<< HIER WIRD DER "FEHLER" ERZEUGT !!!

    EndIf

EndWhile

End

see I the woods time again not, because the Trees before it stand ??

the example from the Help functions Yes...

EDIT:  even if I Set("OnError"... and Set("ErrorLeve... first setting, after the window prepares watts (means couple Lines down rücke) >> the same !!
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
12/02/08  
 




RGH
Hi,

ErrorProc functions only then, if the ErrorLevel - 1 tuned is.

In Your Program comes it then but to a Schutzverletzung, there the Error here so schwerwiegend is, that the Systemfehler yet to the Calling the ErrorProc appears. i'll time look whether I the for future versions yet can optimize.

presently is it so, that to the Perform of/ one Befehlszeile screen becomes, whether a Error aufgetreten is, the according aktuellem ErrorLevel not displayed watts. is this The drop, becomes The ErrorProc angesprungen. In Your example comes XProfan evident but none so far.

(I have me of course ready, deartige situations To avoid, but in some few Make dive tappt im dunkeln yet on. evident have I at adjust the Codes on The ErrorProc-Opportunities not yet any this to put ausgemerzt.)

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
12/03/08  
 




E.T.
thanks, Roland, for your speedy response.

RGH
ErrorProc functions only then, if the ErrorLevel - 1 tuned is.


i think, the ought to In any drop expliziet in the Help stand. I Have even again (hopefully) everything in the Help red, what to the Topic heard, but except for the example To ErrorProc can I none Info hereon find.

there "versucht The cow, itself into tail To beissen" , because lt. Help Errorlevel should one Yes -1 really not use:

...from the 11it Help
...
-1 - almost already kriminell: too Fehlermeldungen go übergangen.the can under Umständen to a Windowsfehler or crash desSystemes with Datenverlust lead.

and who wants already to the "fast Kriminellen" belong (except naturally, one ists already, then isses Yes alike) ??  

I pers. werd well then rather with Errorlevel 0 stay: there Have I at least yet ne Error Message, before itself the Prog dismisses.

RGH
...i'll time look whether I the for future versions yet can optimize. ...


XProfan can Yes only rather go. you become the already hinbiegen, ifs machbar is.
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
12/03/08  
 




RGH
Mario Patzlaff
there "versucht The cow, itself into tail To beissen" , because lt. Help Errorlevel should one Yes -1 really not use:


as these cut offed written watts, there were The ErrorProc not yet ... and with introduction same have I well missing hereon hinzuweisen, that one alternatively naturally ErrorProc use can, around the Error abzufangen.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
12/03/08  
 




E.T.
Gibt's To this (obigen) Topic already what new ??
Uner X2 still the same behaviour
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
01/08/12  
 




RGH
in the next Bugfix becomes too in this drop the crash prevented and the ErrorProc called.

Greeting
Roland
 
XProfan X2
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
01/14/12  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.940 Views

Untitledvor 0 min.
H.Brill06/15/23
Member 554186205/17/22
Jörg Sellmeyer06/16/20
Andreas Koch09/14/15
More...

Themeninformationen

this Topic has 2 subscriber:

RGH (3x)
E.T. (3x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie