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

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

Phil,

Boy, this is like finding a needle in a haystack!  I tried the 
non-glamorous approach by just putting puts() calls in various sections 
of my code to try to track this down.  The funny thing is I could put 
the puts() in a certain section, rebind and then the program ran fine.  
In another section the bug would appear and it almost seemed completely 
ramdom!

I can't spend any more time on this so unfortunately I went back to the 
older version of EuGrid and no matter what I do or how I arrange the 
code, the program runs fine every time.  I looked at EuGrid and the only 
thing I noticed (which shouldn't have caused a problem) is the call to 
DrawEdge (which you didn't even use) declares the first parm as a 
pointer when it should be a handle.  Other than that, I'm stumped!  The 
only way I can let you look at the program is if you have Client Access 
Express from IBM installed otherwise I'm on my own.

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