Search found 499 matches

by voodooattack
Aug 20, 2008 21:33
Forum: General
Topic: Compiler Segfaults when trying to compile
Replies: 4
Views: 971

This is caused by your UDT having a destructor and no default constructor. A temporary solution is to add an empty constructor to your type. this is caused by rtlArrayClear, in rtl-array.bas if( dtor = NULL ) then ... else ... if( symbGetProcMode( ctor ) <> FB_FUNCMODE_CDECL )...
by voodooattack
Aug 18, 2008 13:50
Forum: General
Topic: Run compiled code from a string?
Replies: 11
Views: 2161

>>I wouldn't recommend using strings to store binary (and especially executable) data What should I use instead to store the binary/executable data? I don't want to store it on disk for security reasons. You can use two acceptable methods to handle them: * Byte Arrays. * Memory buffers: Allocate /C...
by voodooattack
Aug 17, 2008 22:34
Forum: Beginners
Topic: Transform in string..
Replies: 1
Views: 768

dim cmd as string = !"systeminfo | find \"Host Name\"" open pipe cmd for input as #1 do dim s as string input #1, s print s loop until eof(1) close #1 sleep and now the proper method: #include "windows.bi" dim l as integer dim pcName as string GetComputerName&#...
by voodooattack
Aug 17, 2008 22:14
Forum: General
Topic: Run compiled code from a string?
Replies: 11
Views: 2161

Most people will argue that this is impossible, but here's a method that uses a custom loader to load your DLLs from memory, which involves relocating the DLL and aligning it in memory apart from the host operating system's PE loader: http://www.joachim-bauch.de/tutorials/load_dll_memory.html and he...
by voodooattack
May 25, 2008 7:35
Forum: Community Discussion
Topic: Possible Solution to threads like the one that was started.
Replies: 66
Views: 14230

Alright, I've been lurking for long enough, and I've been following this thread amongst other for a while, and it's about time I spill my thoughts regarding the subject into this post.. Let's go over this quickly again, a good method would be decomposing such complex subject into it's prime elements...
by voodooattack
May 25, 2008 6:18
Forum: Projects
Topic: Nodepad!
Replies: 11
Views: 3571

Hey!!! I don't look like that!!

Good job though :D
by voodooattack
Apr 18, 2008 2:19
Forum: General
Topic: Assigning String Constants to Ubyte Arrays
Replies: 5
Views: 1118

Actually, this should be the way to do it.. but for some reason, it doesn't work. type foo signature(5) as ubyte => {&H61,&H61,&H61,&H61,&H61,&H0} declare constructor() end type constructor foo print *cast(zstring ptr, @this.signature(0)&...
by voodooattack
Mar 16, 2008 22:04
Forum: Projects
Topic: Dr. Mudball's Laboratory: Rise of the Bustrons!
Replies: 40
Views: 7093

Play in fullscreen like a real man!! =P
by voodooattack
Mar 15, 2008 9:02
Forum: Projects
Topic: Dr. Mudball's Laboratory: Rise of the Bustrons!
Replies: 40
Views: 7093

Awesome work guys, can't wait for the sequel :)
by voodooattack
Mar 15, 2008 8:58
Forum: Tips and Tricks
Topic: Lua neural network
Replies: 1
Views: 1201

Good work, although I think a native FB/GCC implementation would be much faster, maybe LuaJIT would help with the speed though :)
by voodooattack
Mar 15, 2008 8:56
Forum: Tips and Tricks
Topic: Calling a member function in a new thread
Replies: 6
Views: 1783

Cherry, as Pritchard pointed out, the ".." (or just ".") prefix allows you to reference symbols from the global namespace, even if your local context has its own duplicate symbols with the same name. @D.J.Peters: and your point is? this code demonstrates how to obtain pointers of non-static member p...
by voodooattack
Mar 13, 2008 1:33
Forum: Tips and Tricks
Topic: Calling a member function in a new thread
Replies: 6
Views: 1783

Calling a member function in a new thread

Just as the title suggests, in addition to obtaining a pointer to a member procedure, we'll also call it in a new thread, just to explore the possibilities.. type ThreadTest declare property getThreadProc() as any ptr declare sub ThreadProc() declare sub ThreadStart() declare...
by voodooattack
Mar 08, 2008 20:32
Forum: Tips and Tricks
Topic: IncFile() and IncArray() macros [Updated 22-1-2009]
Replies: 88
Views: 42523

Another update, now IncFile() works inside functions once more, by adding some initialization code to the function body, at module level it will not generate a single ASM instruction (except for the jump when debugging). Currently working on a way to make IncArray() work inside functions too. P.S: I...
by voodooattack
Mar 08, 2008 1:47
Forum: Tips and Tricks
Topic: IncFile() and IncArray() macros [Updated 22-1-2009]
Replies: 88
Views: 42523

Updated, check first post..
by voodooattack
Feb 01, 2008 18:54
Forum: Beginners
Topic: How to free memory?
Replies: 5
Views: 1477

Here's something I've used for an old framework called FBServ, I basically noticed the same problem, and as FBServ was built to create light-weight NT Services using FB, so I wrote this function to solve the problem: Function SrvFlushPhysicalMem() As Integer SetLastError(NO_ERROR) Di...

Go to advanced search