Click here to Skip to main content
15,908,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) Pin
Dave Kreskowiak18-Jun-07 2:24
mveDave Kreskowiak18-Jun-07 2:24 
GeneralRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) [modified] Pin
crash89318-Jun-07 2:39
crash89318-Jun-07 2:39 
GeneralRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) Pin
Dave Kreskowiak18-Jun-07 15:41
mveDave Kreskowiak18-Jun-07 15:41 
GeneralRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) Pin
crash89319-Jun-07 23:46
crash89319-Jun-07 23:46 
GeneralRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) Pin
crash89323-Jun-07 17:27
crash89323-Jun-07 17:27 
AnswerRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) Pin
devesh_code17-Jun-07 20:57
devesh_code17-Jun-07 20:57 
GeneralRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) Pin
crash89318-Jun-07 1:47
crash89318-Jun-07 1:47 
QuestionPossible Overflow? Pin
StevenWalsh17-Jun-07 13:30
StevenWalsh17-Jun-07 13:30 
I wrote an application that is copying a file. I'm also writing a progress bar function for it. The function works fine until what should be 6%, then it starts displaying a negative value.

This is the line where the problem is occurring:
double Completed = BufferSize * (Chunks - 1);

some background:
BufferSize = 524288000
(Chunks - 1) = 6

the result i would expect is: 3145728000
however it is displaying: -1149239296

i would assume the double datatype should be large enough. I tried to explicatly cast it as a double as well however no luck there.

Please Help!!

Thank you,
Steve

AnswerRe: Possible Overflow? Pin
Dave Kreskowiak17-Jun-07 14:21
mveDave Kreskowiak17-Jun-07 14:21 
GeneralRe: Possible Overflow? Pin
StevenWalsh17-Jun-07 16:36
StevenWalsh17-Jun-07 16:36 
AnswerRe: Possible Overflow? Pin
Luc Pattyn17-Jun-07 14:25
sitebuilderLuc Pattyn17-Jun-07 14:25 
QuestionPictureBox contents lost when focus lost Pin
rbengali317-Jun-07 11:11
rbengali317-Jun-07 11:11 
AnswerRe: PictureBox contents lost when focus lost Pin
Luc Pattyn17-Jun-07 11:19
sitebuilderLuc Pattyn17-Jun-07 11:19 
AnswerRe: PictureBox contents lost when focus lost Pin
Christian Graus17-Jun-07 11:36
protectorChristian Graus17-Jun-07 11:36 
GeneralRe: PictureBox contents lost when focus lost Pin
rbengali317-Jun-07 17:32
rbengali317-Jun-07 17:32 
GeneralRe: PictureBox contents lost when focus lost Pin
Christian Graus17-Jun-07 20:13
protectorChristian Graus17-Jun-07 20:13 
AnswerRe: PictureBox contents lost when focus lost Pin
Hesham Yassin20-Jun-07 0:21
Hesham Yassin20-Jun-07 0:21 
QuestionGeneric Collection &Method Problem Pin
haz1317-Jun-07 10:40
haz1317-Jun-07 10:40 
AnswerRe: Generic Collection &Method Problem Pin
User 665817-Jun-07 10:51
User 665817-Jun-07 10:51 
QuestionRe: Generic Collection &Method Problem Pin
haz1317-Jun-07 11:48
haz1317-Jun-07 11:48 
AnswerRe: Generic Collection &Method Problem Pin
Christian Graus17-Jun-07 12:24
protectorChristian Graus17-Jun-07 12:24 
QuestionExport data to excel sheet Pin
HexaDeveloper17-Jun-07 9:32
HexaDeveloper17-Jun-07 9:32 
AnswerRe: Export data to excel sheet Pin
Jimmanuel18-Jun-07 3:48
Jimmanuel18-Jun-07 3:48 
GeneralRe: Export data to excel sheet Pin
HexaDeveloper21-Jun-07 2:17
HexaDeveloper21-Jun-07 2:17 
GeneralRe: Export data to excel sheet Pin
Jimmanuel21-Jun-07 2:23
Jimmanuel21-Jun-07 2:23 

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.