Mem address crash discussion (split from DSP code 2)

For general discussion related FlowStone
Youlean
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

Mem address crash discussion (split from DSP code 2)

Post by Youlean »

Here is DLL for mem creating. I hope that it works. I am not sure if it gives accurate address tho... Please test it...
Try optimized version first, it is not working, than try normal version...
Attachments
Mem Adress (Optimized).fsm
(4.44 KiB) Downloaded 863 times
Mem Adress 2.fsm
(10.06 KiB) Downloaded 866 times
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Custom DSP Code 2 (comunity project)

Post by KG_is_back »

Youlean wrote:Here is DLL for mem creating. I hope that it works. I am not sure if it gives accurate address tho... Please test it...
Try optimized version first, it is not working, than try normal version...


Both only output the mem size, but not address.
Youlean
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

Re: Custom DSP Code 2 (comunity project)

Post by Youlean »

KG_is_back wrote:
Youlean wrote:Here is DLL for mem creating. I hope that it works. I am not sure if it gives accurate address tho... Please test it...
Try optimized version first, it is not working, than try normal version...


Both only output the mem size, but not address.

You mean input equal to output?

Try locating DLL manually...
Attachments
Mem Address.zip
(4.82 KiB) Downloaded 881 times
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Custom DSP Code 2 (comunity project)

Post by Tronic »

To have a correct memory address from a DLL,
in the manual there is a hidden information between words,
when you create an input and output to the DLL component,
FlowStone automatically assigns a memory address based on the type specified,
so just catch and use the pointer addresses, and output them as a list,
this gives us the opportunity to have as many memories as you want and the correct type,
just increasing the inputs to the module DLL,
with this I am able to write and read in the DLL memory without using any link to it.
Youlean
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

Re: Custom DSP Code 2 (comunity project)

Post by Youlean »

Hey, I think that this should now be working correctly...
If it works now, please report. Thanks.
Attachments
Mem Address Final.zip
(81.24 KiB) Downloaded 865 times
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Custom DSP Code 2 (comunity project)

Post by Tronic »

as mentioned above, you do not need to have a Frame to Mono and vice versa, you can just created into the DLL, an NEWFLOATARRAY, get the pointer, and output it as integer value.
Youlean
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

Re: Custom DSP Code 2 (comunity project)

Post by Youlean »

Tronic wrote:as mentioned above, you do not need to have a Frame to Mono and vice versa, you can just created into the DLL, an NEWFLOATARRAY, get the pointer, and output it as integer value.

Yes, but than you can't change it's size. The size must be then hard coded.
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Custom DSP Code 2 (comunity project)

Post by Tronic »

you can assign the size with an external value,
for already created array just copy the old content and recreate it with different sizes.
Youlean
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

Re: Custom DSP Code 2 (comunity project)

Post by Youlean »

Tronic wrote:you can assign the size with an external value,
for already created array just copy the old content and recreate it with different sizes.

Tronic, either you or me is not getting the point here.
If you want to create mem, just use mem create primitive, but KG asked for mem creation to give address at stream speed which need mono to frame if you want to do it with dll...
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Custom DSP Code 2 (comunity project)

Post by Tronic »

The memory address has nothing to do with the stream speed, it is only a pointer to the heap.
Excuse me if I insist, but your code only wastes resources, to process an empty buffer,
even if you emit only poiter memory.
So the point is, why have the value of a pointer to memory, at stream speed?

Edit: the mem create primitive, have some problem with alignment when retriggered.
Post Reply