?
Solved

[Fatal Error]

Posted on 2001-07-08
13
Medium Priority
?
417 Views
Last Modified: 2010-04-06
[Fatal Error] PING.PAS(1): Program or unit 'Ping.pas' recursively uses itself

What can be done to prevent this message.. and what to change to solve this
0
Comment
Question by:urosv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
  • +3
13 Comments
 
LVL 13

Expert Comment

by:Epsylon
ID: 6262663
See if ping.pas has 'ping' in the uses clause somewhere...
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 6262664
If so, remove it of course.
0
 
LVL 1

Author Comment

by:urosv
ID: 6262704
unit Ping;

interface

uses
  Windows, Messages, SysUtils, Classes, Winsock, Icmp;

So The Ping UNIT Does not USE Ping...
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 13

Expert Comment

by:Epsylon
ID: 6262715
There may be more than one uses clause per unit. Did you check that?
0
 
LVL 1

Author Comment

by:urosv
ID: 6262741
No there is only one USES Clause in this UNIT... this it the PING unit witch is called from main program called u_ping...

The u_PING uses ping in the uses clause but it should use it because it is needed by program...
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 6262824
Then I have no idea...
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 6263269
How about doing a search on your app for the word Ping and see if it is being used in your code. I am not having this problem so I suspect your code is calling on in it some way that the compiler thinks is a recursive use of Ping. If you find nothing then try unistalling FPiette and install it as if you were installing it for the first time.


The Crazy One
0
 

Expert Comment

by:felonious
ID: 6263505
(since i dont know what the unit is, and haven't seen your code I'm kinda shooting in the dark here)

also you could try moving ping to a uses clause after implementation.

it also occures to me that maybe one of the units that ping has in it uses clause may also be using ping.  i think this could trigger that message.

other then that i also have no clue and would agree with The Crazy One and just start over with fresh code.

felonious
0
 

Expert Comment

by:felonious
ID: 6263508
i would also try changing the program name to something other then u_ping, just to cover all bases
0
 
LVL 2

Expert Comment

by:joepezt
ID: 6263624
see if other units uses the ping.pas file
0
 
LVL 1

Author Comment

by:urosv
ID: 6265807
Hmm... i tryed something end its strange.... This error is become active ONLY in delphi6.. when i installed delphi5... there is no error whatsoever...

Any ideas...?
0
 
LVL 13

Accepted Solution

by:
Epsylon earned 60 total points
ID: 6265825
Delphi 6 has it's own ping unit, I guess...
0
 

Expert Comment

by:PaulKorzycki
ID: 6856754
I had this problem too, and found that it was caused by when I was creating the package.  You can't call the package the same thing as the unit itself.  ie: in my case the unit was slider.pas, and when I tried slider.dpk it would give me that error...so I used slid.dpk instead.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

770 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