English
Forum

Error Message intercepting

 

Manfred
Barei
Hi,

come simply not further, have already etliches probiert, but I get simply because auftretenden Error not abgefangen.

Folgender Error exit imDemoproc on, see Image:
CompileMarkSeparation
Declare Bild&
DEF GETSYSCOLOR(1) !"USER32","GetSysColor"

ErrorProc

    Set("ErrorLevel", 1)
    Print "<----ErrorProc---->"
    Print %Error, %ErrNumber, %ErrLine, $ErrStr, $ErrFile
    Print "<----------------->"
    Set("ErrorLevel", 0)

EndProc

WINDOWSTYLE 31
windowtitle "Bildauswahl-Test"
WINDOW (%maxx/2 - 640/2),(%maxy/2 - 500/2) - 640,500
CLS
Set("ErrorLevel", 0)
Set("OnError", 1)
------- Hier ist der Fehler, die Bilddatei ist 0 Byte groß
Bild& = @Create("hPic",-1,"C:\WINDOWS\WELLEN.BMP")
----------------------------------------------------------
DrawPic Bild&,0,0;0
DeleteObject Bild&
waitinput
end

17 kB
Hochgeladen:08/14/08
Downloadcounter114
Download
 
Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 |
08/14/08  
 



@Manfred
"wellen.bmp" Have I do not.
with another Image the windows-directory (zapotek.bmp) works everything correct.
even if I The Fehlerproc "remme", functions everything.

spin time again Windoof ?
 
08/14/08  
 




Peter
Max
Müller
Hi,

white not obs helps:
CompileMarkSeparation
IfNot @FileSize("C:\WINNT\WELLEN.BMP") = 0

    .....

EndI

Greeting

P.M.M.
 
XProfan X3, X4ß, Win 10.1
08/14/08  
 



I see...
the CLS can You streichen!
You erstellst still with Window X,Y-X1,Y1 already one Window

so goes it too
CompileMarkSeparation
Declare bild&
WINDOWSTYLE 31
windowtitle "Bildauswahl-Test"
WINDOW (%maxx/2 - 640/2),(%maxy/2 - 500/2) - 640,500
CLS
Set("ErrorLevel", 0)
Set("OnError", 1)
------- Hier ist der Fehler, die Bilddatei ist 0 Byte groß

If FILEEXISTS("C:\WINDOWS\zapotek.BMP")

    Bild& = @Create("hPic",-1,"C:\WINDOWS\zapotek.BMP")
    ----------------------------------------------------------
    DrawPic Bild&,0,0;0
    DeleteObject Bild&

ENDIF

waitinput
end
 
08/14/08  
 




Peter
Max
Müller
Tja,
so GEHTS even not.
your code ,Horst,checks whether a File existing.
Manfred would like but a existing 0 byte File intercepting.
or täusche I now vast?

Ciao
 
XProfan X3, X4ß, Win 10.1
08/14/08  
 




Manfred
Barei
Hello Peter,

with the the @FileSize I had already probiert but not yet in this shape.
will be it another time try so How You it posted have, i hope so working.

Greeting
Manfred
 
Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 |
08/14/08  
 




Manfred
Barei
Hello Peter,

thanks,so working it

Greeting
Manfred
 
Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 |
08/14/08  
 



then Have I the wrong understood - OK - now works it Yes !
 
08/14/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.396 Views

Untitledvor 0 min.
Erasmus.Herold11/28/23
Peter Max Müller11/18/17
H.Brill03/11/17

Themeninformationen



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