Windows XP Graphics Problem

Windows specific questions.
MSMatt
Posts: 8
Joined: May 08, 2010 20:21
Contact:

Windows XP Graphics Problem

Postby MSMatt » May 23, 2010 15:42

Lately I've been experiencing some difficulties on my Windows XP Pro version 2002 with FreeBASIC.

Every time I try to make a program that uses SCREEN, LINE, CIRCLE, DRAW, or any other graphics command, when I compile it, the program crashes, and windows asks me to send the error report. Can anybody help me with this?

My specs are:

HP Pavilion 560w
Intel Pentium 4 1.50 GHz
512 MB RAM
An Nvidia graphics card (i don't know which model)

I also have FreeBASIC 0.20.0b.

I hope I've given enough information so you guys with the technical knowledge can help me.
vdecampo
Posts: 2982
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Postby vdecampo » May 23, 2010 17:20

Make sure you have DirectX enabled. This is the only reason I know of for FB 0.20.0 to crash when initializing gfx. You could also try updating your display driver.

-Vince
Theunis Jansen
Posts: 248
Joined: Jul 01, 2010 9:35

Windows XP Graphics Problem.

Postby Theunis Jansen » Jul 03, 2010 9:27

A snippet from your program would help to do a debug.
Does WINDOWS say which program.
Gablea
Posts: 1049
Joined: Apr 06, 2010 0:05
Location: Northampton, United Kingdom
Contact:

Postby Gablea » Jul 07, 2010 16:21

Hi

I have had the same problems and I found if I use this code

ScreenRes 800,600,32,,fb.GFX_FULLSCREEN

(change the screen sizes to match what you need) works fine
Theunis Jansen
Posts: 248
Joined: Jul 01, 2010 9:35

Windows cant run prog.

Postby Theunis Jansen » Jul 18, 2010 21:48

This looks a lot like the SCREEN 7 , 13 problem for the newer nVidia cards. See Joshy's comment under Beginners. It appears to be the solving of our problem.
kiyotewolf
Posts: 1009
Joined: Oct 11, 2008 7:42
Location: ABQ, NM
Contact:

Postby kiyotewolf » Jul 22, 2010 1:53

Using fb
setenviron("fbgfx=GDI")


Putting this at the top in the #include type area seems to help me when I get buggy graphics issues.

I have quite a few various platforms that I can run my IDE and compiled programs on.

Honestly, I'm not sure what that does, except change the type of graphics driver is used?

Someone fill me in here.. ha ha..

But, it may help you.



~Kiyote!
rdc
Posts: 1725
Joined: May 27, 2005 17:22
Location: Texas, USA
Contact:

Postby rdc » Jul 22, 2010 8:43

kiyotewolf wrote:Using fb
setenviron("fbgfx=GDI")


You can also use this:

Code: Select all

'Use the GDI driver.
#Ifdef __FB_WIN32__
   ScreenControl( fb.SET_DRIVER_NAME, "GDI" )
#EndIf


This sets the graphics driver to use GDI instead of DirectX. There is a bug in the graphics with DirectX that causes a program to crash when going from windowed to fullscreen back to windowed. This bug doesn't appear when using GDI. For 2D stuff, I haven't seen much of a performance difference between GDI and DirectX.
kiyotewolf
Posts: 1009
Joined: Oct 11, 2008 7:42
Location: ABQ, NM
Contact:

Postby kiyotewolf » Jul 22, 2010 23:07

I've switched to using the GDI driver for all my works now, since it helps on some of the more "munged" together systems I have.



~Kiyote!

Return to “Windows”

Who is online

Users browsing this forum: No registered users and 6 guests