How to insert a web link?
COM Callable Library Problem
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > .Net Development > COM Callable Library Problem 29 January 2008 13:33:05

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

COM Callable Library Problem

Brady Kelly 29 January 2008 13:33:05
 I've just created a COM Callable C# class library, registered with the
Register for COM Interop option, just for testing. Then I'm using some VBA
code to instantiate the object and call it's only method. When I run the
code below, I get an "Object reference not set to an instance of an object."
error, but my object isn't Nothing.



I suspect the interop to be the problem. Has anyone encountered anything
like this before?



Set pdGen = New PdfGenerator.PdfGen­erator <My C# class>

ret = pdGen.GeneratePdf(x­mlPath, conn)


===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Daniel Petersson 29 January 2008 13:33:05 permanent link ]
 if pdGen isn't null then it quite likely that some internal code in your PdfGenerator fails.

attach a debugger and set it to "break on throw" exceptions.
( or simply check the StackTrace of the thrown exception )

regards,
Daniel
___________________­____________________­_
From: Discussion of development on the .NET platform using any managed language [DOTNET-CLR@DISCUSS.DEVELOP.COM] On Behalf Of Brady Kelly [brady@CHASESOFTWARE.CO.ZA]
Sent: Monday, January 28, 2008 4:01 PM
To: DOTNET-CLR@DISCUSS.­DEVELOP.COM
Subject: [DOTNET-CLR] COM Callable Library Problem

I've just created a COM Callable C# class library, registered with the
Register for COM Interop option, just for testing. Then I'm using some VBA
code to instantiate the object and call it's only method. When I run the
code below, I get an "Object reference not set to an instance of an object."
error, but my object isn't Nothing.



I suspect the interop to be the problem. Has anyone encountered anything
like this before?



Set pdGen = New PdfGenerator.PdfGen­erator <My C# class>

ret = pdGen.GeneratePdf(x­mlPath, conn)


===================­================
This list is hosted by DevelopMentor? http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > .Net Development > COM Callable Library Problem 29 January 2008 13:33:05

see also:
R: [PHP-GTK] [pimg] #0.0.12 (some…
compile errors with 1.0.0
Fedora php-gtk-1.0.0 compile problems
пройди тесты:
see also:
Wrong using ok computer
Hello All!
Colin Powell

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .