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

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

jbrown1050 at hotpop.com wrote:
> On Sun, Dec 01, 2002 at 11:29:35PM -0000, tubby.toast at ntlworld.com 
> wrote:
> > 
> > I rarely come out of lurk mode and have been waiting for someone else to
> > suggest this and can't believe that no-one, even Rob, has.  Rename
> > machine.e
> > to something else; rename safe.e to machine.e and run your program
> > unbound.
> > I have always tracked down errors of this nature this way.  Not 
> > guaranteed
> > but worth a try.
> > 
> > chris.
> > 
> 
> He already tried a similar trick, and it worked bound and unbounded i 
> think.
> 
> In fact, using puts() in the right spots got it to work.
> 
> A quick hack ... keep the puts() in the same spots, but change them to 
> output
> an empty string. Its a kludge, but it might work. Of course, it would be 
> nice
> to know why it worked tho. Personally, I think that odds are good if 
> trace()
> were available in bound mode, the program would automagically work 
> anyways. :(
> 

jbrown,

Thanks for the suggestion, I'll give it a try.

And yes, I did try using safe.e in place of machine.e.  Of course the 
problem you run into when using win32lib is that tk_mem uses the Windows 
memory management routines so when a routine in tk_mem does a peek or 
poke against that memory safe.e shows an error, which is not true.  My 
solution was to create a version of tk_mem that uses Euphoria's allocate 
and free routines instead (I also had to use register_block in other 
places in my code as well).  Of course the bound program ran fine 
then...

Derek, I would also like to get the traceable version of win32lib as 
well.  Anything to help.

Now if I can just have some Tylenol and antacid delivered.....

Jonas

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

Search



Quick Links

User menu

Not signed in.

Misc Menu