Click here to Skip to main content
16,005,066 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to rotate a button control n degrees Pin
beaujess7-Mar-08 8:00
beaujess7-Mar-08 8:00 
GeneralRe: How to rotate a button control n degrees Pin
Smithers-Jones7-Mar-08 8:29
Smithers-Jones7-Mar-08 8:29 
GeneralRe: How to rotate a button control n degrees Pin
Paul Conrad7-Mar-08 14:19
professionalPaul Conrad7-Mar-08 14:19 
Generalnetwork communication .net vb between device and desktop Pin
Cory Kimble7-Mar-08 7:23
Cory Kimble7-Mar-08 7:23 
QuestionGetting control values into a report Pin
Member 45895427-Mar-08 7:08
Member 45895427-Mar-08 7:08 
GeneralDLL to call a function in a VB program Pin
steve_rm7-Mar-08 6:05
steve_rm7-Mar-08 6:05 
GeneralRe: DLL to call a function in a VB program Pin
Christian Graus7-Mar-08 10:10
protectorChristian Graus7-Mar-08 10:10 
QuestionWhy is this taking up all the memory? Pin
Jan Sommer7-Mar-08 4:22
Jan Sommer7-Mar-08 4:22 
I'm using Lucene.Net to index a DB. Getting all the records is quickly done, but when i index them, the memory just keeps going up on my application. This is how the code looks:

Private writer As Lucene.Net.Index.IndexWriter

Private Sub InsertDBIndexData(ByVal sCPR As String)
        Dim doc As New Document
        Dim f1 As New Field("CPR", sCPR, Field.Store.YES, Field.Index.TOKENIZED)
        doc.Add(f1)
        writer.AddDocument(doc)
        doc = Nothing
        Return
    End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim odConnection As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=....mdb...")
        odConnection.Open()
        writer = New Lucene.Net.Index.IndexWriter(DBIndexLocation, New StandardAnalyzer, True)

        Dim odCommand As OleDbCommand = New OleDbCommand("select * from TPers", odConnection)
        'Dim odReader As OleDbDataReader = odCommand.ExecuteReader
        Dim odDataAdaptor As OleDbDataAdapter = New OleDbDataAdapter(odCommand)
        Dim odDataSet As DataSet = New DataSet
        odDataAdaptor.Fill(odDataSet, "TPers")

        Dim odDataTable As DataTable = odDataSet.Tables("TPers")

        For Each dr As DataRow In odDataTable.Rows
            InsertDBIndexData(dr("cpr").ToString)
        Next

        writer.Optimize()
        writer.Close()
        odDataAdaptor.Dispose()
        odConnection.Close()
    End Sub


i've tried to use oledbdatareader instead of oledbdataadaptor, which seems to be alot faster when indexing, but it is still takes up ALL the memory. Opening and closing the Lucene writer doesn't help either.

I know i probably should be asking in some Lucene.Net forum, but i'm not sure if the problem lies in that code.

And i know i've asked a question pretty much similar to this. But this isn't the same Smile | :)
GeneralPanels difficulty Pin
cstrader2327-Mar-08 2:19
cstrader2327-Mar-08 2:19 
GeneralRe: Panels difficulty Pin
Dave Kreskowiak7-Mar-08 10:16
mveDave Kreskowiak7-Mar-08 10:16 
GeneralRe: Panels difficulty Pin
cstrader2327-Mar-08 11:13
cstrader2327-Mar-08 11:13 
GeneralRe: Panels difficulty Pin
Dave Kreskowiak7-Mar-08 14:13
mveDave Kreskowiak7-Mar-08 14:13 
GeneralRe: Panels difficulty Pin
cstrader23210-Mar-08 2:59
cstrader23210-Mar-08 2:59 
QuestionConnecting to Outlook 2003 Pin
Giorgio Mantovani7-Mar-08 2:08
Giorgio Mantovani7-Mar-08 2:08 
Generaldatagridview Pin
bhavani_ns7-Mar-08 0:33
bhavani_ns7-Mar-08 0:33 
GeneralRe: datagridview Pin
cstrader2327-Mar-08 3:39
cstrader2327-Mar-08 3:39 
GeneralRe: datagridview Pin
bhavani_ns7-Mar-08 17:25
bhavani_ns7-Mar-08 17:25 
GeneralRe: datagridview Pin
Xmen Real 8-Mar-08 3:30
professional Xmen Real 8-Mar-08 3:30 
GeneralRe: datagridview Pin
bhavani_ns10-Mar-08 19:40
bhavani_ns10-Mar-08 19:40 
GeneralRe: datagridview Pin
Xmen Real 10-Mar-08 19:55
professional Xmen Real 10-Mar-08 19:55 
GeneralReport Format in Crystal Report using VB.Net Pin
aqui_i7-Mar-08 0:29
aqui_i7-Mar-08 0:29 
Questionreport generation in vb.net Pin
revath6-Mar-08 23:57
revath6-Mar-08 23:57 
GeneralRe: report generation in vb.net Pin
Paul Conrad7-Mar-08 14:19
professionalPaul Conrad7-Mar-08 14:19 
GeneralRe: report generation in vb.net Pin
r_mohd7-Mar-08 23:51
r_mohd7-Mar-08 23:51 
GeneralAutomatically determine the smtp server Pin
Dom Sinclair6-Mar-08 21:41
Dom Sinclair6-Mar-08 21:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.