Español
Foro

<while %loading> bringt Interpreter y EXE para Choque.

 

Martin
Kempf
Yo lasse esta Code en uno Bucle laufen y una Schwung Abfragen übers Netz durchführen:
ElseIf @MenuItem(3484)'Test

if val(SolarSystemID$) > 0

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

    whileloop angzeilen&

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

        if i% > 0'TypID gefunden.

            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&

                    mientras que %loading

                        x& = &bytesread

                    endwhile

                endif

            endif

        endif

    endwhile

endif


Jetzt stürzt me el Interpreter (oder auch el Exe) a unterschiedlichen Zeitpunkten en Ausführung des Codes innerhalb el mientras que %loading Bucle de, después de el Descargar erfolgreich comenzó wurde y sólo ne poco Textdatei zurückkommt.
Was podría el Ursache ser?
 
03.01.2016  
 



Probiere veces esta Función:

(ungetestet aquí en el Editor geschrieben)

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

if i% > 0

    clear x&

    mientras que %loading

        x& = &bytesread

    endwhile

endif


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




Martin
Kempf
el nenn Yo ne prompte Ayuda: danke dafür. Das scheint el Solución a ser - Yo bekomm ahora no Fehler mehr. Und lo reicht völlig de, si yo en el <while %loading> Bucle el <waitinput 50> einfüge, mehr muss Yo al Code no ändern. Nur verrat me de tiempo, qué <waitinput 50> eigentlich macht? Und tener Yo como qué en el XProfan-Ayuda No se ha encontrado?
 
03.01.2016  
 



Ca. 50ms warten y Hilos Tiempo geben.

Como hier una Choque sonst folgt, Aprovecho a, dass Roland el Kommunikation con seinem Descargar-Hilo no wirklich threadsicher programmiert ha. (Tuve aber ya una vez festgestellt)
 
03.01.2016  
 



Habs otra vez gefunden, es de 11/2014:  [...] 
 
03.01.2016  
 



Respuesta


Título del Tema, max. 100 Signo.
 

Systemprofile:

Kein Systemprofil creado. [anlegen]

XProfan:

 Contribución  Font  Smilies  ▼ 

Bitte registro en una Contribución a verfassen.
 

Tema opciones

5.112 Views

Untitledvor 0 min.
p.specht23.12.2020
Peter Max Müller05.03.2017
Rc19.01.2016
iF13.01.2016
Más...

Themeninformationen

Dieses Thema ha 2 subscriber:

iF (3x)
Martin Kempf (2x)


Admins  |  AGB  |  Applications  |  Autores  |  Chat  |  Política de Privacidad  |  Descargar  |  Entrance  |  Ayuda  |  Merchantportal  |  Pie de imprenta  |  Mart  |  Interfaces  |  SDK  |  Services  |  Juegos  |  Búsqueda  |  Support

Ein Projekt aller XProfan, el lo son!


Mi XProfan
Privado Noticias
Eigenes Ablageforum
Temas-Merkliste
Eigene Beiträge
Eigene Temas
Zwischenablage
Cancelar
 Deutsch English Français Español Italia
Traducciones

Política de Privacidad


Wir uso Cookies sólo como Session-Cookies wegen el technischen Notwendigkeit y en uns hay no Cookies de Drittanbietern.

Wenn du hier en unsere Webseite klickst oder navigierst, stimmst du unserer Erfassung de Informationen en unseren Cookies en XProfan.Net a.

Weitere Informationen a unseren Cookies y dazu, como du el Kontrolle darüber behältst, findest du en unserer nachfolgenden Datenschutzerklärung.


einverstandenDatenschutzerklärung
Yo möchte no Cookie