PDA

Click to See Complete Forum and Search --> : VB6 caused a GPF in module User.exe


VBGreen
Jan 7th, 2001, 02:49 AM
Dear Everybody,

I am trying to develop some graphic application in VB6. Basically the are GIF files which are attached to the image control.

The application runs fine in the first few times i.e. Start and Stop during design time but encounter the below message
'VB6 caused a general protection fault in module USER.EXE at 0004:00005ffd'

Can anyone please advice.

Thank you in advance

Mad Compie
Jan 7th, 2001, 04:37 AM
Hm, it depends what your program does.
Perhaps, something is not good installed.
Check also the user.exe for validation, using sfc.exe (if you're using >=Win98).

VBGreen
Jan 8th, 2001, 05:03 AM
Well, I have checked with SFC and everything seems alright. To further explain on my application, basically I am moving about 7 GIF graphics within a form using i.e.

image1.top = image1.top - 100

etc.

Sometimes I even face another error in white screen,

This computer is dangerously low in resources.

As mentioned, it only happens after a few Start and Stop.

I do not face the above problem of my similar application if I am using BMP graphics. So, it made me wonder could it be this problem on whether VB could handle GIF format properly.

It now really puzzles me.

Thanks

[Edited by VBGreen on 01-08-2001 at 07:02 AM]

Mad Compie
Jan 8th, 2001, 01:16 PM
Perhaps the program can executes an infinite loop, and after a while the system hangs.
Are you using VB5/6?
Are you using transparent GIFs? And what's the file size of your images. Probably your memory does not seems to be enough.

Fox
Jan 8th, 2001, 03:27 PM
GPFs may be caused my anything... did you give your application to someone so he can betatest it? I already had very mysteryous errors with VB and after re-installing it always worked fine.. try that if the error only happens on your computer.

VBGreen
Jan 8th, 2001, 07:24 PM
Thanks for the advice guys.

Anyway, here are some details.

I am using VB6. Yes, transparent GIFs and they are only about 1K - 2K of size. My computer, PIII 450MHz with 128MB of RAM.

At the moment, I am trying to test the application with different OS and computers. Let's see what happens?

Mad Compie
Jan 9th, 2001, 02:12 PM
You can always send me a copy, so I can test it on my PC. I have a Compaq PIII,500MHz, also 128MB RAM.
Also consider the use of the DoEvents statement. I use this statement very often, but unfortunately, sometimes a bug rises and mostly it's due to some misplaced DoEvents.

VBGreen
Jan 11th, 2001, 07:38 PM
Finally! Guess what?

I found out that it was due to the video card problem or should I say bugs or incompatability.........?????

I actually isolated the problem by reformatting my harddisk, reinstall Win98 and reinstall VB6 and tried my program and surprisingly it runs fine. No problem at all. Then when I downloaded my video driver and try my VB program, there it goes the error pop up.

No choice, I got myself a new MSI 8806 TNT2 Pro and everything is fine now.

Anyway, thanks to all who has extended their concern to assist this problem.

I do read a lot of problems regarding GPF in module USER.EXE and maybe I can conclude that sometimes it is not only the application software that is given the problem but hardware do contribute. Please comment if anyone of you out there think otherwise.

Rgs!