Re: Help! GPF
- Posted by "Cuny, David" <David.Cuny at DSS.CA.GOV> Aug 03, 1999
- 412 views
Brent Hugh wrote: > I'm developing a windows midi application in Euphoria > and I am having the most vexatious possible GPF happen > with some regularity. I'd guess that Win32Lib is at fault. Probably in a routine in user32.dll, but that doesn't really narrow down the scope - there are a lot of routines in there. You might consider hacking Win32Lib a bit. Specifically, you could define your own versions of c_func and c_proc, along the lines of: constant traceFile = open("trace.txt", "r") function my_c_func( atom i, sequence s ) printf( traceFile, "function %d %x\n", {i,i} ) return c_func( i, s ) end function procedure my_c_proc( atom i, sequence s ) printf( traceFile, "function %d %x\n", {i,i} ) return c_proc( i, s ) end procedure When the program chokes, you have a trace of all the Win32 calls. From there, you should be able to determine the code that's actually at fault, and have some place to start debugging from. -- David Cuny