.NET

Reply
Valued Contributor
ognyandim
Posts: 59
Registered: ‎05-21-2008
Message 11 of 17 (370 Views)

Re: Unloading DLL

01-03-2012 05:37 AM in reply to: ranjith0326

Look at the screenshot. Try settings both "Copy Local" properties to false. That is because AutoCAD loads its own .dll-s. You need yours only for reference in your IDE.

Contributor
ranjith0326
Posts: 24
Registered: ‎04-16-2011
Message 12 of 17 (349 Views)

Re: Unloading DLL

01-03-2012 10:52 PM in reply to: ognyandim

Dear ognyandim,

 

Thank u very much...

My problem was solved after changing the copy_local as false.

 

Im facing one more problem on this code..

 

http://www.mediafire.com/download.php?3ct0na9qk351j42

 

Find the latest code from above link..

 

while using first time im not getting any error..

but if im using next time the same class without closing the autocad, im getting error on 

 

myDBt.CloseInput(True)    <- This location.. use the attached drawings for testing purpose

 


Regards,

R.Ranjith
Contributor
ranjith0326
Posts: 24
Registered: ‎04-16-2011
Message 13 of 17 (348 Views)

Re: Unloading DLL

01-03-2012 10:59 PM in reply to: ognyandim

Please find attached image for my Error Location..

 

Function name is read_table()

Regards,

R.Ranjith
Valued Contributor
ognyandim
Posts: 59
Registered: ‎05-21-2008
Message 14 of 17 (345 Views)

Re: Unloading DLL

01-03-2012 11:25 PM in reply to: ranjith0326

I suppose you are trying to WRITE to something while you have opened the DB FORREAD. Try changing the above rows from OpenMode.ForRead to OpenMode.ForWrite.

Contributor
ranjith0326
Posts: 24
Registered: ‎04-16-2011
Message 15 of 17 (343 Views)

Re: Unloading DLL

01-04-2012 12:05 AM in reply to: ognyandim

Dear ognyandim

 

I'm reading the data, so i dont want to write anything there...

 

i was used one location as write, now i changed that too read only.

 

my doubt is first time there is no problem, while secong time only problem is coming...

 

i hope u r the correct person to findout my mistake in that code..

 

Thanks for your help...

Regards,

R.Ranjith
Valued Contributor
ognyandim
Posts: 59
Registered: ‎05-21-2008
Message 16 of 17 (335 Views)

Re: Unloading DLL

01-04-2012 03:25 AM in reply to: ranjith0326

By looking at your code I can give you this advice :

0. Start documenting your code with reasonable comments.

0a. Read this also - http://catb.org/~esr/faqs/smart-questions.html - I have read it myself and saved myself a fortune of others time and mine ofcourse.

1. Read the developers tutorial - I have posted a link before. There are lots of things you must read in order to continue using the managed api without having lots of problems and without asking such questions.

2. Get the ObjectARX Docs and open arxmgd.chm file and read the docs for every method you are using.

 

Sincerely, I do not know why are using the CloseInput() method. I suppose your intent was different and I dont know what it is. Please go through the tutorials provided by Autodesk.

 

Please start from 0 and 0a before anything else. This will save you lots of silly mistakes and will improve your productivity many times.

Contributor
ranjith0326
Posts: 24
Registered: ‎04-16-2011
Message 17 of 17 (327 Views)

Re: Unloading DLL

01-04-2012 04:24 AM in reply to: ognyandim

Thank u ognyandim..

 


Regards,

R.Ranjith

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community