-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
Delphi To/From
To/FromCODEGuides
Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

November Edition
Subscribe now! It's Free!
Enter your email:

   ► MB Lobby ► Pascal and Delphi Coding Board ► Delphi COM / ActiveX / DCOM Topic   Print This     

OLEServer... Bug?

OLEServer... Bug? in Delphi COM / ActiveX / DCOM topic (part of our Pascal and Delphi Coding group).

Quick Search: OLEServer   OLEServer Bug  
gordon
 (Inactive)
-- USA
I have as many of you will be aware been fighting a losing battle with a COM object I have been trying to import, and utilise. I

I have after much investigation discovered that all the errors I am getting and in the OleServer.pas file on the event called

TServerEventDispatch.GetTypeInfoCount

I then get an error code:

"access violation at 0x0044204d: write address of 0x00000003"

Is this a known bug of OleServer.pas or something to do with my imported COM object. The code for my object is in one of my previous threads. (UnImported CoClass Routines I think)

Hope someone can help as I am at the end of the plank, with a noose round my neck as far as this is concerned. Big Grin!Not Actually however it is getting to be like that.

Thanks in advance
 Posted 25 years ago (Thread Starter)
Comment Quote
About gordon
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #2723, 2 reply
Thread Started 6/25/2001 1:36:00 PM
View Counter=2820
Last Reply Posted 9/23/2026 5:33:58 AM)
Location=-- USA 
Joined=25 years ago   MB Posts=23  
Kim Berry
Prestwood IT
Citrus Heights, CA USA
Gordon,

From MSDN the function does:


STDMETHODIMP
CLines::GetTypeInfoCount(UINT FAR* pctinfo)
{
*pctinfo = 1;
return NOERROR;
}


So the failure is likely because pctinfo is null. Without seeing your code I don't know how this translates. Are you sure you are doing a Create on all necessary objects?

Old UBB Archived Link: [URL=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/automat/htm_hh2/chap5_3alw.asp]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/automat/htm_hh2/chap5_3alw.asp[/URL]


The Delphi help specifies that the address of an integer must be sent. Passing a constant zero might also account for the failure.


type HResult = Longint;
function GetTypeInfoCount(out Count: Integer): HResult; stdcall;


Description

GetTypeInfoCount implements the IDispatch interface GetTypeInfoCount method. For components that support interfaces, GetTypeInfoCount calls this method for the interface supported by the component. The out parameter points to a location that receives the number of type information interfaces provided by the object. If the object provides type information, this number is 1; otherwise the number is 0.

--
Kim Berry
Senior Programmer Analyst

 Posted 25 years ago
Comment Quote
About Kim Berry
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Kim Berry

Kim Berry is an experienced coder currently specializing in VS.Net C# coding of WinForm and WebForm applications. Kim currently works part time for Prestwood IT Solutions and participates in this online community when time allows. Kim worked fulltime at Prestwood Software for four years and is still available for part time evenings and weekends work. He was one of the main Prestwood developers developing ASPSuite and has coded in many languages including C, Visual Basic, Delphi, and Visual Studio.Net.


Post ID #2724 (Level 1.1)  Reply to 2723
Thread Started 6/25/2001 2:01:00 PM
View Counter=2
Location=Citrus Heights, CA USA 
Joined=24 years ago   MB Posts=65   KB Posts=19   BLOG, Topics=4  
Most Recent Post
PS_6548
ramsaybolt
-- USA

My flatmate and I were bored on a rainy evening. I found Olympia Casino on my laptop. The site has a clean design and plenty of options. For Australian players, there are welcome offers and ongoing promotions. We played a few slots and a live dealer game. It was a fun way to pass the time. The site worked well on mobile too.

 Posted 51 days ago
Comment Quote
About PS_6548
Visit Profile
Membership pending.
Member subscribes to this thread with a verified email.
Member pending approval.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #23643 (Level 2) and Parent is 2723
Reply Posted 9/23/2026 5:33:45 AM
Location=-- USA 
Joined=56 days ago   MB Posts=7  
Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1136A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #2723 Counter
2820
Since 4/2/2008
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2026 Prestwood IT Solutions.   [Security & Privacy]  

 
↑