If your getting strange memory errors and text in the self-test you must enable threadsafe. I see that I can enforce this with #PB_Compiler_Thread. I'll add that in when I update again.
I want to do some GUI examples just need to think of some ideas. Also want to interface with SpiderBasic to have ...
Search found 9 matches
- Sun Dec 29, 2019 4:17 am
- Forum: Tricks 'n' Tips
- Topic: [Module] Actor Framework
- Replies: 5
- Views: 2309
- Tue Dec 24, 2019 6:16 pm
- Forum: Tricks 'n' Tips
- Topic: [Module] Actor Framework
- Replies: 5
- Views: 2309
Re: [Module] Actor Framework
[ERROR] The specified Mutex does not exist.
I did see that crash a few times, good catch. I was thinking it may have dealt with not cleanly exiting. I agree the Actors map needs a Mutex.
AddState_Global will be modified to create copies for each. I was thinking strongly about it doing such while ...
I did see that crash a few times, good catch. I was thinking it may have dealt with not cleanly exiting. I agree the Actors map needs a Mutex.
AddState_Global will be modified to create copies for each. I was thinking strongly about it doing such while ...
- Tue Dec 24, 2019 2:38 am
- Forum: Tricks 'n' Tips
- Topic: [Module] Actor Framework
- Replies: 5
- Views: 2309
Re: [Module] Actor Framework
Yes, that is very similar and has been used to implement actor models.
My approach is to have two actor frameworks one local and one distributed. The local module handles all communication inside the process to reduce IPC. The local actors can be registered with the distributed system which lays ...
My approach is to have two actor frameworks one local and one distributed. The local module handles all communication inside the process to reduce IPC. The local actors can be registered with the distributed system which lays ...
- Tue Dec 24, 2019 2:05 am
- Forum: Off Topic
- Topic: Oh crap... PB ransomware
- Replies: 221
- Views: 75288
Re: Oh crap... PB ransomware
For my distributed LabVIEW actor framework I wrote a dll in PureBasic for encrypted communications using BigInt module (SSE2) and the RSA cipher module for initial key exchange and AES256 for data sharing. I suspect this is what the person was using?
I sent the dll to virus total to see if anything ...
I sent the dll to virus total to see if anything ...
- Mon Dec 23, 2019 10:33 pm
- Forum: Tricks 'n' Tips
- Topic: [Module] Actor Framework
- Replies: 5
- Views: 2309
[Module] Actor Framework
*Updated V0.2 28/12/19
-Restructured internals
-Added Services
Simple queued state machine actor framework for PureBasic. Each actor is spawned in it's own thread and has it own data or interfaces it works on. Actors talk to each other by adding states to another actor's queue. Maybe hard to wrap ...
-Restructured internals
-Added Services
Simple queued state machine actor framework for PureBasic. Each actor is spawned in it's own thread and has it own data or interfaces it works on. Actors talk to each other by adding states to another actor's queue. Maybe hard to wrap ...
- Tue Dec 17, 2019 5:39 pm
- Forum: Tricks 'n' Tips
- Topic: Brainfuck tools & obfuscator
- Replies: 0
- Views: 1747
Brainfuck tools & obfuscator
This has been sitting around on my machine for a few years now. Useful to hide strings. I may revisit and add some more improvements. Please let me know what you think
Ideas:
ByteArray2BF: Convert anything to BF programs. Maybe binary code you can call as a function pointer if you load it into ...
Ideas:
ByteArray2BF: Convert anything to BF programs. Maybe binary code you can call as a function pointer if you load it into ...
- Thu Aug 18, 2016 7:12 pm
- Forum: General Discussion
- Topic: REASM Flag (dll) and PureBasic.def file
- Replies: 5
- Views: 3906
Re: REASM Flag (dll) and PureBasic.def file
Any chance of a fix?
C:\Program Files\PureBasic\Compilers>pbcompiler.exe /REASM /DLL PureBasic.asm
******************************************
PureBasic 5.42 LTS (Windows - x64)
******************************************
Compiling PureBasic.asm
Loading external libraries...
ReAssembling source ...
C:\Program Files\PureBasic\Compilers>pbcompiler.exe /REASM /DLL PureBasic.asm
******************************************
PureBasic 5.42 LTS (Windows - x64)
******************************************
Compiling PureBasic.asm
Loading external libraries...
ReAssembling source ...
- Fri Jul 22, 2016 6:08 pm
- Forum: Coding Questions
- Topic: Export PB functions in DLL with array input
- Replies: 6
- Views: 1976
Re: Export PB functions in DLL with array input
Skywalk thank you for the quick reply.
This is the code I already came up with that works.
ProcedureDLL Maskfunction(*Imageprt, *Maskprt, *Resultprt, count.i)
Structure MemoryArray
StructureUnion
u8.a[0]
u16.u[0]
i64.q[0]
EndStructureUnion
EndStructure
*Image.MemoryArray = *Imageprt ...
This is the code I already came up with that works.
ProcedureDLL Maskfunction(*Imageprt, *Maskprt, *Resultprt, count.i)
Structure MemoryArray
StructureUnion
u8.a[0]
u16.u[0]
i64.q[0]
EndStructureUnion
EndStructure
*Image.MemoryArray = *Imageprt ...
- Fri Jul 22, 2016 2:16 pm
- Forum: Coding Questions
- Topic: Export PB functions in DLL with array input
- Replies: 6
- Views: 1976
Export PB functions in DLL with array input
I am playing around with writing some functions in PB and using them in LabVIEW. I keep crashing when accessing the functions that have have arrays in the prototype.
My guess is that arrays are not handled just as pointers in PB.
ProcedureDLL Maskfunction(Array Image.u(1), Array mask.a(1), Array ...
My guess is that arrays are not handled just as pointers in PB.
ProcedureDLL Maskfunction(Array Image.u(1), Array mask.a(1), Array ...