Re: Open Windows and Core Dumps
Posted in 1997
This isn't a direct answer to your question (I don't know why you get the core dump), but still: I never use open window more than one time on the same window. There is a "defect" in the way Informix have designed the window handler in 4GL. It should of course have been: define window... with the same syntax as open window and then current window is ... I have implemented this functionallity in a function that keeps track of which windows needs to be opened, and use this function for all window handling. You will with all probability get rid of your problem by doing it this way. It does use some more memory as opened windows are never closed, but that is hardly an issue in this day and age. mrh@panix.com (Michael Hoffman) wrote: :UGH! I hate Core dumps!!! Can anyone tell me exactly what I am supposed :to look for in a "core" file? :Well, that's besides the point... although helpful. :Here is the problem: I am running a application that puts message windows :on the screen at various times. It seems that at one point in the program, :I "end input" and the next time I try to "Open window at 12,2 with 1 line..." :the core dumps. The exact message is: "MRHTB[8]11878 Memory fault :(coredump)". :Can anyone explain why opening a window would cause a memory fault? I have :an open form window as well, and that doesn't close until the program's end. :SYS INFO: We are running Informix V.4.10.UC (i4gl is UC4, isql is UC2) on a : SCO OpenServer Release 5. :I don't think we are running out of memory because I can call the "open window" :function as many times as I like BEFORE I "end input". But as soon as I am :out of the "Input" statement, the next "open window" call dumps! :Thanks for any help, :Michael Hoffman :P.s. -- Thanks for those of you who responded to my previous question about :Display and Input Array positioning. I now have a copy of the In4mix Faq :(which had no answers for THIS question...). Although no answers were found, :I appreciated the helpful responses. Hopefully, I'll get a workable solution :on this question. : Nils.Myklebust@idg.no NM Data AS, P.O.Box 9090 Gronland, N-0133 Oslo, Norway My opinions are those of my company The Informix FAQ is at http://www.iiug.org