Click here to Skip to main content
16,008,010 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVB.NET Application crashes Pin
melvis_vaz10-Jan-06 21:56
melvis_vaz10-Jan-06 21:56 
AnswerRe: VB.NET Application crashes Pin
Duncan Edwards Jones10-Jan-06 22:19
professionalDuncan Edwards Jones10-Jan-06 22:19 
AnswerRe: VB.NET Application crashes Pin
Steve Pullan10-Jan-06 22:23
Steve Pullan10-Jan-06 22:23 
GeneralRe: VB.NET Application crashes Pin
melvis_vaz10-Jan-06 22:35
melvis_vaz10-Jan-06 22:35 
GeneralRe: VB.NET Application crashes Pin
Guffa10-Jan-06 22:53
Guffa10-Jan-06 22:53 
GeneralRe: VB.NET Application crashes Pin
melvis_vaz10-Jan-06 23:23
melvis_vaz10-Jan-06 23:23 
GeneralRe: VB.NET Application crashes Pin
Guffa11-Jan-06 1:52
Guffa11-Jan-06 1:52 
GeneralRe: VB.NET Application crashes Pin
Steve Pullan11-Jan-06 0:14
Steve Pullan11-Jan-06 0:14 
Try obtaining the file size and hence the buffer length by this code...
Dim fileDetails As System.IO.FileInfo = New System.IO.FileInfo(sFilePath)
lFileSize = fileDetails.Length

That will give you the filesize in bytes. I think the FileSize() property you were using returned the size in kB (??).

Trace the code in debug mode and see that the filesize is what's expected. Inspect all other variables for correctness before each line is executed and you'll find the problem.

...Steve

"Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life."
(Translation: I'll show you the way, but not write the code for you.) I read that somewhere once Smile | :)
GeneralRe: VB.NET Application crashes Pin
melvis_vaz11-Jan-06 0:55
melvis_vaz11-Jan-06 0:55 
GeneralRe: VB.NET Application crashes Pin
Steve Pullan11-Jan-06 1:25
Steve Pullan11-Jan-06 1:25 
GeneralRe: VB.NET Application crashes Pin
melvis_vaz11-Jan-06 21:50
melvis_vaz11-Jan-06 21:50 
GeneralRe: VB.NET Application crashes Pin
Steve Pullan12-Jan-06 15:15
Steve Pullan12-Jan-06 15:15 
GeneralRe: VB.NET Application crashes Pin
melvis_vaz12-Jan-06 20:04
melvis_vaz12-Jan-06 20:04 
GeneralRe: VB.NET Application crashes Pin
Steve Pullan13-Jan-06 1:26
Steve Pullan13-Jan-06 1:26 
QuestionCalling specific instance of EXEBi Pin
Birendra1247810-Jan-06 20:46
Birendra1247810-Jan-06 20:46 
QuestionInput string was not in a correct format Pin
kenn_rosie10-Jan-06 18:35
kenn_rosie10-Jan-06 18:35 
AnswerRe: Input string was not in a correct format Pin
Guffa10-Jan-06 21:08
Guffa10-Jan-06 21:08 
GeneralRe: Input string was not in a correct format Pin
kenn_rosie10-Jan-06 21:11
kenn_rosie10-Jan-06 21:11 
AnswerRe: Input string was not in a correct format Pin
Guffa10-Jan-06 22:15
Guffa10-Jan-06 22:15 
GeneralRe: Input string was not in a correct format Pin
kenn_rosie11-Jan-06 3:21
kenn_rosie11-Jan-06 3:21 
AnswerRe: Input string was not in a correct format Pin
Guffa11-Jan-06 22:06
Guffa11-Jan-06 22:06 
Questionreport generation Pin
_tasleem10-Jan-06 18:08
_tasleem10-Jan-06 18:08 
AnswerRe: report generation Pin
mr_debasishdas10-Jan-06 23:33
mr_debasishdas10-Jan-06 23:33 
QuestionSaving Data to Database Pin
shiroamachi10-Jan-06 17:38
shiroamachi10-Jan-06 17:38 
AnswerRe: Saving Data to Database Pin
Christian Graus10-Jan-06 17:39
protectorChristian Graus10-Jan-06 17:39 

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.