Restored from previous forum. Originally posted by freak.
Hi,
This one goes to Fred, I think...
I know, that the PB String management is not threadsave, but what if I use String Constants in the Threads only? Or what about if I only use fixed Strings directly with the Functions and use no String Variables at all?
Would that be save, or am I still going to get in a mess?
Thanks in advice...
Timo
Threads and String Constants
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by freak.
Thanks, i think, i'm going to avoid using Strings wherever possible and where I have to, i'm going to use GlobalAlloc_() to manage them on my own.
But If I had to replace the Constants with Memory Buffers, too, it would be a lot of work to do.
Timo
Thanks, i think, i'm going to avoid using Strings wherever possible and where I have to, i'm going to use GlobalAlloc_() to manage them on my own.
But If I had to replace the Constants with Memory Buffers, too, it would be a lot of work to do.
Timo
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by tranquil.
Is it possible to read string arrays without problems in threads? or does it make problems too?
Mike
Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound
System 2: Mobile Pentium 4 2.4GHz 512 MB DDR GeForce4 420-32, Windows XP Home
Is it possible to read string arrays without problems in threads? or does it make problems too?
Mike
Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound
System 2: Mobile Pentium 4 2.4GHz 512 MB DDR GeForce4 420-32, Windows XP Home