Io Error 123 Delphi
contain spaces. I have enclosed the full path and filename in "" to deal with the spaces. Any ideas? Thanks, Jeff Liz Delphi Developer Tue, 20 Nov 2007 00:34:04 GMT Re:I/O Error 123 QuoteJeff Patrick wrote: > I'm getting this error when I try to write to a file using writeln. > The file is on a WinXP system and the filename may contain spaces. I > have enclosed the full path and filename in "" to deal with the > spaces. kinda, this is not uncommon with long filenames, many routines dont suppose the non 8.3 filenames, and treat it as different commands, eg c:\program files\ turns into c:\program files\ Especially with parameters. I think if you're doing it internally, eg you do filename:='a long file.txt"; You can probably get away with it, its more of the myapp a long file.txt will see param 1=a param 2=long param 3=file.txt there isnt much you can do about that, thats very very normal. For example notepad c:\program files\borland\delphi5\readme.txt edit c:\program files\borland\delphi5\readme.txt notepad brings up the file, edit actually says "C:\documents and settings\
Advanced Search Go to Page... Thread Tools Display Modes #1 05-07-2006, 05:39 PM calvinscy Senior Member Join Date: Aug 2005 Posts: 259 I/O Error 123? What is I/O error 123? Cannot find it inside delphi help. Thanks. calvinscy View Public Profile Send a private message to calvinscy Visit calvinscy's homepage! Find all posts by calvinscy #2 05-08-2006, 12:21 AM Norrit Moderator Join Date: Aug 2001 Location: Landgraaf Posts: 7,133 RE: I/O Error 123? 123 = ERROR_INVALID_NAME But you'll have to be more specific on what line of code raises this http://www.delphigroups.info/2/c2/409660.html exception! MvG Peter Objective reality is a delirium caused by lack of alcohol in blood. There is no place like 127.0.0.1 Norrit View Public Profile Send a private message to Norrit Visit Norrit's homepage! Find all posts by Norrit #3 05-08-2006, 03:53 PM calvinscy Senior Member Join Date: Aug 2005 Posts: 259 RE: I/O Error 123? Thanks... Actually I have no idea which line http://www.delphipages.com/forum/showthread.php?t=164325 coz the exception error...it just suddenly pop-up. BTW the program is the broker/app server and it run for more than 24 hours. LIVE for more than 5 months. What is ERROR_INVALID_NAME? Thanks again. calvinscy View Public Profile Send a private message to calvinscy Visit calvinscy's homepage! Find all posts by calvinscy #4 05-10-2006, 11:34 PM Norrit Moderator Join Date: Aug 2001 Location: Landgraaf Posts: 7,133 RE: I/O Error 123? ERROR_INVALID_NAME: The filename, directory name, or volume label syntax is incorrect Look for invalid characters in path's Objective reality is a delirium caused by lack of alcohol in blood. There is no place like 127.0.0.1 Norrit View Public Profile Send a private message to Norrit Visit Norrit's homepage! Find all posts by Norrit « Previous Thread | Next Thread » Thread Tools Show Printable Version Email this Page Display Modes Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is On Forum Rules Forum Jump User Control Panel Private Me
DllForms SqlCommands XML XML Extension API MessageBox API DELPHI MemoryLeakage I|OERROR GuestBook Malai Appendix A - Delphi I/O ErrorsThanks goes out to Erik Martin http://delphi-techie.faithweb.com/rich_text_4.html for posting these Delphi IO errors on his web site. The following are the Windows API (and former DOS) IO errors, which are also the IO errors often returned by Delphi programs, and which are generally difficult to find reference for, and are especially difficult to find referenced as Delphi errors.Some of the high-numbered sections toward the end contain Windows API errors which are not truely be io error IO errors, but which may or may not be reported as such in programs.I/O Error 1:// IO Error 1L// ERROR_INVALID_FUNCTION // MessageText:// Incorrect function.I/O Error 2:// IO Error 2L// ERROR_FILE_NOT_FOUND// MessageText:// The system cannot find the file specified.I/O Error 3:// IO Error 3L// ERROR_PATH_NOT_FOUND// MessageText:// The system cannot find the path specified.I/O Error 4:// IO Error 4L// ERROR_TOO_MANY_OPEN_FILES// MessageText:// The system cannot open the file.I/O Error io error 123 :5// IO Error 5L// ERROR_ACCESS_DENIED// MessageText:// Access is denied.I/O Error 6:// IO Error 6L// ERROR_INVALID_HANDLE// MessageText:// The handle is invalid.I/O Error 7:// IO Error 7L// ERROR_ARENA_TRASHED// MessageText:// The storage control blocks were destroyed.I/O Error 8:// IO Error 8L// ERROR_NOT_ENOUGH_MEMORY// MessageText:// Not enough storage is available to process this command.I/O Error 9:// IO Error 9L// ERROR_INVALID_BLOCK// MessageText:// The storage control block address is invalid.I/O Error 10:// IO Error 10L// ERROR_BAD_ENVIRONMENT// MessageText:// The environment is incorrect.I/O Error 11:// IO Error 11L// ERROR_BAD_FORMAT// MessageText:// An attempt was made to load a program with an// incorrect format.I/O Error 12:// IO Error 12L// ERROR_INVALID_ACCESS// MessageText:// The access code is invalid.I/O Error 13:// IO Error 13L// ERROR_INVALID_DATA// MessageText:// The data is invalid.I/O Error 14:// IO Error 14L// ERROR_OUTOFMEMORY// MessageText:// Not enough storage is available to complete this operation.I/O Error 15:// IO Error 15L// ERROR_INVALID_DRIVE// MessageText:// The system cannot find the drive specified.I/O Error 16:// IO Error 16L// ERROR_CURRENT_DIRECTORY// MessageText:// The directory cannot be removed.I/O Error 17:// IO Error 17L// ERROR_NOT_SAME_DEVICE// MessageText:// The system cannot move the file// to a different disk drive.I/O Error 18:// IO Error 18L// ERROR_NO_MORE_FILES// MessageText:// There are no more files.I/O Error 19:// IO Error 19L// ERROR_WRITE_PROTECT// MessageText:// The media