News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
segmentation fault while using fltk??
Author Message
jyf1987
Member
***


Posts: 58
Group: Registered
Joined: Jun 2008
Status: Offline
Reputation: 0
Post: #1
segmentation fault while using fltk??

this is my test code to use fltk
the problem is when i add
fltk.fl_circle(110,100,50)

this will make a segmentation fault!
if remove this ,the script works well,so how to solve it?

ps:the problem both occur at win/lin
and other simple draw method will occur this too,


the code:[/code]

Code:
ww=220
wh=200

math.randomseed(os.time())

w=fltk:Fl_Window(ww,wh,"my fltk demo")
b=fltk:Fl_Box(2,2,218,198)
b:color(fltk.FL_WHITE)
b:box(fltk.FL_FLAT_BOX)



fltk.fl_circle(110,100,50)


w:show()
Fl:run()


Cheers
jyf
08-16-2008 03:54 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
segmentation fault while using fltk?? - jyf1987 - 08-16-2008 03:54 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: