Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / October 2004

Tip: Looking for answers? Try searching our database.

80004003 Invalid Pointer when exposing .net assembly to COM

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard Murillo - 31 Mar 2004 18:21 GMT
I am attempting to setup an API that will bridge managed code into an older legacy system. When I follow the directions in MSKB 817248 on exposing a .NET Assembly for COM Interop (or have VS.Net 2003 do it for me) it successfully registers the assembly in COM, however, i cannot create an instance of the object. It throws the following message

Error: Invalid Pointe
Code: 8000400
Source: (null

(from the createobject method in VBS)

I have also tried adding the TLB as a reference and creating the object that way. Still no luck, though i get intellisense against the object

Any help would be appreciated

Regards
DotNetJunkies User - 27 Sep 2004 14:02 GMT
Not sure why,

try putting these two lines immediately before your class declaration:

    [ Transaction(TransactionOption.RequiresNew) ]
    [ ObjectPooling(true, 5, 10) ]

---
Christopher Eck [MSFT] - 30 Sep 2004 18:51 GMT
Make sure you aren't passing bad parameters to the CreateInstance call.  
That is likely causing your issue.

Christopher Eck [MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.
DotNetJunkies User - 07 Oct 2004 23:12 GMT
Was this problem ever resolved?  I'm investigating the same error, also when exposing a .NET assembly to COM, but it's not consistently reproduceable.

---

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.