C Board  

Go Back   C Board > Community Boards > Tech Board

Reply
 
LinkBack Thread Tools Display Modes
Old 03-18-2003, 05:35 AM   #1
It's full of stars
 
adrianxw's Avatar
 
Join Date: Aug 2001
Posts: 4,833
GIF not drawing sometimes.

I have been merging my two websites and basically redoing a lot of the stuff. I have come across a funny little problem.

The top edge, bottom edge and the two side edges are frames. I have the frames set up to draw, and repeat, a tiny .GIF file in these borders. The .GIF is 16 x 1 pixels.

9 times out of 10 it works fine, but sometimes it "misses" one of the edges, (just draws a white rectangle). Usually only one edge is missing, and which, would seem to be random.

The corner pieces are also .GIF's but larger, 16 x 16. I've never seen these miss, and all the site contents draw fine, including some other small .GIF's used as vertical and horizontal dividers which are 24 x 1. I can make the edge .GIF's bigger of course, but I can't see why I should have to.

Any insights anyone? (IE 6, SP1 and other patches).
__________________
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
adrianxw is offline   Reply With Quote
Old 03-18-2003, 05:39 AM   #2
RoD
Banned
 
RoD's Avatar
 
Join Date: Sep 2002
Posts: 6,334
Are you hosting the site yourself, or through a company? Also, do you have a link so that we can see the problem for ourselves?
RoD is offline   Reply With Quote
Old 03-18-2003, 05:45 AM   #3
It's full of stars
 
adrianxw's Avatar
 
Join Date: Aug 2001
Posts: 4,833
The two old sites were hosted and the hosts became a pain, so I have Apache running here now, but I don't need to publish the page to see the effect, simply opening the .html file with IE does it.

My firewall is not yet configured to pass http traffic so you can't come to the site yet, but next time it happens, I'll paste up a picture.
__________________
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
adrianxw is offline   Reply With Quote
Old 03-18-2003, 05:49 AM   #4
RoD
Banned
 
RoD's Avatar
 
Join Date: Sep 2002
Posts: 6,334
Ok, i have to go to class and junk now, if its not fixed before i get home i'll have a looksy.
RoD is offline   Reply With Quote
Old 03-18-2003, 06:57 AM   #5
End Of Line
 
Hammer's Avatar
 
Join Date: Apr 2002
Posts: 6,240
Try clearing your browsers cache, I've found similar problems even on this site (eg the envelope icons don't always display).
__________________
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Hammer is offline   Reply With Quote
Old 03-18-2003, 08:03 AM   #6
It's full of stars
 
adrianxw's Avatar
 
Join Date: Aug 2001
Posts: 4,833
These two pictures show the effect.
Attached Images
 
__________________
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
adrianxw is offline   Reply With Quote
Old 03-18-2003, 08:03 AM   #7
It's full of stars
 
adrianxw's Avatar
 
Join Date: Aug 2001
Posts: 4,833
... and ...
Attached Images
 
__________________
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
adrianxw is offline   Reply With Quote
Old 03-18-2003, 08:05 AM   #8
It's full of stars
 
adrianxw's Avatar
 
Join Date: Aug 2001
Posts: 4,833
Notice both edge components using the small left edge .GIF are missing in the second. The top edge is drawn correctly. I have six different colour schemas, all show the same problem sometimes! Resizing does not cause the missing .GIF to appear, but press refresh and there it is.

Hammer: I'll try that.
__________________
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
adrianxw is offline   Reply With Quote
Old 03-18-2003, 08:37 AM   #9
5|-|1+|-|34|)
 
ober's Avatar
 
Join Date: Aug 2001
Posts: 4,429
heh... I see your problem. You're not using Opera.

No, seriously.... that's weird. Is it just those gifs or is the rest of your display freaking out too?
ober is offline   Reply With Quote
Old 03-18-2003, 08:50 AM   #10
Registered User
 
Vber's Avatar
 
