Weak interface references in earlier versions of Delphi
I am working on component which need to be supported in earlier version of Delphi (starting from Delphi 6) and I have problem with reference counting of interfaces.
Last days I am trying to learn more about this topic, and I have collected this info:
- XE2 (or maybe XE3) include [weak] attribute, but I need to support very old Delphi 6.
- At few places I have read that if I declare variable as pointer, RefCount will not be incremented. There are some traps with this approach (which I already discovered :( ), but it seems that this approach work when I assign value. But, as soon I...Erros Invalid reference to object / Adding reference to object / Invalid server ID in backlink obituary is purged
Content-Type: text/plain; charset=iso-8859-1
I have a customer who gets a lot of the above error messages.
I'm thinking, it will be a timinge issue that the server cannot backlink =
or sync the Database? Am I right? Or shell this be other problems?
The Invalid Reference to Object is shown on User Object, simular to the =
"Adding reference to object".=20
Their are 3 Netware Servers in the Network, and 2 of the are a 2 Node =
The eDir is 126.96.36.199 and the OS is NW6.5 S...DP Delphi-Reference, Meta-Searchengine for Delphi
I have just revived an old project, a meta-searchengine for Delphi:
it searches simultaneous:
* delphi 2009 online-help hosted by embarcadero
* msdn-library psdk (win32)
* delphi-praxis codelibrary: ready-to-use code-snippets from one of germanys
* delphi-praxis forums
This project is still in progress and particularly help-content from delphi
2010 is (yet) missing. Content from MSDN needs to be complemented
Anyway - I think that searching the reference(s) AND realworld-examples in
just a single click gi...To Reference or not to Reference?
My questions are numbered in bold for easier answering...
I'm taking over an existing asp.net web app and have a question on references. When I right-click the web project and check the property pages, there are several dll references listed, some with a type BIN and others with a type GAC. 1) Why are some of listed in the web.config but others aren't?
All the referenced dlls physically exist in the bin folder, including some third-party controls as a GAC type. I removed those GAC references, thinking they weren't needed because they physically exist in the bin fol...What generals generally do
Reading a McChrystal thread elsewhere, I came across someone quoting a
> I spent 33 years and four months in active military service and
> during that period I spent most of my time as a high class thug for
> Big Business, for Wall Street and the bankers. In short, I was a
> racketeer, a gangster for capitalism. I helped make Mexico and
> especially Tampico safe for American oil interests in 1914. I helped
> make Haiti and Cuba a decent place for the National City Bank boys to
> collect revenues in. I ...To Reference or not to reference
I've written a Perl program that declares a hash at the top of the
program "%myHask;". It has worked great until now when one sub program
seams to be making its own copy of the hash. I can find no typo's or
anything but there my still be one there. My question is would it be
better to pass the global hash by reference to each sub program to cut
down on possible typo errors or just leave it global and fix the problem
On 3/29/07, Dukelow, Don <firstname.lastname@example.org> wrote:
> I've written a Perl program that declares a hash at the top...delphi.general
Sorry if this is "out of topic"! but since some days ago I can't read
the group *embarcadero.public.delphi.language.delphi.general*
Does anybody know if there's something wrong with it? Or maybe is my
I get this messagge when I try to read the latest messages:
newsgroup server responded:no such article found
Perhaps the article has expired
Click here to remove all expired articles
> Sorry if this is "out of topic"! but since some days ago I can'...[Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface]Invalid date, time or timestamp value. error
Hi everyone, have a problem with this line of code:
thisquery = "select type as tender from dlpaid where stor = '"&istor&"' and tran = '"&itran&"' and till = '"&itill&"' and date1 = '"&right(idate, 4)&"-"&right(left(idate, 5), 2)&"-"&left(idate, 2)&"' "set ConnRsOrig =oconnPV.execute(thisquery)
This error occurs sometimes but not all the time:
Refund Checking fault occurredMicrosoft OLE DB Provider for ODBC Drivers error '800...Interface Reference Error
The following piece of code is in a VB file IZipCode.VB that is in the App_Code directory.Public Interface IZIPCode
ReadOnly Property ZIPCode() As String
It is referenced in a user control by the following:
<%@ Implements Interface="IZIPCode" %>
When I run the page that has the user control on it, I get the following error message:
Parser Error Message: Could not load type 'IZIPCode'.Source Error:
Line 1: <%@ Control Language="VB" ClassName="ZIPCodePart" %>
Line 2: <%@ Implements Interface=&qu...Invalid References error.
I am getting the following error messages when I run the sanity
check and my bugs listed as invalid refernces are missing,Can you
please suggest how to recover or view all these bugs.Please find the
error message below and let me know a solution to solve this issue.
Bad value "246" found in bugs_activity.bug_id
Bad value "563" found in bugs_activity.bug_id
Bad value "568" found in bugs_activity.bug_id
Bad value "628" found in bugs_activity.bug_id
Remove invalid references to non existent bugs.
.... from bug_group_map.bu...Interface reference counting...
Normally I'm used to manage correctly the interfaces and
related reference counter.
Today I need to bypass the native system and get an interface
without increment the reference counter.
Unfortunately I isn't able to understand if this code could work
fine, but if you have any suggestion PLEASE help me ;)
function TBridgeManager.GetChannel(ChannelIndex: Integer): IBridgeChannel;
if (ChannelIndex< 0) or (ChannelIndex> FChannels.Count) then
Result := nil;
...Interface reference counting
I rarely using Interface objects in my application development, no joke
although it is weired.
When I create objects implement interface, eg
TMyObject1 implements interface1.
TMyObject2 implements interface1.
I create instances for TMyObject1 and TMyObject2.
Does interface1 has count 2?
Or I have totally wrong in concept?
Pak Tse wrote:
> Does interface1 has count 2?
No. Interface references are counted, not object
references. See http://dn.codegear.com/article/30125 for an
Bill Todd (TeamB)
A better article is http://dn.codegear.com/article/...Invalid reference to object
While running dsrepairs to troubleshoot a different problem (see the
on -672 in iManager), I have noticed a large amount of "Invalid
object" error messages.
They seem to be mostly ZFD workstation objects, but are also server's
sometimes. After running dsrepair multiple times, until no errors,
problem returns either on the same or new objects.
Here are some copies of the error(s):
ERROR: Invalid reference to object, ID: 0000896F, value is purged
Attribute 3F828177, Reference
Object ID: 00008904, DN: OU=LCSC.O=REMOTE.T=POST
ERROR: I...Delphi like interface
I'm making an application with a Delphi like interface. It has a main toolbar form with the menu on it. It has child editor forms.
The problem I have is the menu shortcuts don't work in the child forms. This makes sense as they have the input focus, not the toolbar form.
What I would like to know is how I can implement menu shortcuts from the child windows to the main toolbar?
I tried catching the various WM_ messages I thought should do it in the child and passing them to the toolbar, but that didn't work. Probably I used the wrong WM_ messages.
justin temby wrote: