Interface Not Supported Error Delphi
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack delphi "interface not supported" eintfcasterror Overflow the company Business Learn more about hiring developers or posting ads with us excel interface not supported Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up EIntfCastError 'Interface not supported' when run as a TServiceApplication up vote 0 down vote favorite 1 I'm having problems using a COM-object when I run my application as a Windoes Service, i.e. TServiceApplication. The exception EIntfCastError 'Interface not supported' is raised. If I run the application as a normal Delphi app then it works fine, including if I run as a service using srvany.exe type IMyInter = interface (IUnknown) ['{9E6B311E-C6D3-4687-B272-3FBE9DBC2DD6}'] //... end; type TMyObject = class private FMyInter: IMyInter; published constructor Create(const ClassID: TGUID); end; constructor TMyObject.Create(const ClassID:TGUID); begin CoInitialize(nil); FMyInter := CreateComObject(ClassID) as IMyInter; //.... end; It seems like the error is raised after the call to CreateComObject when the result is going to be assigned to FMyInter. Both the application and COM-object are 32-bit. I'm running on Windows 7 64bit and using Delphi XE3. The COM-object has been registered with regsvr32.exe Any help would be appreciated delphi com windows-services share|improve this question edited Apr 24 '13 at 15:33 Jerry Dodge 11.6k1380194 asked Apr 24 '13 at 15:25 Lars 817515 1 Where is the class that implements IMyInter interface? –iPath ツ Apr 24 '13 at 19:43 Have you tried taking srvany out of the picture by creating a new service application yourself and then adding just the code you need to reference the COM server? We have apps that can be started as a service or standalone (command line option to the app itself) and have no trouble using out of process COM dll's. –Marjan Venema Apr 25 '13 at 6:10 @iPath – TmyObject is the class that implements IMyInter. –Lars Apr 25 '13 at 10:38 @Marjan Venema - It's my service/standalone app that I'm struggling to get to work in service mode i.e it works in standalone mode.
get past "Interface not supported" when I export to Excel? How can I get past "Interface not supported" when I export to Excel? TNT.tips from Bob! TNT.tips Blog SmartPath Video Series Tags Analysis Developer Guides donation DonorHub Dropbox eTapestry Forums Help Getting Started Gift Input from Web Google How TntConnect Works Import Contacts Linux Mac Issues Macintosh Mail Merge MailChimp Managing Database Files Outlook Sync Sign In Issues Survey Results TntMPD 3.0 Training and Help Translation Troubleshooting View more Table of Contents What are the 2005 survey results?What were the most frequently asked questions in http://stackoverflow.com/questions/16195992/eintfcasterror-interface-not-supported-when-run-as-a-tserviceapplication the 2005 survey?What kind of training is being offered for TntMPD?How can I run TntMPD on my Mac?How do I install and start using TntMPD? What are the advanced Outlook settings?What are all the Contact import fields?How do I import contacts from my previous database? How do download names and addresses from my ministry? What and where is my database?Why is my main screen in https://www.tntware.com/tntconnect/faqs/en/how-can-i-get-past-quot-interface-not-supported-quot-when-i-export-to-excel.aspx TntMPD mostly grayed out?How do I shrink the size of my database?Why and how should I backup my database?How do I transfer my database to another computer?How do I manually keep two copies of my database in sync?How do I keep two copies of my database in sync using TntSync?How should I understand "TNT Phase"? How does TntConnect determines monthly average? Why is a certain donation not downloading into TntConnect?How do I link a donation account which was accidentally linked to the wrong contact? How do I get past the many Outlook security prompts? What is the procedure for obtaining and importing archived CCCI donation data into TntMPD? How do I download from multiple accounts into one TntMPD database? Once I'm in Microsoft Word, how do I mail merge envelopes or labels?How do I create an installation CD for TntConnect to share with others? How can I reduce the size of a digital pictures using Office 2000? How can my organization become "TNT-compatible"?How can I custom implement the web-based TntConnect DataSync protocol?How would I send our staff a monthly TntConnect DataSync file?How can I develop add-ons for TntConnect?Gifts Removed From TntMPDTroubleshootin
This question is not answered. Helpful answers available: 1. Correct answers available: 1. Reply to this Thread Search Forum Back to Thread List Replies: 2 - Last Post: Oct 25, 2015 8:43 PM Last Post By: Mike Dumble Mike Dumble Posts: https://forums.embarcadero.com/thread.jspa?messageID=708094 4 Registered: 11/13/08 Interface not supported error when starting XE8 Reply Posted: Sep 15, 2015 12:19 AM delphi_xe8 , install I have suddenly started getting a popup message box entitled Delphi XE8 containing http://www.delphipages.com/forum/showthread.php?t=55388 the message "Interface Not Supported" when I try to run Delphi XE8. Clicking Ok on the message box simply cause the same message box to reappear a number of times before I then get an "Access interface not violation at address 101A48E8 in module bds.exe" message that repeats until eventually a box message box appears and I am stuck. Task manager is unable to terminate bds,exe and hte only solution is to reboot my machine. I am unable to run XE8 at all. I had been running XE8 quiet OK. I swap between Delphi 2006 and Delphi XE8 but terminating the current version of Delphi, running scripts to change registry interface not supported settings for known packages, environment variables and my path variable, then start the new version of Delphi. I have been using this technique for many weeks since installing XE8 without any problems to date. My current problem started immediately after I switched from XE8 to Delphi 2006 and then back this afternoon. Does any one have any ideas and what might be causing this or how I could go about fixing it? Is there a repair option available for XE8? I note that the installer creates a "Modify, Repair, Uninstall" menu item, but that just runs the setup program which only has the options to Install, Modify or Uninstall - not repair. I am running update 1 of XE8 on Windows 7. Mike Dumble quinn wildman Posts: 830 Registered: 12/2/99 Re: Interface not supported error when starting XE8 Helpful Reply Posted: Sep 15, 2015 9:23 AM in response to: Mike Dumble Where I would suggest you start is here: http://support.embarcadero.com/article/42597 Mike Dumble wrote: I have suddenly started getting a popup message box entitled Delphi XE8 containing the message "Interface Not Supported" when I try to run Delphi XE8. Clicking Ok on the message box simply cause the same message box to reappear a number of times before I then get an
Threads Show Posts Tag Search Advanced Search Go to Page... Thread Tools Display Modes #1 05-08-2002, 07:14 PM khoatn Junior Member Join Date: Dec 2001 Posts: 19 interface not supported error in COM & DCOM Hi, I made a .DLL and config a COM in Component Services. It work quite OK in one computer. However, when I connect from a different computer using DComConnect, it is fail. The error message is 'Interface not supported'. I appreciated if you could help. Thank you. khoatn khoatn View Public Profile Send a private message to khoatn Visit khoatn's homepage! Find all posts by khoatn #2 05-08-2002, 10:54 PM DarkHorse Senior Member Join Date: Dec 2000 Posts: 1,636 RE: interface not supported error in COM & DCOM Hi, Seems like that machine doesnt have DCOM installed. There is a file called DCOMConfig, or something like that. Serach for it, in the other PC. Pls. accept if it helped. Thanx Tomy. DarkHorse View Public Profile Send a private message to DarkHorse Visit DarkHorse's homepage! Find all posts by DarkHorse #3 05-09-2002, 01:28 PM JaneBerez Senior Member Join Date: Jan 2001 Posts: 121 RE: interface not supported error in COM & DCOM I had the same problem with DCOM. Try using Socet connection. It will work without a problems JaneBerez View Public Profile Send a private message to JaneBerez Visit JaneBerez's homepage! Find all posts by JaneBerez #4 05-09-2002, 06:31 PM khoatn Junior Member Join Date: Dec 2001 Posts: 19 RE: interface not supported error in COM & DCOM Hi, Oh, both computer is Windows 2000 professional and had DComcnfg. The problem may relate to security because when I create the same user and password as the COM interactive on the other computer then it work. It is unreasonable to force all client to login with same user name and password. isn't it khoatn khoatn View Public Profile Send a private message to