FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

juno COM programming - Error: Access Violation

 
Post new topic   Reply to topic     Forum Index -> Juno
View previous topic :: View next topic  
Author Message
hotzenplotz



Joined: 25 Mar 2006
Posts: 15

PostPosted: Sun Jan 10, 2010 12:58 pm    Post subject: juno COM programming - Error: Access Violation Reply with quote

Hi I have problems with my COM programming. I want to access a function from a CAD program. I have already a tlbmpd file: http://www.pastebin.org/67515 . My code is:

Code:
import juno.com.core, imsigx;

void main() {

   IApplication app = Application.coCreate!(IApplication);
   releaseAfter (app, {
      app.Quit();
   });
}


I don't have an compiler error but I always get a access violation :/ I hope anyone can show me what's wrong.
Back to top
View user's profile Send private message
Numpsy



Joined: 22 Aug 2009
Posts: 27

PostPosted: Wed Jan 13, 2010 2:24 pm    Post subject: Re: juno COM programming - Error: Access Violation Reply with quote

hotzenplotz wrote:

I don't have an compiler error but I always get a access violation.


Does the coCreate succeed (is app null)?


If not, you could try setting the COM ExecutionContext to ExecutionContext.LocalServer. As discussed in the thread @

http://www.dsource.org/forums/viewtopic.php?t=4786&start=15

It's needed to create some things.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Juno All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group