Solved

Errors

Posted on 2002-07-11
13
154 Views
Last Modified: 2010-04-04
hello people :)

As i close my application a message appears; "Invalid Property Settings - Programming Error". What exactly does this mean?

What are the possible causes of an I/O Error 123?
I/O error 123 returns the message "The filename, directory name or volume label syntax is incorrect".
0
Comment
  • 6
  • 4
  • 3
13 Comments
 
LVL 20

Expert Comment

by:Madshi
ID: 7145609
Shouldn't "dabestprogrammerindauniverse" know the answer to those questions?   :-)   Just joking...

Please run your application inside of Delphi's IDE. Then Delphi should show you the source code line which is guilty for producing the 2 errors you mentioned. Then please show us the code around those lines. Then we can surely help.

I never saw the first error yet. The second error can occur in several situations, e.g. if file functions are called with an incorrect path.

Regards, Madshi.
0
 
LVL 5

Expert Comment

by:Hamlet081299
ID: 7145627
"Invalid Property Settings - Programming Error" doesn;t look like a Delphi error.

I suspect this may be coming from some 3rd party component you are using.  What 3rd party components are you using.
0
 
LVL 5

Expert Comment

by:Hamlet081299
ID: 7145633
Or I guess it could be that this is some code you've inherited.  

In Delphi try doing a "Find in files" for "Invalid Property Settings" and select the "Search all files in project" option.  With luck this may turn up your problem.
0
 

Author Comment

by:dabestprogrammerindauniverse
ID: 7147889
Shouldn't "dabestprogrammerindauniverse" know the answer to those questions?   :-)   Just joking...

<--hahaha...i'm supposed to be the best after i'm done asking all my questions :) just kidding

actually, the io error 123 isn't very easy to catch in my program...it happens very seldom and usually it doesn't happen when i run my code in delphi that's y i wanna know the causes so i can search for it in my code :)

thanks madshi and hamlet!
0
 

Author Comment

by:dabestprogrammerindauniverse
ID: 7147899
hamlet...
you're right, the "Invalid Property Settings - Programming Error" is an error by XceedZip, a third party component that i use...thanks!
:)
0
 
LVL 5

Expert Comment

by:Hamlet081299
ID: 7147901
Which happens first the io error 123 or the "Invalid property settings"?

This is important, because often only the first error really matters (although additional errors usually indicate poor error recovery).
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:dabestprogrammerindauniverse
ID: 7148342
Actually, they happen independently. The I/O error happends during a different instance.  Thanks! :)
0
 
LVL 20

Accepted Solution

by:
Madshi earned 100 total points
ID: 7148398
You might want to try my package "madExcept", which can catch exceptions at runtime (outside of the IDE) and then tell you where in your sources it happended. It is free for non-commercial usage (only). See here:

http://help.madshi.net/Data/madExcept.htm

However, in your specific situation my package can only help if the io error is raised as an exception. If someone only shows a message box without raising an exception, it's not caught by madExcept.

Regards, Madshi.
0
 

Author Comment

by:dabestprogrammerindauniverse
ID: 7155925
thanks madshi...what do you exactly mean by:

"However, in your specific situation my package can only help if the io error is raised as an exception. If someone only shows a message box without raising an exception, it's not caught by madExcept."

thanks again...i'll try out your package and see how it helps

0
 

Author Comment

by:dabestprogrammerindauniverse
ID: 7155926
thanks madshi...what do you exactly mean by:

"However, in your specific situation my package can only help if the io error is raised as an exception. If someone only shows a message box without raising an exception, it's not caught by madExcept."

thanks again...i'll try out your package and see how it helps

0
 
LVL 20

Expert Comment

by:Madshi
ID: 7156380
I mean, madExcept detects *exceptions*, nothing else. If you do this:

raise Exception.Create('test');

Or if you do this:

PInt(0)^ := 0;  // access violation

Or anything like that, then madExcept will catch it. But if you do this:

if CreateFile(...) = INVALID_HANDLE_VALUE then
  MessageBox(0, 'Error in CreateFile', 'error', MB_ICONERROR);

Or something similar, then madExcept will NOT catch it. Why should it? For madExcept it looks like a plain message box. No reason to catch it.
0
 

Author Comment

by:dabestprogrammerindauniverse
ID: 7156670
got it...will try it and points are on the way!
thanks!
0
 
LVL 20

Expert Comment

by:Madshi
ID: 7156677
Please give me the points only if my stuff helps you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now