Results 1 to 9 of 9

Thread: [RESOLVED] Out of Memory error when changing icon

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2021
    Posts
    87

    Resolved [RESOLVED] Out of Memory error when changing icon

    When trying to change the icon on VB 6 it gives me an error message "Out of Memory". My program is only just over 6MB. Any suggestions as to why? Thanks in advance!

  2. #2
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,598

    Re: Out of Memory error when changing icon

    Quote Originally Posted by RLPeloquin View Post
    My program is only just over 6MB.
    6 MB of what? Source code?
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  3. #3
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,393

    Re: Out of Memory error when changing icon


  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 2021
    Posts
    87

    Re: Out of Memory error when changing icon

    yes, that's correct

  5. #5
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,393

    Re: Out of Memory error when changing icon

    What icon are you trying to use? Can you post a link or upload a file? What size icon is it?

    Did you check the link I posted to see if that might be your issue?

  6. #6
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: Out of Memory error when changing icon

    Is that the one that has dozens of duplicate forms and storing all the data in the system registry?

  7. #7

    Thread Starter
    Lively Member
    Join Date
    May 2021
    Posts
    87

    Re: Out of Memory error when changing icon

    No, That is not the one. I can still add more forms without any problem
    Attached Images Attached Images  
    Last edited by RLPeloquin; Sep 24th, 2021 at 10:04 AM.

  8. #8
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,872

    Re: Out of Memory error when changing icon

    Have you read the thread about icons causing problems when used in VB6?

  9. #9
    Hyperactive Member
    Join Date
    Aug 2011
    Location
    Palm Coast, FL
    Posts
    416

    Re: [RESOLVED] Out of Memory error when changing icon

    Are you changing icons via VB6 code? If so, please post the code. You're likely forgetting to release some handles/resources/memory somewhere.

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