Search found 4538 matches

by mk-soft
Fri Apr 19, 2024 12:47 pm
Forum: Coding Questions
Topic: Webview & ""
Replies: 10
Views: 120

Re: Webview & ""

Not testet ... ... CompilerIf #PB_Compiler_OS = #PB_OS_MacOS Procedure MacOS_Quit() PostEvent(#PB_Event_CloseWindow, 0, 0) EndProcedure CompilerEndIf If OpenWindow(0, 100, 200, 500, 300, "PureBasic MiniBrowser v1.0", #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGa...
by mk-soft
Fri Apr 19, 2024 9:58 am
Forum: Coding Questions
Topic: Check if UseSQLiteDatabase is called
Replies: 10
Views: 122

Re: Check if UseSQLiteDatabase is called

maybe ... #EnableSQLite = #False CompilerIf #EnableSQLite #UseSQLiteDatabase = #True If Not UseSQLiteDatabase() Debug "Error ..." End EndIf CompilerEndIf Enumeration _own_db_format #OWN_DB_FORMAT_INMEMORY #OWN_DB_FORMAT_OWN #OWN_DB_FORMAT_XML #OWN_DB_FORMAT_JSON CompilerIf Defined(UseSQLit...
by mk-soft
Fri Apr 19, 2024 9:32 am
Forum: Coding Questions
Topic: Check if UseSQLiteDatabase is called
Replies: 10
Views: 122

Re: Check if UseSQLiteDatabase is called

Code: Select all

#EnableSQLite = #True
  
CompilerIf #EnableSQLite
  If Not UseSQLiteDatabase()
    Debug "Error ..."
    End
  EndIf
CompilerEndIf
by mk-soft
Fri Apr 19, 2024 9:20 am
Forum: Bugs - Windows
Topic: [Done] Static array index-less reference
Replies: 8
Views: 501

Re: [Done] Static array index-less reference

Actually, it's fine the way it was before. I don't see any problem here whether you write "mystruct\a = 2" or "mystruct\a[0] = 2".
Forbidding too much is not good either.
by mk-soft
Thu Apr 18, 2024 11:15 pm
Forum: Coding Questions
Topic: Thread Parameters?
Replies: 12
Views: 556

Re: Thread Parameters?

It is always better to take a structure and create it for the entire runtime of the thread with AllocateStructure.
by mk-soft
Thu Apr 18, 2024 10:56 pm
Forum: Coding Questions
Topic: Would it be possible to make Socket UDP reliable by working side by side with TCP?
Replies: 5
Views: 173

Re: Would it be possible to make Socket UDP reliable by working side by side with TCP?

Caronte3D wrote: Thu Apr 18, 2024 8:53 am I don't know if relevant, but is better not use KillThread() to terminate threads, much better to do some break inside so the thread ends it self.
At least, for me, the KillThread is delicate
KillThread is only called if WaitThread was not successful after time
by mk-soft
Thu Apr 18, 2024 10:52 pm
Forum: Coding Questions
Topic: Would it be possible to make Socket UDP reliable by working side by side with TCP?
Replies: 5
Views: 173

Re: Would it be possible to make Socket UDP reliable by working side by side with TCP?

You have programmed yourself a memory leak when rewriting thUDPServer. Client()\text is no longer corrected. In addition, you have removed the Repeat Until, which means that the data in the receive buffer can no longer be separated. There may be several sent data in the receive buffer that need to b...
by mk-soft
Thu Apr 18, 2024 8:43 pm
Forum: Bugs - Windows
Topic: [Done] Static array index-less reference
Replies: 8
Views: 501

Re: [Done] Static array index-less reference

Oops,
some codes will no longer work.
So please remove this adjustment.
by mk-soft
Thu Apr 18, 2024 8:18 pm
Forum: Coding Questions
Topic: Thread Parameters?
Replies: 12
Views: 556

Re: Thread Parameters?

At this point I would like to give an important note for both proposed solutions. In both cases the information is passed just as a reference to the thread, and not as a variable or copy. This means, the myParams.Parameters (first example) or text$ (second example) have to keep as they are as long ...
by mk-soft
Wed Apr 17, 2024 10:02 pm
Forum: Bugs - Windows
Topic: PB6.10 - 6.11b1 splitter redraw bug
Replies: 6
Views: 299

Re: PB6.10 - 6.11b1 splitter redraw bug

No problem with Window 10 Pro 22H2
by mk-soft
Wed Apr 17, 2024 5:20 pm
Forum: Bugs - Mac OSX
Topic: PB v6.11 Beta 1 - Wrong Compiler Name
Replies: 0
Views: 199

PB v6.11 Beta 1 - Wrong Compiler Name

For macOS Packet PB v6.11 Beta 1, the IDE and the compiler show version v6.10 LTS.
But it is the new compiler v6.11 beta 1 because the bug with arrays is fixed.
by mk-soft
Wed Apr 17, 2024 5:12 pm
Forum: Announcement
Topic: PureBasic 6.11 LTS Beta 1 is ready for testing !
Replies: 11
Views: 873

Re: PureBasic 6.11 LTS Beta 1 is ready for testing !

Thank you very much,

For macOS Packet PB v6.11 Beta 1, the IDE and the compiler show version v6.10 LTS.
But it is the new compiler v6.11 beta 1 because the bug with arrays is fixed.

:wink:
by mk-soft
Wed Apr 17, 2024 9:27 am
Forum: Tricks 'n' Tips
Topic: Module ActiveScript for VBScript and JScript with PB-Runtime Variables
Replies: 45
Views: 21772

Re: Module ActiveScript for VBScript and JScript with PB-Runtime Variables

Update v2.12
- Bugfix ActiveScript Release

Oops, I had one Object.Release() too many.
Furthermore, I set the debug output to #DebugLevel = 6 (#DebugLevelActiveScriptEx) to display all debug outputs.

As it looks now all reference counters of all objects are correct :wink:
by mk-soft
Tue Apr 16, 2024 9:18 pm
Forum: Coding Questions
Topic: Thread Parameters?
Replies: 12
Views: 556

Re: Thread Parameters?

Structure udtParameters Parm1.i Parm2.i Parm3.i EndStructure Global myParams.udtParameters myParams\Parm1 = 1 myParams\Parm2 = 3 myParams\Parm3 = 5 Procedure Thread(*myParams.udtParameters) Protected a a = *myParams\Parm1 Debug a EndProcedure CreateThread(@Thread(), @myParams) Delay(1000) More over...
by mk-soft
Tue Apr 16, 2024 7:46 pm
Forum: Tricks 'n' Tips
Topic: Module ActiveScript for VBScript and JScript with PB-Runtime Variables
Replies: 45
Views: 21772

Re: Module ActiveScript for VBScript and JScript with PB-Runtime Variables

Update v2.11 - New and FreeActiveScript revised to release all resources. ActiveScript.Close() is now used with FreeActiveScript. This automatically releases the objects created in the VBScript. This should eliminate memory leaks. Note. ActiveScript.Close() also reduces the RefCounter of the Active...