Discussion:
"Run-time error '50003': Unexpected error"
(too old to reply)
Cornelius
2005-11-28 20:27:06 UTC
Permalink
Starting an VB 6 compiled application on some computers causes the following
error:
"Run-time error '50003': Unexpected error".
The first form is loaded correctly. Then somewhere in the unloading of the
first form and the loading of the second one, the program crashes...
I tried to following steps:
1. Installing the newest VB 6 Runtimes - no success
2. Trying to catch the error with "on error resume next" - no success, the
application just disappears

On some other pages, I found out that sometimes this happens when gifs are
loaded. But I do not load any gifs. Only jpegs.

Does any one have an idea whats happening here? I would be very happy if
this annoying bug disappears :)

Thanks a lot.
Best wishes
Cornelius
Kevin Provance
2005-11-28 20:46:46 UTC
Permalink
I had this problem once before, but it was literally years ago. It involved
images as well. It had something to do with the image being invalid and
it's colour depth. I wish I could remember more.

It seems that it had something to do with those images not rendering
properly with users running 32 bit color.

My suggestion: Change the colour mode on your computer to different
settings and see if the error still occurs. it may be as simple as changing
the colour depth of your images...but this is just a guess based on what
happened to me back in 1997 or so.

- Kev
Post by Cornelius
Starting an VB 6 compiled application on some computers causes the following
"Run-time error '50003': Unexpected error".
The first form is loaded correctly. Then somewhere in the unloading of the
first form and the loading of the second one, the program crashes...
1. Installing the newest VB 6 Runtimes - no success
2. Trying to catch the error with "on error resume next" - no success, the
application just disappears
On some other pages, I found out that sometimes this happens when gifs are
loaded. But I do not load any gifs. Only jpegs.
Does any one have an idea whats happening here? I would be very happy if
this annoying bug disappears :)
Thanks a lot.
Best wishes
Cornelius
Cornelius
2005-11-28 21:25:06 UTC
Permalink
Hi Kevin,

you were right. It's just the icon of a form that lets crash the whole
application... just mad...
thanks a lot.
Post by Kevin Provance
I had this problem once before, but it was literally years ago. It involved
images as well. It had something to do with the image being invalid and
it's colour depth. I wish I could remember more.
It seems that it had something to do with those images not rendering
properly with users running 32 bit color.
My suggestion: Change the colour mode on your computer to different
settings and see if the error still occurs. it may be as simple as changing
the colour depth of your images...but this is just a guess based on what
happened to me back in 1997 or so.
- Kev
Post by Cornelius
Starting an VB 6 compiled application on some computers causes the following
"Run-time error '50003': Unexpected error".
The first form is loaded correctly. Then somewhere in the unloading of the
first form and the loading of the second one, the program crashes...
1. Installing the newest VB 6 Runtimes - no success
2. Trying to catch the error with "on error resume next" - no success, the
application just disappears
On some other pages, I found out that sometimes this happens when gifs are
loaded. But I do not load any gifs. Only jpegs.
Does any one have an idea whats happening here? I would be very happy if
this annoying bug disappears :)
Thanks a lot.
Best wishes
Cornelius
Kevin Provance
2005-11-28 23:40:42 UTC
Permalink
Glad I could help you out there bud. Post anytime...and keep on coding!
<g>

- Kev
Post by Cornelius
Hi Kevin,
you were right. It's just the icon of a form that lets crash the whole
application... just mad...
thanks a lot.
Post by Kevin Provance
I had this problem once before, but it was literally years ago. It involved
images as well. It had something to do with the image being invalid and
it's colour depth. I wish I could remember more.
It seems that it had something to do with those images not rendering
properly with users running 32 bit color.
My suggestion: Change the colour mode on your computer to different
settings and see if the error still occurs. it may be as simple as changing
the colour depth of your images...but this is just a guess based on what
happened to me back in 1997 or so.
- Kev
Post by Cornelius
Starting an VB 6 compiled application on some computers causes the following
"Run-time error '50003': Unexpected error".
The first form is loaded correctly. Then somewhere in the unloading of the
first form and the loading of the second one, the program crashes...
1. Installing the newest VB 6 Runtimes - no success
2. Trying to catch the error with "on error resume next" - no success, the
application just disappears
On some other pages, I found out that sometimes this happens when gifs are
loaded. But I do not load any gifs. Only jpegs.
Does any one have an idea whats happening here? I would be very happy if
this annoying bug disappears :)
Thanks a lot.
Best wishes
Cornelius
Mike
2008-12-19 01:45:01 UTC
Permalink
Kevin --

I couldn't believe my problem was as simple as you suggested in your post
three years ago, so I first tried re-registering OCX files. That didn't work
but then I just tried changing from 16 color to 32 color and viola! Exactly
as you said.
Thanks!

Mike
MikeD
2008-12-19 02:26:02 UTC
Permalink
Post by Mike
Kevin --
I couldn't believe my problem was as simple as you suggested in your post
three years ago, so I first tried re-registering OCX files. That didn't work
but then I just tried changing from 16 color to 32 color and viola! Exactly
as you said.
Thanks!
Except that you started a new thread (or it's been long enough that the thread has dropped from the server) and you quoted nothing. You're reply has no context whatsoever...so nobody has a clue what you're talking about.
--
Mike
C Kevin Provance
2009-01-23 00:35:04 UTC
Permalink
I remember this actually. Glad it worked out for you. It took me forever
to track that bug back in the day. ;-)

"Mike" <***@discussions.microsoft.com> wrote in message news:94FFC625-20F0-4527-99FD-***@microsoft.com...
| Kevin --
|
| I couldn't believe my problem was as simple as you suggested in your post
| three years ago, so I first tried re-registering OCX files. That didn't
work
| but then I just tried changing from 16 color to 32 color and viola!
Exactly
| as you said.
| Thanks!
|
| Mike
|
|
Tommy Vinson
2009-01-14 12:32:00 UTC
Permalink
sorry dudes, this wan't my problem.

Any other ideas for me?
ajith kumar pillai
2008-09-15 13:10:01 UTC
Permalink
Post by Cornelius
Starting an VB 6 compiled application on some computers causes the following
"Run-time error '50003': Unexpected error".
The first form is loaded correctly. Then somewhere in the unloading of the
first form and the loading of the second one, the program crashes...
1. Installing the newest VB 6 Runtimes - no success
2. Trying to catch the error with "on error resume next" - no success, the
application just disappears
On some other pages, I found out that sometimes this happens when gifs are
loaded. But I do not load any gifs. Only jpegs.
Does any one have an idea whats happening here? I would be very happy if
this annoying bug disappears :)
Thanks a lot.
Best wishes
Cornelius
Hi

u are using any .dsr files in the project pls let me know
Kim
2010-03-23 21:11:01 UTC
Permalink
Post by ajith kumar pillai
Post by Cornelius
Starting an VB 6 compiled application on some computers causes the following
"Run-time error '50003': Unexpected error".
The first form is loaded correctly. Then somewhere in the unloading of the
first form and the loading of the second one, the program crashes...
1. Installing the newest VB 6 Runtimes - no success
2. Trying to catch the error with "on error resume next" - no success, the
application just disappears
On some other pages, I found out that sometimes this happens when gifs are
loaded. But I do not load any gifs. Only jpegs.
Does any one have an idea whats happening here? I would be very happy if
this annoying bug disappears :)
Thanks a lot.
Best wishes
Cornelius
Hi
u are using any .dsr files in the project pls let me know
I am having the same problem with CR9 reports. And yes I am using .dsr
files.Can you point me in the right direction for a cure?

Thanks
Kim

Loading...