Join Date: Nov 2002
Posts: 807
Adrian, this happens always? this happens only in IE? did you try in Opera, Mozilla or another browser?
Vber is offline   Reply With Quote
Old 03-18-2003, 09:51 AM   #11
It's full of stars
 
adrianxw's Avatar
 
Join Date: Aug 2001
Posts: 4,833
>>> Is it just those gifs or is the rest of your display freaking out too?

Just those 4 .GIF's everything else is fine. If you look at the pictures, the corner pieces, and the piece where the horizontal divider joins the edge are correct, they are .GIF's, the horizontal divider is also 24 x 1 .GIF repeated as many times as is necessary, that always works too. It is only the extreme edge pieces.

>>> Adrian, this happens always?

No. It happens about 1 in 10 draws.

>>> only in IE? did you try in Opera, Mozilla or another browser?

I only have IE, but if that is the problem, then I'll need to do it another way anyway. What is the point of a site which doesn't display right in one of the most popular browsers out there?
__________________
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
adrianxw is offline   Reply With Quote
Old 03-18-2003, 09:56 AM   #12
Mayor of Awesometown
 
Govtcheez's Avatar
 
Join Date: Aug 2001
Location: MI
Posts: 8,826
> What is the point of a site which doesn't display right in one of the most popular browsers out there?

True, but make sure that your site doesn't *only* display correctly in IE, once you get it working. It's frustrating for those of us using other browsers to get goofy pages because someone decided to do something IE-only.
__________________
-Govtcheez
govtcheez03@hotmail.com
Govtcheez is offline   Reply With Quote
Old 03-18-2003, 10:05 AM   #13
Registered User
 
Vber's Avatar
 
Join Date: Nov 2002
Posts: 807
>>I only have IE, but if that is the problem, then I'll need to do it another way anyway. What is the point of a site which doesn't display right in one of the most popular browsers out there?
<<

That's not my point. I just want to understand if the problem is in the source code of your page, if it works in Mozilla, so it's problem in the source code, and without seeing him, I can't help you too much, maybe you could upload the file somewhere, where we can see the code.

>>True, but make sure that your site doesn't *only* display correctly in IE, once you get it working. It's frustrating for those of us using other browsers to get goofy pages because someone decided to do something IE-only.
<<

Well, to make a site 100% compatible with any browser that supports w3.org, easy, just develop him to Opera, and alone, all the site will work on ANY browser that works under w3. This is what I always do when I develop my sites, I like this way, haven't problem like, "your site don't work in mozilla blah blah".
Vber is offline   Reply With Quote
Old 03-18-2003, 10:21 AM   #14
It's full of stars
 
adrianxw's Avatar
 
Join Date: Aug 2001
Posts: 4,833
Cheez:

Yeah, I know. Thing is, I would seem to be using bog standard stuff here, so it should work on any reasonably up to date browser, (frame enabled).

I think if I make the .GIF bigger, like the corner pieces which display correctly every time, the fault might disappear, but I'd like to know why that should be necessary.

Vber:

I'll see if I can put together a minimal page which shows the faults then zip the bits together and upload it.
__________________
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
adrianxw is offline   Reply With Quote
Old 03-18-2003, 10:27 AM   #15
End Of Line
 
Hammer's Avatar
 
Join Date: Apr 2002
Posts: 6,240
Why use frames? Why not tables? (design question, rather than solving your probem!)
__________________
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Hammer is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drawing HBITMAP into CWnd, Acquired from "screenshot" DeusAduro Windows Programming 6 07-02-2009 03:41 PM
Slow drawing code tjpanda Windows Programming 5 05-09-2008 05:09 PM
Line Drawing Algorithm Axpen Game Programming 15 08-01-2005 06:30 PM
How to do double buffing with win32 drawing? Josh Kasten Windows Programming 2 03-27-2004 12:02 AM
drawing minimaps and radar screens. Eber Kain Game Programming 4 03-08-2002 11:44 AM


All times are GMT -6. The time now is 12:57 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22