Re:
- Posted by Euman <Euman at triad.rr.com> Jun 24, 2006
- 1899 views
Euman wrote: > > On Sat, 2006-06-24 at 15:11 -0700, Sergio Gelli wrote: > > > > > Hi Euman: > > > > Thanks a lot for the attention, but, seems that I am not with luck. > > Please, looks at what the EFFM.exw happened when twirling: > > When I tried to expand drive C, the program failed. sees > > the error message. > > > > > > C:\11USRE\DIR\EFFM.exw:292 in function myalloc() > > A machine-level exception occurred during execution of this statement > > ... called from C:\11USRE\DIR\treeviews.ew:195 in function GetParentItem() > > ... called from C:\11USRE\DIR\EFFM.exw:969 in function WndProc() > > > > ^^^ call-back from Windows > > ... called from C:\11USRE\DIR\EFFM.exw:1201 in procedure WinMain() > > ... called from C:\11USRE\DIR\EFFM.exw:1205 > > --> see ex.err > > > > Perhaps I must come back toward win-95 ) > > But, I go to continue trying with the XP. > > > > As our friend Chris related, the function DIR() into > > a tine code, works fine, but crash into a longe code > > and depends on the position that this function is > > inside of program. > > > > > > Best Regards > > > > Srgio Gelli - Brasil > > Hello again, > > I can only assume that this is a very small issue in HeapCreate > > global atom pHeap > pHeap = c_func(xHeapCreate,{0,16384,0}) > > this is not large enough > try @ line:288 in effm.exw replacing 16384 w/ 32768 > > This increases the heaps initial buffer size > If this solves the issue for you please let me know. > > Nothing has changed with the call or parms to HeapAlloc since Win-95 per > <a > href="http://msdn.microsoft.com/library/en-us/memory/base/heapalloc.asp?frame=true">http://msdn.microsoft.com/library/en-us/memory/base/heapalloc.asp?frame=true</a> > so I have no reason to suspect function myalloc() is a problem. > > Regards, > Euman Please disregard that info as the last parm to HeapCreate is (0) so the heap is automatically expanded when needed. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/memory/base/heapcreate.asp My next guess is that "atom buffer" in function GetParentItem() and each instance of "buffer" in function GetParentItem() needs to be renamed "gp_buffer" although Im not sure why. I have confirmed that effm2.exw does run on my copy of Win-XP_SP2 ! I could be more help if that demo wasnt 5+ years old and I no longer run or write programs for the M$-Platforms, only Linux. try it and see if Im correct... Regards, Euman