|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Vista and AutoRedrawVB6 apps that run fine on XP with a 1G Ram.
but on Vista, the same app, compiled or in IDE fail with a message that it cannot create the AutoRedraw. This applies to forms and to pictureboxes with AutoRedraw set true. If I set it False, the app runs but I can see no pictures. These are 2 to 4 Meg JPGs getting loaded. Really not a big image. This generally means there is not enough memory, but why? The Vista pc has 4G RAM. Aero is off. Here do I start? Is there some work around? P.S. I see that in System Information of Process Explorer that the Commit
memory was at 2.9G of the Windows Vista 3G possible. (I have 4G but I think Vista only can use 3G). So how do I determine what process is using all the RAM? OK, so this is a VB group, but I am hoping that some of you, like me, are using VB6 to develop and are running into similar situations and know how to troubleshoot better than this old codger. Thanks. Show quoteHide quote "Lorin" <lor***@hotmail.com> wrote in message news:B3009358-6487-4AFA-98A7-598F89AACF1A@microsoft.com... > VB6 apps that run fine on XP with a 1G Ram. > but on Vista, the same app, compiled or in IDE fail with a message that it > cannot create the AutoRedraw. > This applies to forms and to pictureboxes with AutoRedraw set true. > If I set it False, the app runs but I can see no pictures. > These are 2 to 4 Meg JPGs getting loaded. Really not a big image. > This generally means there is not enough memory, but why? > The Vista pc has 4G RAM. > Aero is off. > Here do I start? > Is there some work around? > > Hi Lorin,
You must be doing something else in your code that is causing a memory leak or loop. I can use VB6 apps wiht AutoRedraw set to true without this problem. Show quoteHide quote "Lorin" <lor***@hotmail.com> wrote in message news:B3009358-6487-4AFA-98A7-598F89AACF1A@microsoft.com... > VB6 apps that run fine on XP with a 1G Ram. > but on Vista, the same app, compiled or in IDE fail with a message that it > cannot create the AutoRedraw. > This applies to forms and to pictureboxes with AutoRedraw set true. > If I set it False, the app runs but I can see no pictures. > These are 2 to 4 Meg JPGs getting loaded. Really not a big image. > This generally means there is not enough memory, but why? > The Vista pc has 4G RAM. > Aero is off. > Here do I start? > Is there some work around? > > This has prompted me to write a memory gauge showing used vs available.
On a Vista PC there is the Reliability and Performance Monitor that is much easier to use than the XP version. This app will show what application is causing the problem and much more. Unfortunately, I rebooted and the problem went away before I discovered the R&PM app so I never got to see who was eating my memory. At least now with my own memory monitor app I can easily detect the memory usage and then use R&PM to see who is eating memory. This is all more fun than I deserve. Show quoteHide quote "Bill McCarthy" <TPASoft.com Are Identity Thieves> wrote in message news:eMUxLGc3JHA.4872@TK2MSFTNGP04.phx.gbl... > Hi Lorin, > > You must be doing something else in your code that is causing a memory > leak or loop. I can use VB6 apps wiht AutoRedraw set to true without this > problem. > > > > "Lorin" <lor***@hotmail.com> wrote in message > news:B3009358-6487-4AFA-98A7-598F89AACF1A@microsoft.com... >> VB6 apps that run fine on XP with a 1G Ram. >> but on Vista, the same app, compiled or in IDE fail with a message that >> it cannot create the AutoRedraw. >> This applies to forms and to pictureboxes with AutoRedraw set true. >> If I set it False, the app runs but I can see no pictures. >> These are 2 to 4 Meg JPGs getting loaded. Really not a big image. >> This generally means there is not enough memory, but why? >> The Vista pc has 4G RAM. >> Aero is off. >> Here do I start? >> Is there some work around? >> >> >
OT: The bloated get bloatier
MBF to IEEE (Beg. Q) write a bitmap into an array of picture boxes VSFlexGrid 8 for VB 6 Free or low cost PDF viewer ocx? Sending email without client Toolbar Dilema Where are the VB6 Reference entries kept? How do I stop opportunistic record locking from causing massive de calling (and deleting) a string from an unmanaged dll |
|||||||||||||||||||||||