Results 1 to 40 of 55

Thread: [vb6]Common Dialog Class (Yet Another One)

Hybrid View

  1. #1

    Thread Starter
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: [vb6]Common Dialog Class (Yet Another One)

    @DerWise. I think I may have it but am not sure.

    In your copy of the class, can you make the following changes, for testing only. We are going to take the sItems() array out of pvInitStructure and move it to the declarations section:

    1. Add this at top of declarations section: Private sItems() As String
    2. In pvInitStructure method...
    a. remove sItems from the DIM statements
    b. remove the line: Erase sItems()

    Now try it.
    Last edited by LaVolpe; Jun 9th, 2019 at 03:22 PM.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  2. #2
    Junior Member
    Join Date
    Sep 2017
    Posts
    17

    Re: [vb6]Common Dialog Class (Yet Another One)

    Quote Originally Posted by LaVolpe View Post
    @DerWise. I think I may have it but am not sure.

    In your copy of the class, can you make the following changes, for testing only. We are going to take the sItems() array out of pvInitStructure and move it to the declarations section:

    1. Add this at top of declarations section: Private sItems() As String
    2. In pvInitStructure method...
    a. remove sItems from the DIM statements
    b. remove the line: Erase sItems()

    Now try it.
    Sorry, still hangs but slightly differently.
    1. It now takes about 1 second after I click SAVE before the hang
    2. The Fault Module shown is propsys.dll

    One more question:
    We use MANY absolute variables declared in several modules.
    I didn't see any in your code.
    Still is there a chance we step on something of yours?
    (I found one, pIndex, and changed it to be safe, but there can be many others.

    Thanks!

  3. #3

    Thread Starter
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: [vb6]Common Dialog Class (Yet Another One)

    Quote Originally Posted by DerWeise View Post
    Still is there a chance we step on something of yours?
    Absolutely not. In a VB class, variables referenced are those in the procedure first, class declarations second, then global ones (not applicable here).

    One thing has me confused still. You said that the sample project that came with the zip did not crash? Even if you go and change the filter in the sample code?

    Grasping at straws here. If you set the Flags property to DLG__BaseSaveDialogFlags any change? Another question, is this only with the Save dialog or the Open dialog also, when using the same filter?

    And finally, do you have the most recent Win7 service pack installed? I can find many hits on the web for SetFileTypes (filter) crashing Win7, but am not finding anything that looks like it applies to the class I wrote. Your description sounds almost like the Dialog is trying to access some variable after it closes, after the class released and cleared all of its variables. To test that idea, simply do not set the class to nothing and see if the error continues.
    Last edited by LaVolpe; Jun 10th, 2019 at 08:30 AM.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  4. #4
    Junior Member
    Join Date
    Sep 2017
    Posts
    17

    Re: [vb6]Common Dialog Class (Yet Another One)

    I'm trying to answer, but by the time I finish the answer it shows me logged out and all my writing is gone....
    I can show you everything and discuss it seriously if you skype me.
    How can I write you my contact not public?
    Thanks.

  5. #5

    Thread Starter
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: [vb6]Common Dialog Class (Yet Another One)

    Quote Originally Posted by DerWeise View Post
    How can I write you my contact not public?
    Thanks.
    Click on a user's handle/user name in left side of posting and choose to send a PM (private message).
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  6. #6
    Junior Member
    Join Date
    Sep 2017
    Posts
    17

    Re: [vb6]Common Dialog Class (Yet Another One)

    I'm trying to answer, but by the time I finish the answer it shows me logged out and all my writing is gone....
    I can show you everything and discuss it seriously if you skype me.
    How can I write you my contact not public?
    Thanks.

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