Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 04:06

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB.Net] Try-Catch-Block in Hintergrundthread ungültig?

Discussion on [VB.Net] Try-Catch-Block in Hintergrundthread ungültig? within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
maxasoft's Avatar
 
elite*gold: 2049
The Black Market: 350/0/0
Join Date: May 2012
Posts: 4,593
Received Thanks: 441
[VB.Net] Try-Catch-Block in Hintergrundthread ungültig?

Hey,

Ich habe folgenes Problem:

PHP Code:

    
Private Sub checker()
        
Dim doc As String ""
        
Try
            
Invoke(Sub() doc WebBrowser1.DocumentText)
        Catch 
ex As System.StackOverflowException
        Msgbox
(ex.message)
        
End Try
End Sub 
"Eine nicht behandelte Ausnahme des Typs "System.StackOverflowException" ist in System.Windows.Forms.dll aufgetreten."

Tritt in der Zeile Invoke(Sub() doc = WebBrowser1.DocumentText) auf. Dabei ist die ja in einem Try-Catch-Block eingebettet.

Den Thread starte ich so:

PHP Code:
With New Thread(AddressOf checker)
            .
IsBackground True
            
.Start()
        
End With 
Wie kann ich den Try-Catch-Block "gültig" machen?

Danke im Vorraus.

MfG, maxasoft
maxasoft is offline  
Old 07/08/2013, 13:17   #2
 
Frosttall's Avatar
 
elite*gold: 55
Join Date: Oct 2009
Posts: 5,471
Received Thanks: 1,479
Eine StackOverflowException kann niemals gehandelt werden. Diese Exception wird geworfen nachdem das Programm bereits die Termination gestartet hat.

Mehr Infos sind hier:
Frosttall is offline  
Thanks
1 User
Old 07/08/2013, 17:11   #3
 
maxasoft's Avatar
 
elite*gold: 2049
The Black Market: 350/0/0
Join Date: May 2012
Posts: 4,593
Received Thanks: 441
aber gibt es irgendwas, das verhindern kann, dass das programm den error anzeigt?
und wie könnte man das verhindern?
maxasoft is offline  
Old 07/08/2013, 17:21   #4
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
stackoverflow bedeutet idR das dein programm kaputt ist, wie Frosttall das schon angedeutet hat, wenn diese auftritt dann ist es schon zu spät

du musst die programmlogik so ändern das folgende bedingung nicht auftritt:

Quote:
StackOverflowException wird bei Anwendungsfehlern wegen Stapelüberlaufs ausgelöst, meist im Falle einer sehr tief geschachtelten oder unbegrenzten Rekursion. Die Localloc-MSIL-Anweisung (Microsoft Intermediate Language) löst eine StackOverflowException aus.
du hast offensichtlich den geposteten link dir nicht angeschaut weil da stehts drin
tolio is offline  
Reply


Similar Threads Similar Threads
CD KEY UNGÜLTIG ?
01/20/2013 - Battlefield - 16 Replies
Hyo Leutz, ich habe folgenes problem ich habe mir gestern battlefield 2 ComplettCollektion bei steam gekauft. ich habe es gedownloadet die 3.9 GB. und habe battlefield 2 gestartet und nun imma wenn ich online spielen moechte steht da " ungültiger CD key" habe schon so zeimlich alles getestet was in den foren stand finde aba dort keine loesung. was mich wundert ist auch in steam steht nur Battlefield 2 wo sind denn die anderen? weil es ist ja ne ComplettColektion. bin fuer jede hilfe...
[Question] block ip ou block mannequin in events
08/07/2012 - EO PServer Hosting - 2 Replies
There are some missions and events where you do not want the player not involved more than one time, wanted to know if you have any action to block the ip or mannequin, so the player participates only once in the game
RU key Ungültig
08/06/2012 - Off Topic - 13 Replies
Hey com ... Habe folgendes Proplem habe mir vorring bei einem ru großhändler wie immer einen key gekauft !! Hatte voring paar Propleme mit Activator (vpn) dann stand immer da das spiel ist in deinem land nicht verfügbar ok noch alle gut .. aber dann stand aufienmal da , Produkt code nicht gültig bitte überprüfe die zeichen etc . an was kann das jetzt liegen ? .. VK ist nicht online
Block für Block für Block... 24/7 root-server
04/01/2012 - Minecraft Server Advertising - 0 Replies
Ich bin neu in dem Gebiet Minecraft, doch das Spiel hat mich sofort gepackt, deswegen habe ich auch gleich einen Server aufgesetzt. Modus: "Classic" Plugins: Ein paar sind drauf und einige kommen noch, der Server befindet sich noch im Aufbau, hat 50 Slots und ich bin für allerlei Spielerein zu haben. Neue User bekommen Starthilfe und Support beim Game, für Fortgeschrittene sind Unterstützung für Projekte selbstverständlich. Der Server wurde Heute aufgesetzt und es gibt mitlerweile...



All times are GMT +1. The time now is 04:07.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.