English
Forum

<while %loading> bring Interpreter and EXE to that crash.

 

Martin
Kempf
I let this code in a Loop walk and a momentum inquire over network manage:
ElseIf @MenuItem(3484)'Test

if val(SolarSystemID$) > 0

    hGrid& = @create("Grid",8,0)
    angzeilen& = GetLines(OLView&)

    whileloop angzeilen&

        GetItemText(OLview&, area#, 5,&Loop)
        Prim$ = @Trim $(string $(area#,0))'PrimKey
        X$ = "SELECT MWert2 from MAT WHERE MTyp = 'O' AND MKey = '"+Prim$+"'"'TypID fetch
        clearlist
        i% = @db("fbSQLExec", ep&, X$, hGrid&)

        if i% > 0'TypID found.

            Y$ = GetText$(hGrid&,0,0)

            if val(Y$) > 0

                Url$ = "https://api.eve-central.com/api/quicklook?typeid=" + Y$ +"&usesystem="+SolarsystemID$
                i% = downloadfile(Url$, "TMP.TXT")

                if i% > 0

                    clear x&

                    while %loading

                        x& = &bytesread

                    endwhile

                endif

            endif

        endif

    endwhile

endif


now crashes me the Interpreter (or The Exe) To unterschiedlichen Zeitpunkten with the process the Codes inside the while %loading Loop ex, after the Download successful launched watts and only ne small Textdatei zurückkommt.
what could The cause his?
 
01/03/16  
 



Try time these function:

(ungetestet here in whom editor written)

and supplant your:
Url$ = "https://api.eve-central.com/api/quicklook?typeid=" + Y$ +"&usesystem="+SolarsystemID$
i% = downloadfile(Url$, "TMP.TXT")

if i% > 0

    clear x&

    while %loading

        x& = &bytesread

    endwhile

endif


in:
dwget("https://api.eve-central.com/api/quicklook?typeid=" + Y$ +"&usesystem="+SolarsystemID$,"tmp.exe")
 
01/03/16  
 




Martin
Kempf
the nenn I ne prompte Help: thanks for. the shining The Solution To his - I bekomm now none Error More. and it reicht completely from, if I into <while %loading> Loop the <waitinput 50> einfüge, More must I on the code not Change. only betrayal me time, what <waitinput 50> really power? and Have I there what in the XProfan-Help not found?
 
01/03/16  
 



ca. 50ms Waiting and Threads Time give.

there here crash otherwise follows, take I, that Roland The communication with seinem Download-Thread not really threadsicher program has. (I had but already once fixes)
 
01/03/16  
 



Habs again found, is of 11/2014:  [...] 
 
01/03/16  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.957 Views

Untitledvor 0 min.
p.specht12/23/20
Peter Max Müller03/05/17
Rc01/19/16
iF01/13/16
More...

Themeninformationen

this Topic has 2 subscriber:

iF (3x)
Martin Kempf (2x)


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