Re: c_func in Eu 4.1 Beta (Windows)

new topic     » goto parent     » topic index » view thread      » older message » newer message
Jerome said...

Everyone,

I just noticed today that some old code of mine no longer works in the new Eu 4.1 Beta (Revision Date: 2014-01-16 02:53:44, Id: 5783:d41527402a7a) when using c_func on Windows. As a sanity check, I ran the 'mylib.ex" example and it doesn't appear to work either. The program silently dies when trying to make the first c_func call. C_func works as expected on Linux and OSX. Anyone else noticed this?

Thanks,
Ira

Hi

I didn't test it, but

integer sum 
... 
sum = define_c_func(mylib, "sum", {C_INT}, C_INT)  

I had bad experiences with using intergers as pointer to dll functions on Windows.

In WIn32 you have a 2Gig adressspace for user and the integer only could handle 1 Gig

maybe you give it a try with 'atom sum'

hope this helps

Andreas

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

Search



Quick Links

User menu

Not signed in.

Misc Menu