Click here to Skip to main content
16,013,207 members
Home / Discussions / C#
   

C#

 
AnswerRe: How RunAs handle exception Pin
Judah Gabriel Himango28-Mar-05 18:12
sponsorJudah Gabriel Himango28-Mar-05 18:12 
GeneralRe: How RunAs handle exception Pin
Johny Ng29-Mar-05 6:51
Johny Ng29-Mar-05 6:51 
GeneralUsing jar file in c# Pin
CNU28-Mar-05 15:18
CNU28-Mar-05 15:18 
GeneralRe: Using jar file in c# Pin
Sebastian Schneider28-Mar-05 21:00
Sebastian Schneider28-Mar-05 21:00 
GeneralMore info on get desktop folder problem Pin
Christian Graus28-Mar-05 15:13
protectorChristian Graus28-Mar-05 15:13 
GeneralRe: More info on get desktop folder problem Pin
Ashok Dhamija28-Mar-05 17:15
Ashok Dhamija28-Mar-05 17:15 
GeneralRe: More info on get desktop folder problem Pin
Dave Kreskowiak29-Mar-05 4:17
mveDave Kreskowiak29-Mar-05 4:17 
GeneralRe: More info on get desktop folder problem Pin
Christian Graus29-Mar-05 12:17
protectorChristian Graus29-Mar-05 12:17 
Dave Kreskowiak wrote:
I've got a question: Is you Log file being opened, written, flushed, and closed every time you write to it? If not, you're could be losing at least one line at the bottom of the log.

I have a helper function to make sure that a flush occurs every time, but a close does not occur every time, no. Surely flush is all I need ?

Dave Kreskowiak wrote:
Environment.SpecialFolder.Desktop returns the virtual folder, which might not exist on that notebook. This could be because of some rights issue or a COM screw up for the Desktop.

Thanks, I got that and tried DesktopLocation, it still crashes.

Dave Kreskowiak wrote:
but the first thing I'd do is garantee that your getting the physical path to the current desktop folder with SpecialFolder.DesktopDirectory.

Wrote a little app that does exactly that, it works fine on the notebook, brings up the path in a message box.

Dave Kreskowiak wrote:
It looks like Global.DataLocation and/or Consts.LocalPhotoFolder didn't return what you thought they should.

I logged Consts.LocalPhotoFolder, it's a const string anyhow, it was what I expected. Global.DataLocation does not appear to ever be entered. I think it's a problem with initialisation of a static object.

Dave Kreskowiak wrote:
Logging.Log(" GDL=" + Global.DataLocation);Logging.Log(" LPF=" + Consts.LocalPhotoFolder);

LOL - did exactly that yesterday, but the other way around ( as I expected the DataLocation to be the problem ). Got the localphotofolder, and then the usual crash. The thing is, all of the Global.DataLocation property is now in it's own try/catch, which doesn't rethrow, and logs something completely different. The try/catch is never entered, the exception is thrown by attempting to access the property, not within it.


Christian

I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
GeneralListBox owner drawing Pin
Bojan Rajkovic28-Mar-05 14:04
Bojan Rajkovic28-Mar-05 14:04 
GeneralRe: ListBox owner drawing Pin
Luis Alonso Ramos28-Mar-05 14:23
Luis Alonso Ramos28-Mar-05 14:23 
GeneralProblem getting desktop folder Pin
Christian Graus28-Mar-05 12:23
protectorChristian Graus28-Mar-05 12:23 
GeneralRe: Problem getting desktop folder Pin
Ashok Dhamija28-Mar-05 17:01
Ashok Dhamija28-Mar-05 17:01 
GeneralRe: Problem getting desktop folder Pin
Christian Graus28-Mar-05 17:10
protectorChristian Graus28-Mar-05 17:10 
GeneralRe: Problem getting desktop folder Pin
Ashok Dhamija28-Mar-05 17:17
Ashok Dhamija28-Mar-05 17:17 
GeneralRe: Problem getting desktop folder Pin
Christian Graus28-Mar-05 17:33
protectorChristian Graus28-Mar-05 17:33 
GeneralList the virual diectories in IIS Pin
Johny Ng28-Mar-05 11:49
Johny Ng28-Mar-05 11:49 
GeneralRe: List the virual diectories in IIS Pin
J4amieC28-Mar-05 22:48
J4amieC28-Mar-05 22:48 
GeneralCrysta Reports problems when update VS 2002 to 2003 Pin
machocr28-Mar-05 8:27
machocr28-Mar-05 8:27 
GeneralUsing the DAO pattern Pin
wweiss125828-Mar-05 7:55
wweiss125828-Mar-05 7:55 
GeneralGetting Size of a Process Pin
Peter Vertes28-Mar-05 6:13
Peter Vertes28-Mar-05 6:13 
GeneralRe: Getting Size of a Process Pin
Peter Vertes28-Mar-05 17:25
Peter Vertes28-Mar-05 17:25 
GeneralUsing WshShell to create shortcut - COMException Pin
DanielBr28-Mar-05 5:13
DanielBr28-Mar-05 5:13 
GeneralEvent Handler and ctrl.Update() questions... Pin
new_phoenix28-Mar-05 4:49
new_phoenix28-Mar-05 4:49 
Questionhow to make the area of desktop behind this area accesble by user from within this area ? Pin
Sabry190528-Mar-05 3:44
Sabry190528-Mar-05 3:44 
GeneralWindows configuration file Pin
Member 44721728-Mar-05 3:43
Member 44721728-Mar-05 3:43 

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.