Solved

Errors

Posted on 2002-07-11
13
153 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

707 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

17 Experts available now in Live!

Get 1:1 Help Now