• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Valued Contributor
    Posts: 59
    Registered: ‎05-21-2008

    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.

    Please use plain text.
    Contributor
    ranjith0326
    Posts: 24
    Registered: ‎04-16-2011

    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
    Please use plain text.
    Contributor
    ranjith0326
    Posts: 24
    Registered: ‎04-16-2011

    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
    Please use plain text.
    Valued Contributor
    Posts: 59
    Registered: ‎05-21-2008

    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.

    Please use plain text.
    Contributor
    ranjith0326
    Posts: 24
    Registered: ‎04-16-2011

    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
    Please use plain text.
    Valued Contributor
    Posts: 59
    Registered: ‎05-21-2008

    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.

    Please use plain text.
    Contributor
    ranjith0326
    Posts: 24
    Registered: ‎04-16-2011

    Re: Unloading DLL

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

    Thank u ognyandim..

     


    Regards,

    R.Ranjith
    Please use plain text.