hey!

  i have this *very* interesting bug that occurs
  very rarely in my program in which a Fatal Exception
  is thrown after a long period of use.

  what would be the best way to approach this 
  problem? 

  gremlins? or.. better memory management.

  i have tracked the problem down to a particular
  "series of actions" however when i repeat it.. i n
  need to repeat it over and over again (that long
  period of time - 20mins+) before it happens again.

  i declare a global variable which is a structure,
  and i feel that it may be a sharing violation with
  that memory.

  would i be better off declaring something like:

    VoidHand    myGlobalHandle;
    MyStructPtr myGlobalVar;

    ...
    myGlobalHandle = MemNew(sizeof(MyStruct)); (or whatever)

  and when i use this data, use the:

    myGlobalVar = (MyStructPtr)MemHandleLock(myGlobalHandle)..
    MemHandleFree(myGlobalVar);

  this means i will dynamically allocate my "structure".. 
  does anyone know if this might help - or have you 
  come accross the "Fatal Exception" problem?

  any guidance / experiences would be helpful. :P

  cheers.
     
az.
--
Aaron Ardiri 
Lecturer                       http://www.hig.se/~ardiri/
University-College i G�vle     mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN       
Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
Mob: +46 70 352 8192           A/H: +46 26 10 16 11

Reply via email to