The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 get an Error when I remove an subfolder
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

marco.zorcic

Germany
Posts

Posted - 06/21/2007 :  07:09:19 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version : OriginPro 7.5G SR6
Operating System:Win2000

Hallo,

here my problem:

i get an error (can not write in memory 0x00000801 ....and so on) when i try to remove an supfolder in my origin project.

Here is my code:

Folder fldRootPSW;
Folder fldsubRootPSW;
Folder fldsubPSW;

fldRootPSW = Application.RootFolder;
////////////////Ueberprueft ob Folder vorhanden
fldsubRootPSW=fldRootPSW.Subfolders("FolderPSW");
if(!(fldsubRootPSW.IsValid())){
fldsubRootPSW=fldRootPSW.AddSubfolder("FolderPSW");
}
///////////////////Oeffnet und setzt Folder aktiv
fldsubRootPSW.Activate();
//////////////////////Ueberprueft ob Folder PSW existiert
foreach (fldsubPSW in fldsubRootPSW.Subfolders){
if(fldsubPSW.GetName()=="PSW"){
fldsubRootPSW.RemoveSubFolder(fldsubPSW.GetName());
}
}


Mike Buess

USA
3037 Posts

Posted - 06/21/2007 :  09:57:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Your code runs fine in my tests and removes the folder PSW (if it exists) with no errors.

Mike Buess
Origin WebRing Member
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000