Results 1 to 2 of 2

Thread: Huge Memory Leak with inputbox?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2006
    Posts
    607

    Huge Memory Leak with inputbox?

    is inputbox still being used?

    Code:
       'Dim productKey = InputBox("Enter new product Key", "New Product Registration", String.Empty)
            Dim productKey = productKeyTxt.Text.Trim
    
            If Not String.IsNullOrEmpty(productKey) Then
                'if product key is valid, then register the product
    
                Dim Lic As New License
                Lic.passkey = PassKeyLbl.Text
                Dim IsValid As Boolean = Lic.validateKey(productKey)
                If IsValid Then
                    My.Settings.productKeyRegistered = True
                Else
                    MessageBox.Show("Product Key is invalid")
                End If
            End If
    as you can see I have it commented out on the first line.

    I am using the small Licnese class in the codebank. Thanks for whoever submitted it.

    Anwyas, everything works fine when using a textbox. When I throw the input box in my app hangs. for example, NO exception is thrown. the computer slows down to pretty much where I have to restart. I can't click anywhere, and if I do i gotta wait about 30 minutes until the process is executed.

    Has inputbox been buggy for people before? Is there a reason Why is does that?

    * I 've been using inputbox for some other sections of my app, and they seem to go okay.

  2. #2
    Addicted Member tsungik's Avatar
    Join Date
    Aug 2004
    Location
    Philippines
    Posts
    194

    Re: Huge Memory Leak with inputbox?

    Do not use InputBox.

    Make your own custom form to get the Product Key. This won't hurt you anyway. Just a piece of advice.
    Begin with the end in mind.

    My Profile

    while( !( succeed = try() ) );

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width