• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
values not passed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

values not passed?


  • Subject: values not passed?
  • From: james tittle <email@hidden>
  • Date: Wed, 14 Jun 2006 15:16:51 -0400

...in porting a small graphics engine, I've stumbled across some weirdness that has me stumped :-\ The graphics engine is mostly in a .dylib, which the application calls into...the problem has come when trying to create a window:

Breakpoint 3, dmsInitEx (screenX=640, screenY=480, bpp=32, fullscreen=false, soundFlag=true, vsync=true, pakFile=0x8df40 "data.pak") at globals.cpp:523
523 if(!glWindow.createWindow(screenX, screenY, bpp, fullscreen))


...so I step into this, and after a bit of dyld_stub_stuff, find the following:

TRACTION_DEMOTRACTOR::GLWindow::createWindow (this=0x8e484, w=680536, h=680536, b=18997272, screen=18997264) at opengl.cpp:244
244 bool GLWindow::createWindow(int w, int h, int b, bool screen)
(gdb) p w
$3 = 680536


...how did my (w)idth and (h)eight all of a sudden go from 640/480 to 680536/680536? Better yet, how can I fix it?

puzzled,
jamie
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: XCode ld and static lib.a files...
  • Next by Date: Warning with offsetof macro?
  • Previous by thread: Re: XCode ld and static lib.a files...
  • Next by thread: Warning with offsetof macro?
  • Index(es):
    • Date
    • Thread