RE: EuGrid - was Runs w/Interpreter but not as .exe

new topic     » goto parent     » topic index » view thread      » older message » newer message

Phil,

I've been running my program using safe mode memory handling and one 
thing that came up is in the EGW_OnParentEvent routine around line 3350 
there's a call to the fetch() routine in tk_mem.e that passes the lParam 
parm and the diHwndItem.  I was under the impression that the lParam was 
not a pointer but a value.  In the fetch() routine a peek4s() is being 
done at s[1] + struct + s[5].  If the lParam is a value then wouldn't 
this be a problem?  If it's a pointer then I need to go back to the 
win32lib docs!  

I didn't get any further than that.  What I did was I created a version 
of tk_mem.e that uses the Eu allocate() and free() instead of the 
windows memory routines.  I then used safe.e in place of machine.e.

I'll keep looking but I thought you might like to know...

Jonas
Phil Russell wrote:
> Jonas,
> 
> Yep - very weird. I have been working on windows for long enough now 
> that I barely feel the pain any more, but I can still remember the 
> disbelief I felt when I first moved from IBM AS400 to PC development 
> (3.1) and it fell over every 10 minutes...
> 
> I assume that this must be some kind of weird memory allocation problem 
> (perhaps due to the larger size of the new eugrid include...?).  Have 
> you tried moving the code around a bit to get variables allocated in a 
> different order, or allocating zero to the dropdown list id before 
> calling CreateEx?  
> 
> BTW I ended up coding the following in EuGrid in the scrollbar code:
> 
> elsif scrolltype = SB_PAGEUP then
> -- No idea why, but removing this line gives a page fault on Win95
> GridTopRow[grid] -= 0
> --...so dont remove it!!!!!
> GridTopRow[grid] -= GridDraw[grid][MAX_VISIBLE_ROWS]
> 
> >From which I conclude that Euphoria's memory management is not *quite* 
> perfect...
> 
> If you want me to take a look at the code then by all means send it to 
> me at pg_russellnospam at hotmail.com (removing 'nospam').
> 
> Cheers,
> 
> Phil
> 
> Jonas  Temple wrote:
> > Phil,
> > 
> > I also should clarify that the failing createEx() happens BEFORE the 
> > include of eugrid.  This would probably sugget that it's not related to 
> > EuGrid, but it sure seems strange that my program never bombs with the 
> > previous version of eugrid, just the new one.
> > 
> > Weird...huh?
> > 
> > Jonas
> > Jonas  Temple wrote:
> > > Phil,
> > > 
> > > In answer to your questions, the app fails immediately before any 
> > > windows are displayed.  I'm using win32lib v57.9.
> > > 
> > > I also noticed you mentioned that you're doing more message handling of 
> > > combo boxes.  The odd thing here is I've narrowed down the failure to a 
> > > createEx() call to create a dropdown list.  I changed the control type 
> > > to combobox, simplecombo, etc. all with the same results.
> > > 
> > > Jonas
> > > 
> >

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu