Re: (no subject) or DIR()
- Posted by Sergio Gelli <sergelli at uol.com.br> Jun 24, 2006
- 895 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 > > Hi Euman: I modified line 288 in effm.exw replacing 16384 with 32768, but unhappyly the problem occurred again. Below, I am ordering a little more than information. Many Thanks. Sérgio Gelli - Brasil C:\11USRE\DIR\EFFM.exw:294 in function myalloc() A machine-level exception occurred during execution of this statement size = 256 mem = <no value> ... called from C:\11USRE\DIR\treeviews.ew:195 in function GetParentItem() id = 1246388 hItem = 6453068 hti = 6487380 buffer = <no value> htistr = {} hitstr = {} cout = 0 junk = <no value> ... called from C:\11USRE\DIR\EFFM.exw:971 in function WndProc() hwnd = 1836176 iMsg = -402 wParam = 0 lParam = 521792 i = 3 j = <no value> k = <no value> j = <no value> ^^^ call-back from Windows ... called from C:\11USRE\DIR\EFFM.exw:1203 in procedure WinMain() szAppName = 19101768 hwnd = 1836176 msg = 19101724 wndclass = 19101672 WndProcAddress = 6299360 class = 49719 id = 0 icon_handle = 65539 hThisInst = 4194304 ... called from C:\11USRE\DIR\EFFM.exw:1207 Global & Local Variables C:\EUPHORIA\include\misc.e: pretty_end_col = <no value> pretty_chars = <no value> pretty_start_col = <no value> pretty_level = <no value> pretty_file = <no value> pretty_ascii = <no value> pretty_indent = <no value> pretty_ascii_min = <no value> pretty_ascii_max = <no value> pretty_line_count = <no value> pretty_line_max = <no value> pretty_dots = <no value> pretty_fp_format = <no value> pretty_int_format = <no value> pretty_line = <no value> C:\EUPHORIA\include\machine.e: mem = 6273484 check_calls = 1 C:\EUPHORIA\include\get.e: input_file = <no value> input_string = <no value> string_next = <no value> ch = <no value> C:\EUPHORIA\include\file.e: SLASH = 92'\' my_dir = -2 C:\11USRE\DIR\EFFM.exw: junk = 1 pHeap = 18022400 hMenu = 6424011 IDM_FILE = 63701815 IDM_EXIT = 200 IDM_HELP = 8783171 IDM_ABOUT = 201 comctrl_inf = {5,82'R',2800,1106} attributes = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, {100'd'}, {114'r',100'd'}, {104'h',100'd'}, {114'r',104'h',100'd'}, {115's',100'd'}, {114'r',115's',100'd'}, {115's',104'h',100'd'}, {114'r',115's',104'h',100'd'}, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, {97'a',100'd'}, {114'r',97'a',100'd'}, {97'a',104'h',100'd'}, {114'r',97'a',104'h',100'd'}, {97'a',115's',100'd'}, {114'r',97'a',115's',100'd'}, 0, {114'r',97'a',115's',104'h',100'd'} } FindData = 19099660 pa = {115's',104'h',100'd'} hInst = 4194304 C:\11USRE\DIR\treeviews.ew: tvstruct = 19099984 tvitem = 19100036 hRoot = 6487380 hParent = <no value> iParent = <no value> iChild = <no value> iItem = 19101624 hItem = 6453068 mItem = 6508868 txtbuff = 19101624 C:\11USRE\DIR\listviews.ew: lvcol = 19100080 lvitem = 19100112 sfi = 19100156 szRootPath = 6267384 ListView1 = 2557226 hImageListS = 6503012 hImageListL = <no value> C:\11USRE\DIR\EFFM.exw: drives = { {65'A',58':',92'\'}, {67'C',58':',92'\'}, {68'D',58':',92'\'}, {69'E',58':',92'\'}, {70'F',58':',92'\'} } Dtype_str = 19101624 Dtype = 3 Drive_type = { {2}, {3}, {5}, {3}, {3} } DLen_Buf = 19101768 DLen = 20 ds = {70'F',58':',92'\'} TreeView1 = 1246388 hdc = 1325468099 ps = 19101536 rect = 19101604 id = 1246388 title = <no value> item = <no value> cmd = 98'b' nmp = 768 count = 120'x' DirEdit = 2753774 Button1 = 1508402 hbrush = -1139799991 memdc = 2449541925 hbit = 1778715750 fileinf = <no value> lvIcon = <no value> ibuffer = <no value> startup = 0 msg_startup = 0 ID_DirEdit = 210 ID_Button1 = 211 j = <no value> k = <no value> sub_len = <no value> subitem = <no value> lenpath = <no value> LV_Report = 0 LV_List = 1 path = {} text = {67'C',58':',92'\',32' ',32' ',32' ',70'F',105'i',120'x',101'e', 100'd',32' ',68'D',105'i',115's',107'k'} ipath = <no value> titem = <no value> subdata = <no value> sub_inf = <no value> ver = {5,82'R'} file_inf = <no value> my_title = 19101624