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

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

Phil (and others),

I've done some more testing and here's where I stand:

So far only 1 of my bound programs are having this problem.  The problem 
is also not related to OS level as I can reproduce the problem on 
Win95/Win98/Win2K.  The exact error message I'm getting is:

The instruction at 802584ad referenced memory at 802584ad
The memory could not be read from

What's interesting here is that the instruction and memory location are 
the same.  Is this normal for Windows programs?

I've narrowed down the line causing the problem (by using puts) to a 
createEx call of a drop down list.  However I feel that by moving code 
around it would probably happen in a different spot.

The other consideration is the include file the problem is happening in. 
 Both the main .exw file and the .ew include file have a main window (0 
parent).  The window in the .ew file may or may not be displayed, 
depending on the command line parameters passed.  I wasn't sure if 
having two windows as the main window would be a problem.

Jonas
The fix still is to use V1.0 of EuGrid.  
Phil Russell wrote:
> Jonas,
> 
> It *really* sounds like a memory allocation problem then. Perhaps Rob 
> could take a look?  
> 
> I am also going to try and replicate the problem myself (using 
> interpreted/bound programs and both versions of EuGrid).  This might 
> take a few days as I only have the complete Eu edition at Home (on 
> win95) so I will have to transfer the code to my win2k machine at work.  
> 
> I will let you know if I find anything...
> 
> <scrape barrel>
> I noticed that Rob posted this yesterday:
> 
> By the way, if you see a line at the end of Win32Lib.ew
> that is just two dashes: -- (and no new-line character),
> you will need to remove it before binding with 2.3. This problem
> has been fixed in the upcoming 2.4 binder.
> 
> He didn't say what problem it caused but worth a look perhaps...
> </scrape barrel>
> 
> In reply to your question, I spent several years working on System/36 
> and AS400 boxes programming in RPGII and RPG/400.  Getting fed up with 
> too much S/36 emulation work I moved to a job which had both AS400 and 
> Oracle-based systems.  I had done a bit of Windows C programming as a 
> hobby and as a result (being the only person there with any windows 
> programming experience) ended up being asked to develop a client-server 
> system using SQLWindows and Oracle.  Never really looked back after 
> that.  I don't know what the iSeries is like now but when I stopped 
> using AS400s in 1996 the database support was still rather clunky - it 
> was just *much* easier to write database code in Oracle than in RPG / 
> Query/400 / DB/400 SQL.  I can't remember much about the AS400 now so I 
> guess I'm stuck with Oracle...
> 
> Phil
> 
> 
> Jonas  Temple wrote:
> > Phil,
> > 
> > Unfortunately I cannot find the problem.  Everything in your code looks 
> > fine and I also went back and reviewed some of my own code.  Still 
> > nothing.
> > 
> > The funny thing is even when I use safe.e and a safe version of tk_mem 
> > it binds and runs with no errors!  As soon as I go back to the un-safe 
> > versions it starts erroring.  
> > 
> > At this point I went back to the prior version of EuGrid and everything 
> > works fine.  I'm stumped.
> > 
> > BTW, why did you leave the AS400 world?
> > 
> > Jonas
> > Phil Russell wrote:
> > > Hi Jonas,
> > > 
> > > Sorry I've not been in touch - been away from PC for a day or so.  
> > > 
> > > Did your amendments to tk_mem/use of safe.e fix the problem?
> > > 
> > > Phil
> > > 
> > > 
> > > Jonas  Temple wrote:
> > > > Phil/Derek,
> > > > 
> > > > > Is lParam passed as a value in the onEvent handler?  I'm not sure.
> > > > 
> > > > For the WM_DRAWITEM message lParam is a pointer.  His routine is right! 
> > > >
> > > > 
> > > > 
> > > > Jonas
> > > > 
> > > >

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

Search



Quick Links

User menu

Not signed in.

Misc Menu