Click here to Skip to main content
15,895,423 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is it OK to return reference from an USING (DIsposable object) Pin
Nadia Monalisa1-Apr-10 18:55
Nadia Monalisa1-Apr-10 18:55 
GeneralRe: Is it OK to return reference from an USING (DIsposable object) Pin
Luc Pattyn1-Apr-10 19:01
sitebuilderLuc Pattyn1-Apr-10 19:01 
GeneralRe: Is it OK to return reference from an USING (DIsposable object) Pin
Abhinav S1-Apr-10 19:27
Abhinav S1-Apr-10 19:27 
GeneralRe: Is it OK to return reference from an USING (DIsposable object) Pin
Dave Kreskowiak2-Apr-10 2:47
mveDave Kreskowiak2-Apr-10 2:47 
AnswerRe: Is it OK to return reference from an USING (DIsposable object) Pin
PIEBALDconsult2-Apr-10 3:41
mvePIEBALDconsult2-Apr-10 3:41 
GeneralRe: Is it OK to return reference from an USING (DIsposable object) Pin
Nadia Monalisa2-Apr-10 11:01
Nadia Monalisa2-Apr-10 11:01 
GeneralRe: Is it OK to return reference from an USING (DIsposable object) Pin
PIEBALDconsult2-Apr-10 11:46
mvePIEBALDconsult2-Apr-10 11:46 
QuestionCommand line not working when large Pin
LimitedAtonement1-Apr-10 11:17
LimitedAtonement1-Apr-10 11:17 
Dear Sirs,

I have a program that takes command-line arguments. The ordinary method of ingestion is drag-n-drop. So, you drag a (DICOM|*.dcm) file (or more) onto my program, it reads them and processes them without showing a form. No problem. A coworker pointed out today that the program doesn't work with "twelve or so" files. I tried it and can get 23 items to work, but adding the 24th screws it up. The error message is a simple msgbox saying:

"Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item." With the full path to the application in the title-bar.

My guess is that he was using rather deeply-nested or long-named files. I'm thinking what's happenning is that the shell is somehow not getting the program path correct with lots of parameters?? the parameters somehow obstructing the filename?? I checked it out and when I get the twenty-three items to work, the command-line length (with full program path) is 2,075 characters. Raymond[^] has lots to say about it, but my length isn't close to what he talks about: Nowhere near 32767, over 2048, and not near 8192, and well over the dos limit of 127.

I could do something creative if my program would just run, but it never gets to sub Main().

If anyone has had this problem before, please give me sympathy. Even better, if someone knows how to work around or fix this problem, please let me know!! I've searched the web for a while and nothing came up. I was sure to check this forum to avoid double-posting. Thanks!

Aaron
In Christ,
Aaron Laws

http://ProCure.com

AnswerRe: Command line not working when large Pin
Richard MacCutchan1-Apr-10 11:46
mveRichard MacCutchan1-Apr-10 11:46 
GeneralRe: Command line not working when large Pin
LimitedAtonement5-Apr-10 6:03
LimitedAtonement5-Apr-10 6:03 
JokeRe: Command line not working when large Pin
Luc Pattyn1-Apr-10 11:59
sitebuilderLuc Pattyn1-Apr-10 11:59 
GeneralRe: Command line not working when large Pin
LimitedAtonement5-Apr-10 6:00
LimitedAtonement5-Apr-10 6:00 
AnswerRe: Command line not working when large Pin
AspDotNetDev1-Apr-10 15:27
protectorAspDotNetDev1-Apr-10 15:27 
GeneralRe: Command line not working when large Pin
LimitedAtonement5-Apr-10 6:01
LimitedAtonement5-Apr-10 6:01 
QuestionWhat is the name of this control [modified] Pin
Myzrael1-Apr-10 8:34
Myzrael1-Apr-10 8:34 
AnswerRe: What is the name of this control Pin
Not Active1-Apr-10 9:03
mentorNot Active1-Apr-10 9:03 
GeneralRe: What is the name of this control Pin
harold aptroot1-Apr-10 9:14
harold aptroot1-Apr-10 9:14 
GeneralRe: What is the name of this control Pin
Myzrael1-Apr-10 9:22
Myzrael1-Apr-10 9:22 
GeneralRe: What is the name of this control Pin
Luc Pattyn1-Apr-10 9:23
sitebuilderLuc Pattyn1-Apr-10 9:23 
GeneralRe: What is the name of this control Pin
Richard Andrew x641-Apr-10 12:08
professionalRichard Andrew x641-Apr-10 12:08 
GeneralRe: What is the name of this control Pin
AspDotNetDev1-Apr-10 15:21
protectorAspDotNetDev1-Apr-10 15:21 
AnswerRe: What is the name of this control Pin
kevinnicol1-Apr-10 9:55
kevinnicol1-Apr-10 9:55 
QuestionLINQ to SQL Pin
Darrall1-Apr-10 7:40
Darrall1-Apr-10 7:40 
AnswerRe: LINQ to SQL Pin
Dan Mos1-Apr-10 8:01
Dan Mos1-Apr-10 8:01 
GeneralRe: LINQ to SQL Pin
Darrall1-Apr-10 8:09
Darrall1-Apr-10 8: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.