Guys, Thanks for the examples, the problem is apparently that HBMemoEditor() class (in memoedit.prg) calls ::Edit() method of HBEditor() super class, which calls ::KeyboardHook() which is overridden by HBMemoEditor(), and which in turn calls ::Edit() method again. Hence the infinite loop.
Seem very old bug and I have no idea how to fix it. Maybe Maurilio can help. Brgds, Viktor On Thu, Mar 12, 2009 at 1:51 AM, Barry Jackson <[email protected]> wrote: > I have a similar problem with memoedit() it goes into endless loop when ESC > hit during edit without calling the user func. > http://i115.photobucket.com/albums/n287/barjac_2006/memoedit1.png > Maybe that screenshot is of use? > Rgds Barry > > Pritpal Bedi wrote: > >> Viktor >> >> But where? >>> >> >> Clipper documentation says that user func is called with mode==ME_INIT >> until func returns 0 ( ME_DEFAULT ). >> >> In the code above, I am returning K_INS and expecting >> that the func will be called next time also and it will return 0. >> >> But the fun is called recursively ( around 4000 ) times >> with nMode == 1 ( ME_UNKEY ). Buffer is never displayed >> and appln terminates. >> >> Need more debugging, then tell me. >> >> Regards >> Pritpal Bedi >> >> >> >> >> _______________________________________________ > Harbour mailing list > [email protected] > http://lists.harbour-project.org/mailman/listinfo/harbour >
_______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
