Re: Help! GPF

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

At 04:19 PM 8/3/99 -0500, you wrote:
>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.

Hi again,

Being half pit-bull, I just couldn't let this go.  I decided to find the
minimum amount of program required to create the error.  Soon I was down to
just

  1. Windows
  2. Menu & submenu items
  3. Some buttons, checkboxes, EditTexts and groups
  4. A few variable declarations and just a bit of adding and multiplying
necessary to calculate position of window elements.
  5. No includes except win32lib.
  6. NO handlers (onClick, etc.), just simple create() statements
  7. ALL other parts of the application deleted.

Still, the same GPF would appear.

I tried deleting all the menu items.  Miraculously, the GPF disappeared!

Then I put the menu items back in, but deleted the buttons, checkboxes,
edittexts, and groups.  GPF disappears again!

I conclude that the GPF is caused by some subtle bug or interaction between
the menu items and the other window elements.  Perhaps, some time after the
menu elements are created, they cause a message to be sent which interferes
with something about the checkboxes etc.

I rearrange the program, keeping all the same elements, but putting menus
AFTER all the other window elements such as checkboxes, edittexts, buttons,
groups.

GPF disappears--or at least happens so seldom I haven't noticed it yet.

Again, I suspect some subtle bug in the menu/submenu code of win32lib.  In
the meanwhile, if you get occasional GPFs when creating these window items
(ie, just on startup, or just when these windows/window items are created),
try create()ing  menus/submenus AFTER all the other window elements.

--Brent


++++++++++++++++++++ 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     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu