Click here to Skip to main content
15,895,799 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionIntPtr and API functions Pin
treddie8-Jun-13 17:03
treddie8-Jun-13 17:03 
AnswerRe: IntPtr and API functions Pin
Richard MacCutchan8-Jun-13 21:55
mveRichard MacCutchan8-Jun-13 21:55 
GeneralRe: IntPtr and API functions Pin
treddie8-Jun-13 23:39
treddie8-Jun-13 23:39 
GeneralRe: IntPtr and API functions Pin
Richard MacCutchan8-Jun-13 23:41
mveRichard MacCutchan8-Jun-13 23:41 
GeneralRe: IntPtr and API functions Pin
treddie9-Jun-13 8:11
treddie9-Jun-13 8:11 
GeneralRe: IntPtr and API functions Pin
Richard MacCutchan9-Jun-13 9:25
mveRichard MacCutchan9-Jun-13 9:25 
GeneralRe: IntPtr and API functions Pin
treddie9-Jun-13 11:44
treddie9-Jun-13 11:44 
Questionstackhash _2f16 Pin
champagne_charly8-Jun-13 9:11
champagne_charly8-Jun-13 9:11 
Hello,

I have an app that utilises web browser object to open a (local) html file enter pass that runs javascript within the html(nothing to do with me) that opens/ decrypts another HTML page with links to the encrypted files.. ..

All works fine for 1 or 2 files but I have 200+ that I have to convert. Without fail and at unfortunately but not on a particular file the app crashes and returns StackHash Error... I have added the exe to DEP Exceptions list. Rebooted and the error still returns.

How can i find out what is causing this error?

Hope somebody can help on this.

The crash occurs at the same piece of code. which is:

Sub HTTPDownloadFile(ByVal URL As String, ByVal LocalFileName As String)
Dim http As New Inet
Dim Contents() As Byte


On Error GoTo HTTPDownloadFile_Error

WriteLog "LInk" & URL
WriteLog "Path to save" & LocalFileName
10 ' Set http = New Inet
20 'Set http = CreateObject("InetCtls.Inet")
30 With http
40 .protocol = icHTTP
50 .URL = URL
60 Contents() = .OpenURL(.URL, icByteArray)
70 End With
80 ' Set http = Nothing

90 Open LocalFileName For Binary Access Write As #1
100 Put #1, , Contents()
110 Close #1
120 Set http = Nothing
WriteLog LocalFileName & "Saved"
On Error GoTo 0
Exit Sub


More specifically between the open and close statements.

Has anybody any suggestion as to what may cause this or how to avoid? this is my first step into vb so am cluelss about various compilation options.. would/ could any of thoese options help?

FYI am running on windows 7.

Thanks in advance.
AnswerRe: stackhash _2f16 Pin
Eddy Vluggen9-Jun-13 5:13
professionalEddy Vluggen9-Jun-13 5:13 
GeneralRe: stackhash _2f16 Pin
champagne_charly9-Jun-13 5:54
champagne_charly9-Jun-13 5:54 
GeneralRe: stackhash _2f16 Pin
Eddy Vluggen9-Jun-13 6:04
professionalEddy Vluggen9-Jun-13 6:04 
GeneralRe: stackhash _2f16 Pin
champagne_charly9-Jun-13 6:06
champagne_charly9-Jun-13 6:06 
GeneralRe: stackhash _2f16 Pin
Eddy Vluggen9-Jun-13 6:19
professionalEddy Vluggen9-Jun-13 6:19 
GeneralRe: stackhash _2f16 Pin
champagne_charly9-Jun-13 8:10
champagne_charly9-Jun-13 8:10 
GeneralRe: stackhash _2f16 Pin
Dave Kreskowiak9-Jun-13 12:50
mveDave Kreskowiak9-Jun-13 12:50 
GeneralRe: stackhash _2f16 Pin
champagne_charly9-Jun-13 13:03
champagne_charly9-Jun-13 13:03 
GeneralRe: stackhash _2f16 Pin
Dave Kreskowiak9-Jun-13 14:22
mveDave Kreskowiak9-Jun-13 14:22 
GeneralRe: stackhash _2f16 Pin
Eddy Vluggen10-Jun-13 3:07
professionalEddy Vluggen10-Jun-13 3:07 
GeneralRe: stackhash _2f16 Pin
champagne_charly10-Jun-13 3:52
champagne_charly10-Jun-13 3:52 
GeneralRe: stackhash _2f16 Pin
Eddy Vluggen10-Jun-13 4:23
professionalEddy Vluggen10-Jun-13 4:23 
GeneralRe: stackhash _2f16 Pin
champagne_charly10-Jun-13 4:56
champagne_charly10-Jun-13 4:56 
GeneralRe: stackhash _2f16 Pin
Eddy Vluggen10-Jun-13 6:33
professionalEddy Vluggen10-Jun-13 6:33 
GeneralRe: stackhash _2f16 Pin
champagne_charly10-Jun-13 11:43
champagne_charly10-Jun-13 11:43 
GeneralRe: stackhash _2f16 Pin
Eddy Vluggen10-Jun-13 22:33
professionalEddy Vluggen10-Jun-13 22:33 
GeneralRe: stackhash _2f16 Pin
champagne_charly9-Jun-13 6:09
champagne_charly9-Jun-13 6:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.