<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unloading DLL in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3280257#M57829</link>
    <description>&lt;P&gt;By looking at your code I can give you this advice :&lt;/P&gt;&lt;P&gt;0. Start documenting your code with reasonable comments.&lt;/P&gt;&lt;P&gt;0a. Read this also - &lt;A href="http://catb.org/~esr/faqs/smart-questions.html" target="_blank"&gt;http://catb.org/~esr/faqs/smart-questions.html&lt;/A&gt; - I have read it myself and saved myself a fortune of others time and mine ofcourse.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;2. Get the ObjectARX Docs and open arxmgd.chm file and read the docs for every method you are using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please start from 0 and 0a before anything else. This will save you lots of silly mistakes and will improve your productivity many times.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2012 11:25:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-01-04T11:25:08Z</dc:date>
    <item>
      <title>Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278687#M57814</link>
      <description>&lt;P&gt;Greetings..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here i want to ask my doubt..&lt;/P&gt;&lt;P&gt;How to Unload the DLL from Autocad...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the reason is after loading the dll files..&lt;/P&gt;&lt;P&gt;Autocad was creating fatal error..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Give me some suggesion to avoid this error..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2012 05:56:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278687#M57814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-03T05:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278695#M57815</link>
      <description>&lt;P&gt;To unload the dll just shutdown AutoCAD or turn off your computer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without more information about error try not starting AutoCAD or leave your computer&amp;nbsp;turned off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2012 06:15:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278695#M57815</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2012-01-03T06:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278711#M57816</link>
      <description>&lt;P&gt;Jeff, there is no need to be rude and produce spam on this forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general I still dont know a way for unloading a .NET dll from AutoCAD. Probably you have used IExtensionApplication interface and doing something wrong in there and when you load the DLL and AutoCAD excutes the Initialize method the crash happens. This happens also if you have static class that initializes connection to external database that is currently unavailible or the like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you provide your code here we will help. Without code there can be only guesses as the two with wich a tried to guess your problem ( above ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try searching the forum before asking, because this question was answered more than once. Try searching &lt;A href="http://www.theswamp.org" target="_blank"&gt;www.theswamp.org&lt;/A&gt; too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2012 07:32:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278711#M57816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-03T07:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278715#M57817</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;&lt;A href="http://forums.autodesk.com/t5/user/viewprofilepage/user-id/491239" target="_self"&gt;ognyandim&lt;/A&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Find below my code..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your Decent Response..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 13px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 13px;"&gt;Ranjith&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imports Autodesk.AutoCAD.ApplicationServices&lt;BR /&gt;Imports Autodesk.AutoCAD.DatabaseServices&lt;BR /&gt;Imports Autodesk.AutoCAD.Runtime&lt;BR /&gt;Imports Autodesk.AutoCAD.EditorInput&lt;BR /&gt;Imports Autodesk.AutoCAD.GraphicsInterface&lt;BR /&gt;Imports System.IO&lt;BR /&gt;Imports Autodesk.AutoCAD&lt;BR /&gt;Imports Autodesk.AutoCAD.LayerManager&lt;BR /&gt;Imports System.Windows.Forms&lt;BR /&gt;Public Class frmmain&lt;BR /&gt;Public FNames() As String&lt;BR /&gt;Dim myTranst As DatabaseServices.Transaction&lt;BR /&gt;Public myTransMan As DatabaseServices.TransactionManager, ErrorFiles As Short = 0&lt;BR /&gt;Public myTrans As DatabaseServices.Transaction&lt;BR /&gt;Public myBTR As DatabaseServices.BlockTableRecord&lt;BR /&gt;Public myBlkRef As DatabaseServices.BlockReference&lt;BR /&gt;Public myBT As DatabaseServices.BlockTable&lt;BR /&gt;Public myDWG As ApplicationServices.Document, DrgFName As String = ""&lt;BR /&gt;Dim db_table_ary(-1, -1) As String&lt;BR /&gt;&lt;BR /&gt;Dim part_qty As String&lt;BR /&gt;Dim part_mark As String&lt;BR /&gt;Dim test_table As New Data.DataTable&lt;BR /&gt;Private Sub bt_close_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_close.Click&lt;BR /&gt;purpose = ""&lt;BR /&gt;ReDim final_part_array(-1, -1)&lt;BR /&gt;Me.Dispose()&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub bt_Add_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_Add.Click&lt;BR /&gt;If FileBrowser.ShowDialog() &amp;lt;&amp;gt; System.Windows.Forms.DialogResult.OK Then Exit Sub&lt;BR /&gt;For Each FName As String In FileBrowser.FileNames&lt;BR /&gt;Try&lt;BR /&gt;DrgFName = My.Computer.FileSystem.GetName(FName)&lt;BR /&gt;If ListBox1.Items.Count &amp;lt; 1 Then&lt;BR /&gt;ListBox1.Items.Add(0)&lt;BR /&gt;ListBox1.Items.Item(0) = DrgFName&lt;BR /&gt;Else&lt;BR /&gt;ListBox1.Items.Add(ListBox1.Items.Count)&lt;BR /&gt;ListBox1.Items.Item(ListBox1.Items.Count - 1) = DrgFName&lt;BR /&gt;End If&lt;BR /&gt;Catch ex As Exception&lt;BR /&gt;MsgBox(ex.Message)&lt;BR /&gt;End Try&lt;BR /&gt;Next&lt;BR /&gt;no_of_files.Text = ListBox1.Items.Count.ToString &amp;amp; " files Added"&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub bt_remove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_remove.Click&lt;BR /&gt;Dim piIndex As Integer&lt;BR /&gt;For piIndex = ListBox1.SelectedItems.Count - 1 To 0 Step -1&lt;BR /&gt;ListBox1.Items.Remove(ListBox1.SelectedItems(piIndex))&lt;BR /&gt;Next&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub bt_cut_list_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_cut_list.Click&lt;BR /&gt;If ListBox1.Items.Count = 0 Then&lt;BR /&gt;MsgBox("The list is empty.", vbExclamation, "Empty List")&lt;BR /&gt;Exit Sub&lt;BR /&gt;Else&lt;BR /&gt;ReDim file_list(ListBox1.Items.Count - 1)&lt;BR /&gt;For i As Integer = 0 To ListBox1.Items.Count - 1&lt;BR /&gt;file_list(i) = ListBox1.Items(i)&lt;BR /&gt;Next&lt;BR /&gt;End If&lt;BR /&gt;create_cut_list()&lt;BR /&gt;'Me.Dispose()&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub create_cut_list()&lt;BR /&gt;For a As Integer = 0 To file_list.GetUpperBound(0)&lt;BR /&gt;If FileIO.FileSystem.FileExists(file_list(a)) Then&lt;BR /&gt;read_table(file_list(a))&lt;BR /&gt;Else&lt;BR /&gt;MsgBox(file_list(a) &amp;amp; " Not available", MsgBoxStyle.OkOnly)&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;make_table()&lt;BR /&gt;'Show_Data(db_table_ary, , , , True)&lt;BR /&gt;'Me.Dispose()&lt;BR /&gt;End Sub&lt;BR /&gt;Public Sub make_table()&lt;BR /&gt;Dim drw As DataRow&lt;BR /&gt;test_table.Columns.Add("Thick", System.Type.GetType("System.Int16"))&lt;BR /&gt;test_table.Columns.Add("Piece_Mark", System.Type.GetType("System.String"))&lt;BR /&gt;test_table.Columns.Add("Total_Qty", System.Type.GetType("System.String"))&lt;BR /&gt;test_table.Columns.Add("Width1", System.Type.GetType("System.String"))&lt;BR /&gt;test_table.Columns.Add("Width2", System.Type.GetType("System.String"))&lt;BR /&gt;test_table.Columns.Add("Length", System.Type.GetType("System.String"))&lt;BR /&gt;test_table.Columns.Add("Main", System.Type.GetType("System.String"))&lt;BR /&gt;test_table.Columns.Add("Ext", System.Type.GetType("System.String"))&lt;BR /&gt;test_table.Columns.Add("Unit_Weight", System.Type.GetType("System.String"))&lt;BR /&gt;test_table.Columns.Add("Total_Weight", System.Type.GetType("System.String"))&lt;BR /&gt;test_table.Columns.Add("Type", System.Type.GetType("System.String"))&lt;BR /&gt;test_table.Columns.Add("Shop_Information", System.Type.GetType("System.String"))&lt;BR /&gt;test_table.Columns.Add("Part_Mark", System.Type.GetType("System.String"))&lt;BR /&gt;test_table.Columns.Add("Part_Qty", System.Type.GetType("System.String"))&lt;BR /&gt;test_table.Columns.Add("Piece_Qty", System.Type.GetType("System.String"))&lt;BR /&gt;test_table.Columns.Add("Piece_Per_Assembly", System.Type.GetType("System.String"))&lt;/P&gt;&lt;P&gt;For i As Integer = 0 To db_table_ary.GetUpperBound(1)&lt;BR /&gt;drw = test_table.NewRow()&lt;BR /&gt;If db_table_ary(0, i).StartsWith("S-") Then&lt;BR /&gt;drw("Thick") = 200&lt;BR /&gt;Else&lt;BR /&gt;drw("Thick") = Val(db_table_ary(4, i))&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;drw("Piece_Mark") = db_table_ary(0, i)&lt;BR /&gt;drw("Total_Qty") = ""&lt;BR /&gt;drw("Width1") = db_table_ary(5, i)&lt;BR /&gt;drw("Width2") = db_table_ary(6, i)&lt;BR /&gt;drw("Length") = db_table_ary(7, i)&lt;BR /&gt;Dim length As Integer = Val(db_table_ary(7, i))&lt;BR /&gt;Dim main_length As Integer&lt;BR /&gt;Dim ext_length As Integer&lt;BR /&gt;If length &amp;gt; 6000 And length &amp;lt; 6300 Then&lt;BR /&gt;main_length = length - 300&lt;BR /&gt;ext_length = 300&lt;BR /&gt;ElseIf length &amp;gt; 6300 Then&lt;BR /&gt;main_length = 6000&lt;BR /&gt;ext_length = length - main_length&lt;BR /&gt;Else&lt;BR /&gt;main_length = 0&lt;BR /&gt;ext_length = 0&lt;BR /&gt;End If&lt;BR /&gt;If main_length &amp;lt;&amp;gt; 0 Then&lt;BR /&gt;drw("Main") = main_length.ToString&lt;BR /&gt;Else&lt;BR /&gt;drw("Main") = ""&lt;BR /&gt;End If&lt;BR /&gt;If ext_length &amp;lt;&amp;gt; 0 Then&lt;BR /&gt;drw("Ext") = ext_length.ToString&lt;BR /&gt;Else&lt;BR /&gt;drw("Ext") = ""&lt;BR /&gt;End If&lt;BR /&gt;Dim unit_weight As Double = Math.Round((Val(db_table_ary(8, i)) / Val(db_table_ary(1, i))), 2)&lt;BR /&gt;drw("Unit_Weight") = unit_weight&lt;BR /&gt;drw("Total_Weight") = Val(db_table_ary(8, i)) * Val(db_table_ary(2, i))&lt;BR /&gt;drw("Type") = find_type(db_table_ary(0, i))&lt;BR /&gt;drw("Shop_Information") = db_table_ary(9, i)&lt;BR /&gt;drw("Part_Mark") = db_table_ary(3, i)&lt;BR /&gt;drw("Part_Qty") = db_table_ary(2, i)&lt;BR /&gt;drw("Piece_Qty") = db_table_ary(1, i)&lt;BR /&gt;drw("Piece_Per_Assembly") = Val(db_table_ary(2, i)) * Val(db_table_ary(1, i))&lt;BR /&gt;test_table.Rows.Add(drw)&lt;BR /&gt;Next&lt;BR /&gt;sum_piece_qty()&lt;BR /&gt;test_table.DefaultView.Sort = "Thick,Piece_Mark"&lt;BR /&gt;'DataGridView1.DataSource = test_table&lt;BR /&gt;'Me.Show()&lt;BR /&gt;'Show_Data(, , test_table, , True)&lt;BR /&gt;If purpose = "cut_list" Then&lt;BR /&gt;Dim DispReport As New ReportForm&lt;BR /&gt;DispReport.Rep_Name = "Error Report"&lt;BR /&gt;Dim RepForm As New Cut_List_Report&lt;BR /&gt;RepForm.SetDataSource(test_table.DefaultView)&lt;BR /&gt;RepForm.SetParameterValue("area1", area)&lt;BR /&gt;RepForm.SetParameterValue("job1", job_no)&lt;BR /&gt;RepForm.SetParameterValue("bldg1", bldg_no)&lt;BR /&gt;RepForm.SetParameterValue("phase1", phase_no)&lt;BR /&gt;DispReport.CrystalCtrl.ReportSource = RepForm&lt;BR /&gt;DispReport.ShowDialog()&lt;BR /&gt;Else&lt;BR /&gt;part_sk_func()&lt;BR /&gt;End If&lt;BR /&gt;End Sub&lt;BR /&gt;Private Function find_type(ByVal piece As String)&lt;BR /&gt;Dim type As String&lt;BR /&gt;If piece.Contains("WB") Then&lt;BR /&gt;type = "WEB"&lt;BR /&gt;ElseIf piece.Contains("OF") Or piece.Contains("IF") Then&lt;BR /&gt;type = "FLG"&lt;BR /&gt;ElseIf piece.Contains("HR") Or piece.Contains("T-") Then&lt;BR /&gt;type = "HR"&lt;BR /&gt;Else&lt;BR /&gt;type = "DET"&lt;BR /&gt;End If&lt;BR /&gt;Return Type&lt;BR /&gt;End Function&lt;BR /&gt;Private Sub part_sk_func()&lt;BR /&gt;ReDim final_part_array(7, -1)&lt;BR /&gt;test_table.DefaultView.Sort = "Piece_Mark"&lt;BR /&gt;For rw As Integer = 0 To test_table.DefaultView.Count - 1&lt;BR /&gt;ReDim Preserve final_part_array(7, final_part_array.GetUpperBound(1) + 1)&lt;BR /&gt;Dim cur_piece As String = test_table.DefaultView(rw).Item("Piece_Mark")&lt;BR /&gt;Dim test_array() As DataRow = test_table.Select("Piece_Mark = '" &amp;amp; cur_piece &amp;amp; "'")&lt;BR /&gt;For i As Integer = 0 To (test_array.Length - 1)&lt;BR /&gt;Dim part_thick As String = test_array(0).Item("Thick")&lt;BR /&gt;'Show_Data(, , test_table, , True)&lt;BR /&gt;Dim part_width1 As String = test_array(0).Item("Width1")&lt;BR /&gt;Dim part_width2 As String = test_array(0).Item("Width2")&lt;BR /&gt;Dim part_length As String = test_array(0).Item("Length")&lt;BR /&gt;Dim part_desc As String = ""&lt;BR /&gt;If part_width1 &amp;lt;&amp;gt; "" And part_width2 &amp;lt;&amp;gt; "" Then&lt;BR /&gt;If part_width1 = part_width2 Then&lt;BR /&gt;part_desc = part_thick &amp;amp; "X" &amp;amp; part_width1 &amp;amp; "X" &amp;amp; part_length&lt;BR /&gt;Else&lt;BR /&gt;part_desc = part_thick &amp;amp; "X" &amp;amp; part_width1 &amp;amp; "-" &amp;amp; part_width2 &amp;amp; "X" &amp;amp; part_length&lt;BR /&gt;End If&lt;BR /&gt;Else&lt;BR /&gt;part_desc = test_array(0).Item("Shop_Information")&lt;BR /&gt;End If&lt;BR /&gt;final_part_array(0, final_part_array.GetUpperBound(1)) = test_array(i).Item("Piece_Mark")&lt;BR /&gt;final_part_array(1, final_part_array.GetUpperBound(1)) = test_array(i).Item("Total_Qty")&lt;BR /&gt;final_part_array(2, final_part_array.GetUpperBound(1)) = part_desc&lt;BR /&gt;final_part_array(3, final_part_array.GetUpperBound(1)) = test_array(i).Item("Unit_Weight")&lt;BR /&gt;final_part_array(4, final_part_array.GetUpperBound(1)) = test_array(i).Item("Shop_Information")&lt;BR /&gt;If final_part_array(5, final_part_array.GetUpperBound(1)) &amp;lt;&amp;gt; "" Then&lt;BR /&gt;final_part_array(5, final_part_array.GetUpperBound(1)) = final_part_array(5, final_part_array.GetUpperBound(1)) &amp;amp; "," &amp;amp; test_array(i).Item("Part_Mark")&lt;BR /&gt;Else&lt;BR /&gt;final_part_array(5, final_part_array.GetUpperBound(1)) = test_array(i).Item("Part_Mark")&lt;BR /&gt;End If&lt;BR /&gt;If final_part_array(6, final_part_array.GetUpperBound(1)) &amp;lt;&amp;gt; "" Then&lt;BR /&gt;final_part_array(6, final_part_array.GetUpperBound(1)) = final_part_array(6, final_part_array.GetUpperBound(1)) &amp;amp; "," &amp;amp; test_array(i).Item("Part_Qty")&lt;BR /&gt;Else&lt;BR /&gt;final_part_array(6, final_part_array.GetUpperBound(1)) = test_array(i).Item("Part_Qty")&lt;BR /&gt;End If&lt;BR /&gt;If final_part_array(7, final_part_array.GetUpperBound(1)) &amp;lt;&amp;gt; "" Then&lt;BR /&gt;final_part_array(7, final_part_array.GetUpperBound(1)) = final_part_array(7, final_part_array.GetUpperBound(1)) &amp;amp; "," &amp;amp; test_array(i).Item("Piece_Qty")&lt;BR /&gt;Else&lt;BR /&gt;final_part_array(7, final_part_array.GetUpperBound(1)) = test_array(i).Item("Piece_Qty")&lt;BR /&gt;End If&lt;BR /&gt;Next i&lt;BR /&gt;rw = rw + (test_array.Length - 1)&lt;BR /&gt;Next&lt;BR /&gt;'Show_Data(final_part_array, , , , True)&lt;BR /&gt;If purpose = "unique&amp;amp;piece" Then&lt;BR /&gt;'If final_part_array.GetUpperBound(1) &amp;gt; -1 Then&lt;BR /&gt;' Dim datasource_repeat(final_part_array.GetUpperBound(1)) As dataSource&lt;BR /&gt;' For i As Integer = 0 To final_part_array.GetUpperBound(1)&lt;BR /&gt;' datasource_repeat(i).Piece = final_part_array(0, i)&lt;BR /&gt;' datasource_repeat(i).qty = final_part_array(1, i)&lt;BR /&gt;' datasource_repeat(i).Description = final_part_array(2, i)&lt;BR /&gt;' datasource_repeat(i).shop_information = final_part_array(4, i)&lt;BR /&gt;' Next&lt;BR /&gt;' Dim dispreport As New ReportForm&lt;BR /&gt;' dispreport.Rep_Name = "Piece Repeated Error"&lt;BR /&gt;' Dim RepForm As New Piece_Report&lt;BR /&gt;' RepForm.SetDataSource(datasource_repeat)&lt;BR /&gt;' dispreport.CrystalCtrl.ReportSource = RepForm&lt;BR /&gt;' dispreport.ShowDialog()&lt;BR /&gt;'End If&lt;BR /&gt;Dim fname As String = My.Computer.FileSystem.SpecialDirectories.MyDocuments &amp;amp; "\" &amp;amp; job_no &amp;amp; "_" &amp;amp; bldg_no &amp;amp; "_" &amp;amp; phase_no &amp;amp; ".txt"&lt;BR /&gt;Dim write_ary(final_part_array.GetUpperBound(1)) As String&lt;BR /&gt;For i As Integer = 0 To final_part_array.GetUpperBound(1)&lt;BR /&gt;write_ary(i) = final_part_array(0, i) &amp;amp; " " &amp;amp; final_part_array(1, i) &amp;amp; " " &amp;amp; final_part_array(2, i) &amp;amp; " " &amp;amp; final_part_array(4, i)&lt;BR /&gt;Next&lt;BR /&gt;write_file(write_ary, fname)&lt;BR /&gt;End If&lt;BR /&gt;Me.Dispose()&lt;/P&gt;&lt;P&gt;'For rw As Integer = 0 To test_table.Rows.Count - 1&lt;BR /&gt;' Dim cur_piece As String = test_table.Rows(rw).Item("Piece_Mark")&lt;BR /&gt;' Dim qty As Integer = 0&lt;BR /&gt;' 'test_table = test_table.DefaultView.Table&lt;BR /&gt;' Dim drarray() As DataRow = test_table.Select("Piece_Mark = '" &amp;amp; cur_piece &amp;amp; "'")&lt;BR /&gt;' For i As Integer = 0 To (drarray.Length - 1)&lt;BR /&gt;' 'ListBox1.Items.Add(drarray(i)("City").ToString)&lt;BR /&gt;' qty = qty + Val(drarray(i).Item("Piece_Per_Assembly"))&lt;BR /&gt;' Next&lt;BR /&gt;' test_table.Rows(rw).Item("Total_Qty") = qty.ToString&lt;BR /&gt;' test_table.Rows(rw).Item("Total_Weight") = (qty * Val(test_table.Rows(rw).Item("Unit_Weight"))).ToString&lt;BR /&gt;'Next&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;Private Sub sum_piece_qty()&lt;BR /&gt;For rw As Integer = 0 To test_table.Rows.Count - 1&lt;BR /&gt;Dim cur_piece As String = test_table.Rows(rw).Item("Piece_Mark")&lt;BR /&gt;Dim qty As Integer = 0&lt;BR /&gt;'test_table = test_table.DefaultView.Table&lt;BR /&gt;Dim drarray() As DataRow = test_table.Select("Piece_Mark = '" &amp;amp; cur_piece &amp;amp; "'")&lt;BR /&gt;For i As Integer = 0 To (drarray.Length - 1)&lt;BR /&gt;'ListBox1.Items.Add(drarray(i)("City").ToString)&lt;BR /&gt;qty = qty + Val(drarray(i).Item("Piece_Per_Assembly"))&lt;BR /&gt;Next&lt;BR /&gt;test_table.Rows(rw).Item("Total_Qty") = qty.ToString&lt;BR /&gt;test_table.Rows(rw).Item("Total_Weight") = (qty * Val(test_table.Rows(rw).Item("Unit_Weight"))).ToString&lt;BR /&gt;Next&lt;BR /&gt;End Sub&lt;BR /&gt;Public Sub read_table(ByVal fname As String)&lt;BR /&gt;part_qty = ""&lt;BR /&gt;part_mark = ""&lt;BR /&gt;Dim myTransMant As DatabaseServices.TransactionManager&lt;BR /&gt;Dim CurDb As New DatabaseServices.Database&lt;BR /&gt;Dim myBTRt As DatabaseServices.BlockTableRecord&lt;BR /&gt;Dim myBTt As DatabaseServices.BlockTable&lt;BR /&gt;Dim myDBt As New DatabaseServices.Database(False, True)&lt;BR /&gt;If fname.ToUpper.EndsWith("DWG") Then&lt;BR /&gt;myDBt.ReadDwgFile(fname, IO.FileShare.Read, False, "")&lt;BR /&gt;End If&lt;BR /&gt;myTransMant = myDBt.TransactionManager&lt;BR /&gt;myTranst = myTransMant.StartTransaction&lt;BR /&gt;myBTt = myDBt.BlockTableId.GetObject(DatabaseServices.OpenMode.ForRead)&lt;BR /&gt;myBTRt = myBTt(DatabaseServices.BlockTableRecord.ModelSpace).GetObject(DatabaseServices.OpenMode.ForWrite)&lt;BR /&gt;Dim myBTEn As DatabaseServices.BlockTableRecordEnumerator = myBTRt.GetEnumerator()&lt;BR /&gt;While myBTEn.MoveNext&lt;BR /&gt;Dim oEnt As DatabaseServices.Entity = CType(myTranst.GetObject(myBTEn.Current, DatabaseServices.OpenMode.ForRead), DatabaseServices.Entity)&lt;BR /&gt;If TypeOf oEnt Is DatabaseServices.Table Then&lt;BR /&gt;Dim MyTbl As New DatabaseServices.Table&lt;BR /&gt;MyTbl = myBTEn.Current.GetObject(DatabaseServices.OpenMode.ForRead)&lt;/P&gt;&lt;P&gt;For Rw As Short = 0 To MyTbl.NumRows - 1&lt;BR /&gt;Dim cur_piece As String = MyTbl.TextString(Rw, 0, FormatOption.ForExpression)&lt;BR /&gt;If Not cur_piece.Contains("WEIGHT") And Not cur_piece.Contains("MARK") And cur_piece &amp;lt;&amp;gt; "" Then&lt;BR /&gt;ReDim Preserve db_table_ary(9, db_table_ary.GetUpperBound(1) + 1)&lt;BR /&gt;db_table_ary(0, db_table_ary.GetUpperBound(1)) = MyTbl.TextString(Rw, 0, FormatOption.ForExpression)&lt;BR /&gt;db_table_ary(1, db_table_ary.GetUpperBound(1)) = MyTbl.TextString(Rw, 1, FormatOption.ForExpression)&lt;BR /&gt;db_table_ary(2, db_table_ary.GetUpperBound(1)) = part_qty&lt;BR /&gt;db_table_ary(3, db_table_ary.GetUpperBound(1)) = part_mark&lt;BR /&gt;db_table_ary(8, db_table_ary.GetUpperBound(1)) = MyTbl.TextString(Rw, 3, FormatOption.ForExpression)&lt;BR /&gt;db_table_ary(9, db_table_ary.GetUpperBound(1)) = MyTbl.TextString(Rw, 4, FormatOption.ForExpression)&lt;BR /&gt;Dim cur_desc As String = MyTbl.TextString(Rw, 2, FormatOption.ForExpression)&lt;BR /&gt;Dim desc_ary() As String = cur_desc.Split("X")&lt;BR /&gt;db_table_ary(4, db_table_ary.GetUpperBound(1)) = desc_ary(0)&lt;BR /&gt;Select Case Val(desc_ary(0))&lt;BR /&gt;Case 1.5, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 14, 18, 25, 30, 40, 50&lt;BR /&gt;If desc_ary(1).Contains("-") Then&lt;BR /&gt;db_table_ary(5, db_table_ary.GetUpperBound(1)) = desc_ary(1).Split("-")(0)&lt;BR /&gt;db_table_ary(6, db_table_ary.GetUpperBound(1)) = desc_ary(1).Split("-")(1)&lt;BR /&gt;Else&lt;BR /&gt;db_table_ary(5, db_table_ary.GetUpperBound(1)) = desc_ary(1)&lt;BR /&gt;db_table_ary(6, db_table_ary.GetUpperBound(1)) = desc_ary(1)&lt;BR /&gt;End If&lt;BR /&gt;db_table_ary(7, db_table_ary.GetUpperBound(1)) = desc_ary(2)&lt;BR /&gt;Case Else&lt;BR /&gt;db_table_ary(4, db_table_ary.GetUpperBound(1)) = 100 'others&lt;BR /&gt;db_table_ary(5, db_table_ary.GetUpperBound(1)) = ""&lt;BR /&gt;db_table_ary(9, db_table_ary.GetUpperBound(1)) = cur_desc&lt;BR /&gt;db_table_ary(6, db_table_ary.GetUpperBound(1)) = ""&lt;BR /&gt;db_table_ary(7, db_table_ary.GetUpperBound(1)) = desc_ary(desc_ary.GetUpperBound(0))&lt;BR /&gt;End Select&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;MyTbl.Dispose()&lt;BR /&gt;End If&lt;BR /&gt;If oEnt.GetType.Name.ToUpper = "BLOCKREFERENCE" Then&lt;BR /&gt;myBlkRef = oEnt.ObjectId.GetObject(DatabaseServices.OpenMode.ForRead, False)&lt;BR /&gt;Dim myBTR As DatabaseServices.BlockTableRecord&lt;BR /&gt;myBTR = myBlkRef.BlockTableRecord.GetObject(DatabaseServices.OpenMode.ForRead)&lt;BR /&gt;If myBTR.Name = "title_blk_a3" Then ReadAttribute(oEnt.ObjectId)&lt;BR /&gt;myBTR.Dispose()&lt;BR /&gt;End If&lt;BR /&gt;End While&lt;BR /&gt;myDBt.CloseInput(True)&lt;BR /&gt;myTranst.Abort()&lt;BR /&gt;myTransMant.Dispose()&lt;BR /&gt;End Sub&lt;BR /&gt;Public Sub ReadAttribute(ByVal BlkId As DatabaseServices.ObjectId)&lt;BR /&gt;Dim BlkRef = BlkId.GetObject(OpenMode.ForRead)&lt;BR /&gt;For atb As Integer = 0 To BlkRef.AttributeCollection.Count - 1&lt;BR /&gt;Dim attrb As AttributeReference&lt;BR /&gt;attrb = BlkRef.AttributeCollection(atb).GetObject(OpenMode.ForRead)&lt;BR /&gt;'Debug.Print("Attribute Name:" &amp;amp; attrb.Tag &amp;amp; "---" &amp;amp; attrb.TextString)&lt;BR /&gt;If attrb.Tag = "AR" Then&lt;BR /&gt;area = attrb.TextString&lt;BR /&gt;ElseIf attrb.Tag = "JOB" Then&lt;BR /&gt;job_no = attrb.TextString&lt;BR /&gt;ElseIf attrb.Tag = "BLDG" Then&lt;BR /&gt;bldg_no = attrb.TextString&lt;BR /&gt;ElseIf attrb.Tag = "PH" Then&lt;BR /&gt;phase_no = attrb.TextString&lt;BR /&gt;ElseIf attrb.Tag = "QTY" Then&lt;BR /&gt;part_qty = attrb.TextString&lt;BR /&gt;ElseIf attrb.Tag = "PART" Then&lt;BR /&gt;part_mark = attrb.TextString&lt;BR /&gt;End If&lt;BR /&gt;attrb.Dispose()&lt;BR /&gt;Next&lt;BR /&gt;BlkRef.Dispose()&lt;BR /&gt;End Sub&lt;BR /&gt;Public Sub Show_Data(Optional ByVal Arrynew As Array = Nothing, Optional ByVal FormHdr As String = "", Optional ByVal GridTable As Data.DataTable = Nothing, Optional ByVal GridDataRow() As DataRow = Nothing, Optional ByVal IsDialog As Boolean = False)&lt;BR /&gt;Dim GridShowForm As New GridForm&lt;BR /&gt;GridShowForm.Text = FormHdr&lt;BR /&gt;If Not Arrynew Is Nothing Then&lt;BR /&gt;With GridShowForm.DataGridView1&lt;BR /&gt;.ColumnCount = Arrynew.GetUpperBound(0) + 1&lt;BR /&gt;.RowCount = Arrynew.GetUpperBound(1) + 1&lt;BR /&gt;For a As UShort = 0 To Arrynew.GetUpperBound(1)&lt;BR /&gt;For b As UShort = 0 To Arrynew.GetUpperBound(0)&lt;BR /&gt;.Rows(a).Cells(b).Value = Arrynew(b, a)&lt;BR /&gt;Next b&lt;BR /&gt;Next a&lt;BR /&gt;End With&lt;BR /&gt;ElseIf Not GridTable Is Nothing Then&lt;BR /&gt;GridShowForm.DataGridView1.DataSource = GridTable&lt;BR /&gt;ElseIf Not GridDataRow Is Nothing Then&lt;BR /&gt;With GridShowForm.DataGridView1&lt;BR /&gt;.ColumnCount = GridDataRow(0).ItemArray.GetUpperBound(0) + 1&lt;BR /&gt;.RowCount = GridDataRow.Length&lt;BR /&gt;For a As UShort = 0 To .RowCount - 1&lt;BR /&gt;For b As UShort = 0 To .ColumnCount - 1&lt;BR /&gt;.Rows(a).Cells(b).Value = GridDataRow(a).Item(b)&lt;BR /&gt;Next b&lt;BR /&gt;Next a&lt;BR /&gt;End With&lt;BR /&gt;End If&lt;BR /&gt;If IsDialog Then&lt;BR /&gt;GridShowForm.ShowDialog()&lt;BR /&gt;Else&lt;BR /&gt;GridShowForm.Show()&lt;BR /&gt;End If&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Private Sub frmmain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;BR /&gt;If purpose = "yes" Then&lt;BR /&gt;bt_cut_list.Text = "PIECE SKETCHES"&lt;BR /&gt;lblCaption.Text = "PIECE SKETCHES"&lt;BR /&gt;ElseIf purpose = "unique&amp;amp;piece" Then&lt;BR /&gt;create_cut_list()&lt;BR /&gt;Me.Close()&lt;BR /&gt;Else&lt;BR /&gt;bt_cut_list.Text = "CUT LIST"&lt;BR /&gt;lblCaption.Text = "CUT LIST"&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;End Class&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2012 07:48:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278715#M57817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-03T07:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278721#M57818</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Place a break point at&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private &lt;FONT color="#400080" face="Consolas" size="2"&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; frmmain_Load(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; sender &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; System.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Object&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; e &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; System.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;EventArgs&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;Handles&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;&lt;FONT color="#400080" face="Consolas" size="2"&gt;MyBase&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;.Load&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;and step through to find where it brakes. If frmmain_Load is the first thing that loads, because from this code I cant guess.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;I dont see any command method or command class attributes in your code - Where is the entrance point?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;Read this first and try to refactor your code : &lt;A target="_blank" href="http://usa.autodesk.com/adsk/servlet/index?siteID=123112&amp;amp;id=18162797"&gt;http://usa.autodesk.com/adsk/servlet/index?siteID=123112&amp;amp;id=18162797&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;Go through the other tutorials on : &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;A target="_blank" href="http://usa.autodesk.com/adsk/servlet/index?id=18162650&amp;amp;siteID=123112"&gt;http://usa.autodesk.com/adsk/servlet/index?id=18162650&amp;amp;siteID=123112&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;Try searhing &lt;A target="_blank" href="http://through-the-interface.typepad.com/"&gt;http://through-the-interface.typepad.com/&lt;/A&gt; - there are lots of examples.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;﻿&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;﻿&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;For the next time - dont paste your code like that, because it is a bit messy and I have problems loading it in VS. Better just zip your .vb file and attach it so we will be able to unzip it and automatically load it into VB with all the code style that enchances readability.﻿&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;﻿&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2012 08:02:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278721#M57818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-03T08:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278733#M57819</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;Jeff, there is no need to be rude and produce spam on this forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general I still dont know a way for unloading a .NET dll from AutoCAD.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;First, Jeff was not being rude.&lt;BR /&gt;There is no way to unload a DLL from AutoCAD ! ... this has been documented innumerable times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... and without knowing the error or seeing the code the question&amp;nbsp;is unanswerable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;kdub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2012 08:32:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278733#M57819</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2012-01-03T08:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278737#M57820</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;&lt;A href="http://forums.autodesk.com/t5/user/viewprofilepage/user-id/491239" target="_self"&gt;ognyandim&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My Zip file size is too large ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i cant able to attach file here..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 13px;"&gt;Im checking the code as per your instructions..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 13px;"&gt;Thank &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 13px;"&gt;Ranjith&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2012 08:36:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278737#M57820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-03T08:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278761#M57821</link>
      <description>&lt;P&gt;You can always create an account at sites like mediiafire.com and upload it there and send a link.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2012 09:25:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278761#M57821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-03T09:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278765#M57822</link>
      <description>&lt;P&gt;&lt;A href="http://www.mediafire.com/?um6c09u92ffci7l" target="_blank"&gt;http://www.mediafire.com/?um6c09u92ffci7l&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above one is the link for my code&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2012 09:31:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278765#M57822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-03T09:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278839#M57823</link>
      <description>&lt;DIV class="lia-message-author-username lia-component-user-name"&gt;&lt;SPAN&gt;&lt;A href="http://forums.autodesk.com/t5/user/viewprofilepage/user-id/787238" target="_self"&gt;&lt;SPAN&gt;ranjith0326&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-author-username lia-component-user-name"&gt;&lt;SPAN&gt;I was not trying to be rude just was being short.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-author-username lia-component-user-name"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do not have crystal reports and a bit of code to try to skim through quickly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try adding this class&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Imports System
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.Geometry
Imports Autodesk.AutoCAD.EditorInput

&amp;lt;Assembly: ExtensionApplication(GetType(cut_list_class.AppLoad))&amp;gt; 

Namespace cut_list_class

    Public Class AppLoad
        Implements IExtensionApplication

        Public Sub Initialize() Implements IExtensionApplication.Initialize

        End Sub

        Public Sub Terminate() Implements IExtensionApplication.Terminate

        End Sub
    End Class

End Namespace&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;Place a breakpoint at intialize method and see if you can step through and find where error happens.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2012 12:29:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278839#M57823</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2012-01-03T12:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278933#M57824</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2012 13:37:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3278933#M57824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-03T13:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3280137#M57825</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;&lt;A href="http://forums.autodesk.com/t5/user/viewprofilepage/user-id/491239" target="_self"&gt;ognyandim&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank u very much...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My problem was solved after changing the copy_local as false.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Im facing one more problem on this code..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://www.mediafire.com/download.php?3ct0na9qk351j42" target="_blank"&gt;http://www.mediafire.com/download.php?3ct0na9qk351j42&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 13px;"&gt;Find the latest code from above link..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 13px;"&gt;while using first time im not getting any error..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 13px;"&gt;but if im using next time the same class without closing the autocad, im getting error on&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 13px;"&gt;myDBt.CloseInput(True) &amp;nbsp; &amp;nbsp;&amp;lt;- This location.. use the attached drawings for testing purpose&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 06:52:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3280137#M57825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-04T06:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3280145#M57826</link>
      <description>&lt;P&gt;Please find attached image for my Error Location..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function name is read_table()&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 06:59:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3280145#M57826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-04T06:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3280157#M57827</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 07:25:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3280157#M57827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-04T07:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3280173#M57828</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;A href="http://forums.autodesk.com/t5/user/viewprofilepage/user-id/491239" target="_self"&gt;&lt;SPAN&gt;ognyandim&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm reading the data, so i dont want to write anything there...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i was used one location as write, now i changed that too read only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 13px;"&gt;my doubt is first time there is no problem, while secong time only problem is coming...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 13px;"&gt;i hope u r the correct person to findout my mistake in that code..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 13px;"&gt;Thanks for your help...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 08:05:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3280173#M57828</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-04T08:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3280257#M57829</link>
      <description>&lt;P&gt;By looking at your code I can give you this advice :&lt;/P&gt;&lt;P&gt;0. Start documenting your code with reasonable comments.&lt;/P&gt;&lt;P&gt;0a. Read this also - &lt;A href="http://catb.org/~esr/faqs/smart-questions.html" target="_blank"&gt;http://catb.org/~esr/faqs/smart-questions.html&lt;/A&gt; - I have read it myself and saved myself a fortune of others time and mine ofcourse.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;2. Get the ObjectARX Docs and open arxmgd.chm file and read the docs for every method you are using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please start from 0 and 0a before anything else. This will save you lots of silly mistakes and will improve your productivity many times.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 11:25:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3280257#M57829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-04T11:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unloading DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3280307#M57830</link>
      <description>&lt;P&gt;Thank u&amp;nbsp;&lt;SPAN&gt;&lt;A href="http://forums.autodesk.com/t5/user/viewprofilepage/user-id/491239" target="_self"&gt;ognyandim&lt;/A&gt;..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 12:24:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unloading-dll/m-p/3280307#M57830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-04T12:24:35Z</dc:date>
    </item>
  </channel>
</rss>

