Click here to Skip to main content
15,913,091 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# readonly reference (like C++ const reference ) Pin
Zeinpresiyo14-Jan-08 6:12
Zeinpresiyo14-Jan-08 6:12 
GeneralRe: C# readonly reference (like C++ const reference ) Pin
Pete O'Hanlon14-Jan-08 9:53
mvePete O'Hanlon14-Jan-08 9:53 
GeneralRe: C# readonly reference (like C++ const reference ) Pin
Zeinpresiyo17-Jan-08 0:04
Zeinpresiyo17-Jan-08 0:04 
Questiondeleting a file in use Pin
Ofori Boadu14-Jan-08 3:06
Ofori Boadu14-Jan-08 3:06 
GeneralRe: deleting a file in use Pin
benjymous14-Jan-08 3:13
benjymous14-Jan-08 3:13 
GeneralRe: deleting a file in use Pin
Ofori Boadu14-Jan-08 3:32
Ofori Boadu14-Jan-08 3:32 
GeneralRe: deleting a file in use Pin
S. Senthil Kumar14-Jan-08 3:21
S. Senthil Kumar14-Jan-08 3:21 
GeneralRe: deleting a file in use Pin
Luc Pattyn14-Jan-08 5:48
sitebuilderLuc Pattyn14-Jan-08 5:48 
Hi, there may be two issues:

1.
Most ways to load an image keep the image file open as long as the Image object is not
Disposed() off. The only exception I am aware of is when reading an image through
Image.FromStream()
Remedy: use FromStream() or make sure you call Dispose().
remark: I don't think it is sufficient to Dispose() of a PictureBox if it is the only
thing refering to the Image that got loaded from your file.

2.
When a file, any file, is freshly written chances are some other utility is investigating
it, prohibiting you from immediately renaming, deleting or overwriting it; candidate
utilities are abything that works in the background on new files, such as file system
indexers, and ativirus tools.
Remedy: retry a couple of times, 1 second apart.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


QuestionSetting BackColor & ForeColor of each Component Pin
Programm3r14-Jan-08 2:43
Programm3r14-Jan-08 2:43 
GeneralRe: Setting BackColor & ForeColor of each Component Pin
benjymous14-Jan-08 2:53
benjymous14-Jan-08 2:53 
QuestionRe: Setting BackColor & ForeColor of each Component Pin
Programm3r14-Jan-08 2:59
Programm3r14-Jan-08 2:59 
GeneralRe: Setting BackColor & ForeColor of each Component Pin
benjymous14-Jan-08 3:01
benjymous14-Jan-08 3:01 
GeneralRe: Setting BackColor & ForeColor of each Component Pin
Programm3r14-Jan-08 3:07
Programm3r14-Jan-08 3:07 
QuestionRe: Setting BackColor & ForeColor of each Component Pin
Programm3r14-Jan-08 3:15
Programm3r14-Jan-08 3:15 
GeneralRe: Setting BackColor & ForeColor of each Component Pin
benjymous14-Jan-08 3:33
benjymous14-Jan-08 3:33 
GeneralRe: Setting BackColor & ForeColor of each Component Pin
Programm3r14-Jan-08 3:46
Programm3r14-Jan-08 3:46 
GeneralForce Dropdown of a DateTimePicker Pin
StyleGuide14-Jan-08 1:27
StyleGuide14-Jan-08 1:27 
Questionhello , can any one suggest me how to do this and where i can read more about this? Pin
prasadbuddhika14-Jan-08 1:18
prasadbuddhika14-Jan-08 1:18 
AnswerRe: hello , can any one suggest me how to do this and where i can read more about this? Pin
stancrm14-Jan-08 3:11
stancrm14-Jan-08 3:11 
QuestionComunication PC to PC by RS232! Pin
cute_noel14-Jan-08 0:30
cute_noel14-Jan-08 0:30 
GeneralRe: Comunication PC to PC by RS232! Pin
Paddy Boyd14-Jan-08 1:29
Paddy Boyd14-Jan-08 1:29 
GeneralRe: Comunication PC to PC by RS232! Pin
stancrm14-Jan-08 1:37
stancrm14-Jan-08 1:37 
GeneralRe: Comunication PC to PC by RS232! Pin
cute_noel15-Jan-08 3:49
cute_noel15-Jan-08 3:49 
GeneralRotate rect Pin
Try14-Jan-08 0:06
Try14-Jan-08 0:06 
GeneralRe: Rotate rect Pin
DavidNohejl14-Jan-08 0:30
DavidNohejl14-Jan-08 0:30 

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.