.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Vista and Automation Servers

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
277 Views, 4 Replies

Vista and Automation Servers

Hi All,

I've written an Automation Server using VB .NET and I'm using Lisp to create
objects via vlax-create-object.
I've recompiled everything when our upgrade for AutoCAD Civil3D 2008 arrived
and everything runs fine.
That is, everything runs fine as long as the operating system is either
Windows 2000 or Windows XP.

On Vista, however, I can't get it to run.
When I try to create an object, it doesn't get created unless I load the
Acaddoc.lsp file via the Visual Lisp editor and then step through the code
one statement at a time.

The problem seems to be that if I use vlax-create-object, the object doesn't
get created in time for the next statement which tries to access the
object's methods or properties.
It's just as if there is a synchronization problem...

Has anyone else experienced this problem?

Thanks in advance. Message was edited by: Discussion Admin
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

Your COM server is a DLL or an EXE ?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Guido Rooms" wrote in message news:5643898@discussion.autodesk.com...
Hi All,

Yesterday I've posted a message like this one in the newsgroup for Lisp
users.
Since my problem has more to do with .NET than with Lisp, I'm adding a post
here.

The problem is this:

I've written an Automation Server using VB .NET and I'm using Lisp to create
objects via vlax-create-object.
I've recompiled everything when our upgrade for AutoCAD Civil3D 2008 arrived
and everything runs fine.
That is, everything runs fine as long as the operating system is either
Windows 2000 or Windows XP.

On Vista, however, I can't get it to run.
When I try to create an object, it doesn't get created unless I load the
Acaddoc.lsp file via the Visual Lisp editor and then step through the code
one statement at a time.

The problem seems to be that if I use vlax-create-object, the object doesn't
get created in time for the next statement which tries to access the
object's methods or properties.
It's just as if there is a synchronization problem...

Has anyone else experienced this problem?

Thanks in advance.
Message 3 of 5
Anonymous
in reply to: Anonymous

It's a DLL.
(I'm using VS2005 to compile it.)

"Tony Tanzillo" wrote in message
news:5644050@discussion.autodesk.com...
Your COM server is a DLL or an EXE ?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Guido Rooms" wrote in message news:5643898@discussion.autodesk.com...
Hi All,

Yesterday I've posted a message like this one in the newsgroup for Lisp
users.
Since my problem has more to do with .NET than with Lisp, I'm adding a post
here.

The problem is this:

I've written an Automation Server using VB .NET and I'm using Lisp to create
objects via vlax-create-object.
I've recompiled everything when our upgrade for AutoCAD Civil3D 2008 arrived
and everything runs fine.
That is, everything runs fine as long as the operating system is either
Windows 2000 or Windows XP.

On Vista, however, I can't get it to run.
When I try to create an object, it doesn't get created unless I load the
Acaddoc.lsp file via the Visual Lisp editor and then step through the code
one statement at a time.

The problem seems to be that if I use vlax-create-object, the object doesn't
get created in time for the next statement which tries to access the
object's methods or properties.
It's just as if there is a synchronization problem...

Has anyone else experienced this problem?

Thanks in advance.
Message 4 of 5
Anonymous
in reply to: Anonymous

Have you tried using vla-getinterfaceobject instead of
vlax-create-object ?

The latter is for mainly for starting and connecting to
out-of-process servers, not in-process DLLs.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Guido Rooms" wrote in message news:5644199@discussion.autodesk.com...
It's a DLL.
(I'm using VS2005 to compile it.)

"Tony Tanzillo" wrote in message
news:5644050@discussion.autodesk.com...
Your COM server is a DLL or an EXE ?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Guido Rooms" wrote in message news:5643898@discussion.autodesk.com...
Hi All,

Yesterday I've posted a message like this one in the newsgroup for Lisp
users.
Since my problem has more to do with .NET than with Lisp, I'm adding a post
here.

The problem is this:

I've written an Automation Server using VB .NET and I'm using Lisp to create
objects via vlax-create-object.
I've recompiled everything when our upgrade for AutoCAD Civil3D 2008 arrived
and everything runs fine.
That is, everything runs fine as long as the operating system is either
Windows 2000 or Windows XP.

On Vista, however, I can't get it to run.
When I try to create an object, it doesn't get created unless I load the
Acaddoc.lsp file via the Visual Lisp editor and then step through the code
one statement at a time.

The problem seems to be that if I use vlax-create-object, the object doesn't
get created in time for the next statement which tries to access the
object's methods or properties.
It's just as if there is a synchronization problem...

Has anyone else experienced this problem?

Thanks in advance.
Message 5 of 5
Anonymous
in reply to: Anonymous

Tony,

I've tried to use vla-getinterfaceobject but can't get it to work.
I'm getting : Automation Error. Problem in loading application.
Strangest of all, I tried to use it at the command prompt and this worked,
exactly one time (!?).
After that, I kept getting the above mentioned error. Even after rebooting,
reinstalling my dll and whatever you like.
Everything is working fine everywhere, except on Vista.

Greetings.
Thanks for your replies.

"Tony Tanzillo" wrote in message
news:5644380@discussion.autodesk.com...
Have you tried using vla-getinterfaceobject instead of
vlax-create-object ?

The latter is for mainly for starting and connecting to
out-of-process servers, not in-process DLLs.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Guido Rooms" wrote in message news:5644199@discussion.autodesk.com...
It's a DLL.
(I'm using VS2005 to compile it.)

"Tony Tanzillo" wrote in message
news:5644050@discussion.autodesk.com...
Your COM server is a DLL or an EXE ?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

"Guido Rooms" wrote in message news:5643898@discussion.autodesk.com...
Hi All,

Yesterday I've posted a message like this one in the newsgroup for Lisp
users.
Since my problem has more to do with .NET than with Lisp, I'm adding a post
here.

The problem is this:

I've written an Automation Server using VB .NET and I'm using Lisp to create
objects via vlax-create-object.
I've recompiled everything when our upgrade for AutoCAD Civil3D 2008 arrived
and everything runs fine.
That is, everything runs fine as long as the operating system is either
Windows 2000 or Windows XP.

On Vista, however, I can't get it to run.
When I try to create an object, it doesn't get created unless I load the
Acaddoc.lsp file via the Visual Lisp editor and then step through the code
one statement at a time.

The problem seems to be that if I use vlax-create-object, the object doesn't
get created in time for the next statement which tries to access the
object's methods or properties.
It's just as if there is a synchronization problem...

Has anyone else experienced this problem?

Thanks in advance.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost