Re: Euphoria DLLs

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

Hello Bob, you wrote:

[...]

>          I tried your "trick", Rob, but got the same unpredictable
> behavior.  I even tried allocating the buffer with:
>
>          pErrorDescription = c_func(GlobalAlloc, {GMEM_FIXED, 500})
>          pErrorDescription = c_func(GlobalLock, {pErrorDescription})
>
> from KERNEL32.DLL.  ...made no difference.  ctrace_d.out shows the poke in
> the DLL function as the last statement executed.

In the other message that I posted at almost the same time than this one,
there is a test in which I didn't allocate any memory at all.
If I didn't make a mistake somewhere in that test, it looks as if it
simply isn't possible, to pass a value bigger than  power(2,31) - 1
as argument to a routine in the DLL (without using E_ATOM etc.,
of course).

> Two days later....
>
>          I've managed to get a stripped down version working okay.  It
> didn't need Rob's trick.

Maybe you didn't pass any value bigger than power(2,31) - 1
as argument to a routine in the DLL?

> The problem must be somewhere else.  If I find it,
> I'll post it.  After that, the next step is to write a test program in C.
>
>                  Thanks again,
>
>                  Bob

I hope, we will solve this puzzle.

Best regards,
   Juergen

-- 
 /"\  ASCII ribbon campain  |
 \ /  against HTML in       |  Money is the root of all evil.
  X   e-mail and news,      |  Send 20 Dollars for more info.
 / \  and unneeded MIME     |

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

Search



Quick Links

User menu

Not signed in.

Misc Menu