Re: [PyOpenGL-Users] access violation when calling glGenFramebuffers
Brought to you by:
mcfletch
From: Chris B. - N. F. <chr...@no...> - 2013-04-04 22:22:22
|
On Thu, Apr 4, 2013 at 10:31 AM, Mike C. Fletcher <mcf...@vr...> wrote: > Actually ctypes *does* now support sized types: > > ctypes.c_int8 ctypes.c_int16 ctypes.c_int32 ctypes.c_int64 cool! I didn't see that in the docs I was looking at... > As for the original error, it *could* be that there's a problem with 64-bit > windows there, but I'm a bit skeptical, as 64-bit Linux doesn't show any > problems, and the test_core.py script actually generates a framebuffer > during testing if glGenFrameBuffers is available. That's my very first > smoke-test for the build working on any platform. well, IIUC, LInux (gcc) 64 bit gives you 64 bits for and "int" and Windows (MSVC) gives you 23 bits for an "int", or something like that -- there is defiantly a difference in there somewhere (maybe it's long?) Anyway, I think it sure could be a non-issue on LInux, and kill you on windows. -Chris > Something to verify to debug the issue: > > the address printed out as the access violation is *precisely* the same as > the result of ctypes.addressof( variable ) when doing the raw API query > > if we're looking at different values, then we likely have the wrapper wrong > (i.e. somehow it is changing the value passed in), if they are the same, > then there's something preventing the writing to that address... which I > don't have much to contribute... > > HTH, > Mike > > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |