Click here to Skip to main content
16,016,229 members
Home / Discussions / C#
   

C#

 
GeneralRe: connecting to telnet and executing perl script Pin
Pete O'Hanlon23-Feb-10 23:41
mvePete O'Hanlon23-Feb-10 23:41 
GeneralRe: connecting to telnet and executing perl script Pin
l.laxmikant24-Feb-10 0:22
l.laxmikant24-Feb-10 0:22 
GeneralRe: connecting to telnet and executing perl script Pin
Richard MacCutchan24-Feb-10 1:32
mveRichard MacCutchan24-Feb-10 1:32 
GeneralRe: connecting to telnet and executing perl script Pin
PIEBALDconsult24-Feb-10 9:33
mvePIEBALDconsult24-Feb-10 9:33 
AnswerRe: connecting to telnet and executing perl script [modified] Pin
PIEBALDconsult24-Feb-10 3:59
mvePIEBALDconsult24-Feb-10 3:59 
AnswerRe: connecting to telnet and executing perl script Pin
PIEBALDconsult1-Mar-10 4:16
mvePIEBALDconsult1-Mar-10 4:16 
AnswerRe: connecting to telnet and executing perl script Pin
PIEBALDconsult4-Mar-10 6:43
mvePIEBALDconsult4-Mar-10 6:43 
QuestionError Code 17 from RegReplaceKey ?? Pin
ub3rst4r23-Feb-10 19:30
ub3rst4r23-Feb-10 19:30 
Hi,

I am the maintainer for Little Registry Optimizer. My program is getting error code 17 (The system cannot move the file to a different disk drive) whenever it tries to call RegReplaceKey to compact the registry hives. The weird thing about this error is that the old and new hives are both assigned using the same API and they are in the same directory and drive. I have been able to reproduce this error on my friends computer but not on mine. I have attached the error log below and the location of the registry hives on my friends computer. Please let me know if you have any ideas!

This is the code that is causing the error:
// Replace hive with compressed hive
int ret = PInvoke.RegReplaceKeyA(this.hKey, null, this.strNewHivePath, this.strOldHivePath);
if (ret != 0)
    throw new Win32Exception(ret);


This is the code that assigns the old and new hive paths
string tempPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());

// File cant exists, keep retrying until we get a file that doesnt exist
if (File.Exists(tempPath))
    return GetTempHivePath();

return tempPath;


Error log: http://tinypaste.com/51dde[^]
Registry Hive Paths: http://tinypic.com/r/10pya37/6[^]

Thanks!
AnswerRe: Error Code 17 from RegReplaceKey ?? Pin
RichardM123-Feb-10 20:02
RichardM123-Feb-10 20:02 
AnswerRe: Error Code 17 from RegReplaceKey ?? Pin
Richard MacCutchan23-Feb-10 21:51
mveRichard MacCutchan23-Feb-10 21:51 
GeneralRe: Error Code 17 from RegReplaceKey ?? Pin
ub3rst4r24-Feb-10 17:56
ub3rst4r24-Feb-10 17:56 
GeneralRe: Error Code 17 from RegReplaceKey ?? Pin
Richard MacCutchan24-Feb-10 21:52
mveRichard MacCutchan24-Feb-10 21:52 
GeneralRe: Error Code 17 from RegReplaceKey ?? Pin
ub3rst4r25-Feb-10 12:27
ub3rst4r25-Feb-10 12:27 
GeneralRe: Error Code 17 from RegReplaceKey ?? Pin
Richard MacCutchan25-Feb-10 21:47
mveRichard MacCutchan25-Feb-10 21:47 
QuestionReduce the form load time Pin
Hum Dum23-Feb-10 19:19
Hum Dum23-Feb-10 19:19 
AnswerRe: Reduce the form load time Pin
Saksida Bojan23-Feb-10 19:34
Saksida Bojan23-Feb-10 19:34 
GeneralRe: Reduce the form load time Pin
Hum Dum23-Feb-10 19:41
Hum Dum23-Feb-10 19:41 
GeneralRe: Reduce the form load time Pin
Saksida Bojan23-Feb-10 20:46
Saksida Bojan23-Feb-10 20:46 
GeneralRe: Reduce the form load time Pin
Hum Dum23-Feb-10 22:09
Hum Dum23-Feb-10 22:09 
GeneralRe: Reduce the form load time Pin
Saksida Bojan24-Feb-10 0:42
Saksida Bojan24-Feb-10 0:42 
AnswerRe: Reduce the form load time Pin
David Skelly23-Feb-10 22:43
David Skelly23-Feb-10 22:43 
Questionwindows forms key board for other application Pin
nayana.r.r23-Feb-10 19:12
nayana.r.r23-Feb-10 19:12 
AnswerRe: windows forms key board for other application Pin
Gopal.S23-Feb-10 23:08
Gopal.S23-Feb-10 23:08 
QuestionParental Control Pin
satsumatable23-Feb-10 19:07
satsumatable23-Feb-10 19:07 
AnswerRe: Parental Control Pin
Pascal Ganaye17-Jun-10 10:16
Pascal Ganaye17-Jun-10 10:16 

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.