Thank you.
I tested it using Prototype and PrototypeC but it still crashes.
PrototypeC GetStatus()
Declare TestThread(*param)
ProcedureDLL CallBackTest(*function)
Global ProtoTest.GetStatus = *function
CreateThread(@TestThread(), 0)
EndProcedure
Procedure TestThread(*param)
ProtoTest ...
Search found 11 matches
- Mon Apr 13, 2015 11:29 am
- Forum: Coding Questions
- Topic: CallFunctionFast in Thread from LUA FFI
- Replies: 3
- Views: 1589
- Mon Apr 13, 2015 1:48 am
- Forum: Coding Questions
- Topic: CallFunctionFast in Thread from LUA FFI
- Replies: 3
- Views: 1589
CallFunctionFast in Thread from LUA FFI
Hello everyone,
i got a small issue.
I am including a DLL compiled with Purebasic into LUA using FFI.
(Threadsafe is enabled in the compile settings)
Now there is the possibility of using CallBacks in giving a LUA Function to a Purebasic Procedure.
So far that works very nice. Except when i ...
i got a small issue.
I am including a DLL compiled with Purebasic into LUA using FFI.
(Threadsafe is enabled in the compile settings)
Now there is the possibility of using CallBacks in giving a LUA Function to a Purebasic Procedure.
So far that works very nice. Except when i ...
- Mon Sep 05, 2011 10:51 am
- Forum: Tricks 'n' Tips
- Topic: GUI Translation without restart
- Replies: 1
- Views: 1364
GUI Translation without restart
Hello everyone.
I messed around with some way to make a multi-language application without the need to restart the application.
I used that method in this application:
http://sascha.loeffler.gs/downloads/webcamget20.php
so here are the functions:
this is to create the dynamic popup menu of all ...
I messed around with some way to make a multi-language application without the need to restart the application.
I used that method in this application:
http://sascha.loeffler.gs/downloads/webcamget20.php
so here are the functions:
this is to create the dynamic popup menu of all ...
- Mon Sep 05, 2011 10:07 am
- Forum: Tricks 'n' Tips
- Topic: ReceiveHTTPMemory simple and crossplattform
- Replies: 14
- Views: 5960
Re: ReceiveHTTPMemory simple and crossplattform
Hi everyone.
I just added a possibility to send Cookies and Post data with the function from ts-soft.
I know it is just a small addition and even then it is not completely from me.
Procedure.i ReceiveHTTPMemory(URL.s, _Data$, _Cookie$, BufferSize = 4096, Timeout = 5000)
Protected Connection ...
I just added a possibility to send Cookies and Post data with the function from ts-soft.
I know it is just a small addition and even then it is not completely from me.
Procedure.i ReceiveHTTPMemory(URL.s, _Data$, _Cookie$, BufferSize = 4096, Timeout = 5000)
Protected Connection ...
- Thu Jan 13, 2011 1:32 pm
- Forum: Announcement
- Topic: WebCamAddict - Creative-Commons Source-Code
- Replies: 6
- Views: 4477
Re: WebCamAddict - Creative-Commons Source-Code
so. Here is the PB source-code in my subversion repository:
http://svn.loeffler.gs/webcamget/trunk/
empty username and password should work.
else try username "gast"
and sorry for the German comments in the code.
Maybe someone can find some useful function in the code or something else.
http://svn.loeffler.gs/webcamget/trunk/
empty username and password should work.
else try username "gast"
and sorry for the German comments in the code.
Maybe someone can find some useful function in the code or something else.
- Tue Jan 11, 2011 11:15 am
- Forum: Announcement
- Topic: WebCamAddict - Creative-Commons Source-Code
- Replies: 6
- Views: 4477
Re: WebCamAddict - Creative-Commons Source-Code
haha. nice. i did something like that too.
http://sascha.loeffler.gs/downloads/webcamget20.php
the preview image should be loaded right into memory without writing to disk in windows.
On other Systems i still have no good solution.
might release the source code too but it is not really cleaned.
http://sascha.loeffler.gs/downloads/webcamget20.php
the preview image should be loaded right into memory without writing to disk in windows.
On other Systems i still have no good solution.
might release the source code too but it is not really cleaned.
- Tue Nov 30, 2010 1:24 pm
- Forum: Coding Questions
- Topic: SendToHost Function freezes rarely
- Replies: 5
- Views: 1547
Re: SendToHost Function freezes rarely
Thank you. :)
you are right about FindString. Never checked it.
so i was going to check some other functions and i have found in the help that ReceiveNetworkData()
can handle only up to 65536 as databuffer length.
So i changed that too.
with the initNetwork()
i am not supposed to start it in a ...
you are right about FindString. Never checked it.
so i was going to check some other functions and i have found in the help that ReceiveNetworkData()
can handle only up to 65536 as databuffer length.
So i changed that too.
with the initNetwork()
i am not supposed to start it in a ...
- Mon Nov 29, 2010 10:34 am
- Forum: Coding Questions
- Topic: SendToHost Function freezes rarely
- Replies: 5
- Views: 1547
Re: SendToHost Function freezes rarely
hi everyone.
After the change from STARGÅTE worked even less than my original function
i think i finaly got it working.
I tried a lot,
like adding the functionality to an own thread that is checked by the main thread and when it does not finish the operation after some time it kills the thread so ...
After the change from STARGÅTE worked even less than my original function
i think i finaly got it working.
I tried a lot,
like adding the functionality to an own thread that is checked by the main thread and when it does not finish the operation after some time it kills the thread so ...
- Sun Sep 05, 2010 7:07 pm
- Forum: Feature Requests and Wishlists
- Topic: Unified cross-platform events for ComboBoxes
- Replies: 1
- Views: 1063
Re: Unified cross-platform events for ComboBoxes
i encountered this behavior too.
it would be nice if this would be changed in the future.
it would be nice if this would be changed in the future.
- Sat Sep 04, 2010 6:17 pm
- Forum: Coding Questions
- Topic: SendToHost Function freezes rarely
- Replies: 5
- Views: 1547
Re: SendToHost Function freezes rarely
Thank you a lot.
I will try it and see if it still freezes sometimes.
If i understand your change right it happened sometimes that laenge never reached 0 and was stuck in the loop.
i now changed the function a bit more and now i also get the full html without something missing from the begin and ...
I will try it and see if it still freezes sometimes.
If i understand your change right it happened sometimes that laenge never reached 0 and was stuck in the loop.
i now changed the function a bit more and now i also get the full html without something missing from the begin and ...
- Fri Sep 03, 2010 7:58 pm
- Forum: Coding Questions
- Topic: SendToHost Function freezes rarely
- Replies: 5
- Views: 1547
SendToHost Function freezes rarely
Hi everyone.
i am using this function in my application:
Procedure.s SendToHost(Host$, File$, _Data$, _Cookie$)
;InitNetwork()
Define ConnectionID = OpenNetworkConnection(Host$, 80)
Define string.s, Text.s
If ConnectionID
Define String$ = ""
If _Data$ <> ""
String$ + "POST " + File ...
i am using this function in my application:
Procedure.s SendToHost(Host$, File$, _Data$, _Cookie$)
;InitNetwork()
Define ConnectionID = OpenNetworkConnection(Host$, 80)
Define string.s, Text.s
If ConnectionID
Define String$ = ""
If _Data$ <> ""
String$ + "POST " + File ...