잘 나는 같은 일부 잠수정이 1 시간 하위 절반 끝 900 메가 바이트에 도달자동 재시작 한 후 VB.NET에서 하위를 계속
개인 서브 somesub() 'Processses을
앱을 다시 시작하고 메모리를 삭제 한 다음 원래 위치로 돌아가고 싶습니다.
정확히 연락처를 추가하는 앱이 있습니다. 연락처가 2000 개 추가 될 때 900 메가 바이트에 도달합니다 ... 200 개의 연락처를 모두 중지하고 테스트 한 코드를 말합니다.
Imports SKYPE4COMLib
Public Class frmMain
Dim pUser As SKYPE4COMLib.User
Dim contactos As Integer
If contactos < 200 Then
For Each oUser In ListBox1.Items
pUser = oSkype.User(oUser)
pUser.BuddyStatus = SKYPE4COMLib.TBuddyStatus.budPendingAuthorization
oSkype.Friends.Add(pUser)
contactos += 1
Next
Else
'System.Windows.Forms.Application.Restart()
'I need a code that continues where I was, here...
End If
End Sub
End Class
어떻게해야합니까? 감사!
가능한 중복을 [ 단일 인스턴스 응용 프로그램 다시 시작] (http://stackoverflow.com/questions/745447/restarting-a-single-instance-application) – ElektroStudios