Help! GPF

new topic     » topic index » view thread      » older message » newer message

Hi all,

I'm developing a windows midi application in Euphoria and I am having the
most vexatious possible GPF happen with some regularity.

The GPF happens just after the program starts, before the main window even
pops up.  It happens occasionally--once every 5 or 10 times the program runs.

It does not seem to be associated with any particular program code (it
happens when the program is around line 400, but it doesn't make a bit of
difference what code you put or don't put around those lines).

It is not related to a syntax error or runtime error--you can run the same
code again immediately after the GPF, and it runs just fine, with no error.

The error happens (sporadically) whether the code is run as a separate file
or bound.

The program uses win32lib (ver 0.20) and some other libraries.  Full
include files and details of the GPF error messages are below.

Any suggestions?  This is driving me crazy!

--Brent

Error message (this is always the same):
---------------
Application Error
The instruction at bff64e46 referenced memory at ffffffff
The memory could not be read from
---------------

The next message box comes up something like this (not always exactly the
same):
---------------
EXW caused an invalid page fault in
module USER32.DLL at 0137:bff64e46.
Registers:
EAX=00697b80 CS=0137 EIP=bff64e46 EFLGS=00010297
EBX=00697b8c SS=013f ESP=0056f9b8 EBP=0056f9ea
ECX=ffffffff DS=013f ESI=02000004 FS=17b7
EDX=00000006 ES=013f EDI=ffffffff GS=0000
Bytes at CS:EIP:
66 81 39 90 68 75 25 66 81 79 06 90 68 75 1d 81
Stack dump:
0040502b ffffffff 00000dd8 000000f1 00000001 00000000 00000200 00000000
0000005d 0040e829 ffff0078 006a7028 000001d2 0056fb04 00000202 00000000
---------------

Includes (I don't think it's specifically caused by any of these--I've gone
through and commented each of them out, and before getting any other error,
you will still get the GPF):
-------------
include win32lib.ew -- David Cuny library
include win32ini.ew

include msgbox.e
include machine.e
include dll.e
include midi.ew
include midierr.ew
include get.e
include file.e

(btw, midi.ew and midierr.ew are from my windows midi toolkit that will
soon be available on the Euphoria archive.)




++++++++++++++++++++ Brent Hugh / bhugh at cstp.umkc.edu ++++++++++++++++++++
++++++++ University of Missouri-Kansas City, Conservatory of Music +++++++
++ Sheet Music/Recordings: http://www.sunflower.org/~bhugh/pathetic.spm ++
+ Internet Piano Concert:  http://cctr.umkc.edu/userx/bhugh/recital.html +
++++++++++ Classical Piano MP3s http://www.mp3.com/brent_d_hugh ++++++++++

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu