1. At wits end

Hello guys,

I've been working on a wrapper for OpenGL and GLUT. I almost have it
working (really)!
But I've got a bug I just can't track down. I'll be more that happy to put
your name
in the credits and sing you praises if you can figure it out. :)

What you will need is glut.dll, glu.dll, opengl.dll, and of course my
programs. The
dll's I think can be located at <www.opengl.org>. And if you are interested
I will
send you what I have.

What it does as of now, is it will go as far as to open a window, clear it
and then
bomb. With the error messages:

>EXW caused an invalid page fault in
>module <unknown> at 0000:005a2d1b.
>Registers:
>EAX=00000000 CS=023f EIP=005a2d1b EFLGS=00010212
>EBX=0000000f SS=0247 ESP=0056fb84 EBP=00000000
>ECX=00000000 DS=0247 ESI=00000cc0 FS=4c37
>EDX=00000000 ES=0247 EDI=005807c4 GS=0000
>Bytes at CS:EIP:
>00 01 45 41 00 8f 07 00 00 3e 47 41 00 e8 49 59
>Stack dump:
>00405053 00000000 01526a58 0056fbc4 01526a58 0153280c 00403c39 00000202
00000004 00000002 00423618 0056fbcc ffffffff >ffffff9c 00000002 00406965

and

>EXW caused an invalid page fault in
>module <unknown> at 0000:0b75fc5d.
>Registers:
>EAX=bff87fc0 CS=023f EIP=0b75fc5d EFLGS=00010246
>EBX=bff87fc0 SS=0247 ESP=005600f4 EBP=00560114
>ECX=00560198 DS=0247 ESI=817543cc FS=4c37
>EDX=bff76859 ES=0247 EDI=0056028c GS=0000
>Bytes at CS:EIP:
>Stack dump:
>bff7684d 0056028c bff87fc0 005601c0 00560198 00560578 bff76859 bff87fc0
005601a8 bff87fc0 0056028c bff87fc0 005601c0 >00560198 0b75fc5d 00560300

As you might guess this doesn't help much. I think it is a simple problem,
but I
have no idea where it is.

Any help would be extremely appreciated. And thank you Mathew Hounsell and
Daniel Berstein for your help.

Thanks
Paul Martin

new topic     » topic index » view message » categorize

2. Re: At wits end

Are you sure you are locking all necessary allocated memory

so that it will not be swapped out to disk ? You may be trying to use

something that has been swapped out to disk.

new topic     » goto parent     » topic index » view message » categorize

3. Re: At wits end

At 09:15 PM 3/24/99 -0500, you wrote:
>Are you sure you are locking all necessary allocated memory
>
>so that it will not be swapped out to disk ? You may be trying to use
>
>something that has been swapped out to disk.
>
hello

No, I'm allocating it, but if you are refering to using "lock_memory" that
appears to for the DOS32 platform. The only time it seems to be necessary
to allocate memory is when I retrieve the command line parameters. And the
code is as follows.

>atom array_ad, array_len
>sequence free_stuff
>free_stuff = {}
>----------------------------------------------------------------------------
>procedure handle_comm_line()
>atom string
>integer len
>sequence cmd
>cmd = command_line()
>cmd = cmd[2..length(cmd)] -- actually wants the name of the program
>len = length(cmd)
>array_ad = allocate ((len)*4)
>free_stuff= append(free_stuff,array_ad) -- so I free it later
>for i = 1 to len do
>    string = allocate_string(cmd[i])
>    free_stuff = append(free_stuff,string)
>    poke (string,cmd[i])
>    poke (array_ad+((i-1)*4), int_to_bytes(string))
>end for
>array_len = allocate(4)
>free_stuff = append(free_stuff,array_len)
>poke (array_len, int_to_bytes(len))
>end procedure
>----------------------------------------------------------------------------
>handle_comm_line()
>----------------------------------------------------------------------------

Like I've said before this is a very mysterious problem.

One other thing that I forgot to mention that you will need is Euphoria
2.1, since
it uses multiple callbacks.

Thanks
Paul Martin

new topic     » goto parent     » topic index » view message » categorize

4. Re: At wits end

------=_NextPart_000_0015_01BE7673.C5EE54C0
        charset="iso-8859-1"

>Any help would be extremely appreciated.

I don't know if it is help, but...

doesn't it have to be opengl32.dll, as Euphoria is a Win32 only app?

Also do you have the .h file conversion that Pete Eberlein did a long time
ago for open gl?I will attach it.

Any work toward this direction is much appreciated and I will help any way I
can...(with my limited resources)...Please send me any code you wish to
share, I will browse, store and modify as I usually do, but any add ons or
progress will be sent your way as well.
Thanks
Monty King


------=_NextPart_000_0015_01BE7673.C5EE54C0
        name="gl.ew"
Content-Transfer-Encoding: quoted-printable

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu