View previous topic :: View next topic |
Author |
Message |
hotzenplotz
Joined: 25 Mar 2006 Posts: 15
|
Posted: Sun Jan 10, 2010 12:58 pm Post subject: juno COM programming - Error: Access Violation |
|
|
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 |
|
|
Numpsy
Joined: 22 Aug 2009 Posts: 27
|
Posted: Wed Jan 13, 2010 2:24 pm Post subject: Re: juno COM programming - Error: Access Violation |
|
|
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 |
|
|
|