Search found 555 matches

by cas
Mon Apr 13, 2009 8:48 am
Forum: Tricks 'n' Tips
Topic: PureBasic Listview Pro++
Replies: 16
Views: 7257

Michael Vogel wrote: Callback starts accessing the Gadget(4) which has not been inititalized
Easy fix:

replace this line:

Code: Select all

ShowScrollBar_(GadgetID(4),#SB_BOTH,0)
with this:

Code: Select all

If IsGadget(4) : ShowScrollBar_(GadgetID(4),#SB_BOTH,0) : EndIf
by cas
Sat Mar 07, 2009 3:32 pm
Forum: Mac OSX
Topic: Live resize ?
Replies: 20
Views: 13266

Live resize ?

When i resize window with mouse then i get this rectangle that shows new size: http://i41.tinypic.com/9r5eew.jpg How can i create window that will automatically resize with every mouse move (?), not only when i release mouse button, like in windows. I have a lot of apps installed on my mac and neith...
by cas
Sat Mar 07, 2009 3:11 pm
Forum: Mac OSX
Topic: How to get info about CPU?
Replies: 7
Views: 3036

Thanks Progi1984.
But, i was hoping that someone already have some small example.
by cas
Fri Mar 06, 2009 12:12 pm
Forum: Mac OSX
Topic: How to get info about CPU?
Replies: 7
Views: 3036

How to get info about CPU?

Does anyone know how can i get CPU name and speed using api on intel mac?
Thanks
by cas
Wed Feb 04, 2009 10:07 am
Forum: Coding Questions
Topic: Installed physical memory
Replies: 7
Views: 1149

Try this:

Code: Select all

memex.MEMORYSTATUSEX
memex\dwLength = SizeOf(MEMORYSTATUSEX)
GlobalMemoryStatusEx_(@memex)

Debug Str((memex\ullTotalPhys)/1024/1024) + " MB"
by cas
Fri Jan 23, 2009 5:34 pm
Forum: Coding Questions
Topic: Freememory() in thread with debugger enabled
Replies: 8
Views: 1170

@trond taskmanages shows around 10MB but this is in main memory, pagefile has all allocated memory , wierd as my system has 4,5GB RAM free (of 7GB total) and it is not allocating in main memory(RAM) :? http://i42.tinypic.com/2vvl7r4.jpg @graves I have to agree with Kaeru Gaman and your code has infi...
by cas
Thu Jan 22, 2009 11:12 pm
Forum: Coding Questions
Topic: drag and drop issue windows7 [solved]
Replies: 15
Views: 2745

@Kaeru Gaman & Sparkie: I will follow Your advice, 900KB is definitely not acceptable :oops: and at time of putting it i already decided to remove it if i receive negative comments about my avatar

@idle: sorry for hijacking this thread :oops:
by cas
Thu Jan 22, 2009 10:13 pm
Forum: Coding Questions
Topic: drag and drop issue windows7 [solved]
Replies: 15
Views: 2745

Sparkie wrote:@cas: Don't you think 956490 bytes for an avatar is a bit much. :shock:
It is nothing for today's standard ( broadband connections, flat rate plans ) :twisted:
If You want i will remove it :P
by cas
Thu Jan 22, 2009 9:40 pm
Forum: Coding Questions
Topic: Freememory() in thread with debugger enabled
Replies: 8
Views: 1170

I guess the threads are created too fast. the freeing of mem does not come to work fast enough. if you create thousands of threads within the same timeslice, the OS cant switch to the next thread in the next slice to free the mem before it's not enough mem left... If i put delay: Procedure MemoryOp...
by cas
Thu Jan 22, 2009 9:36 pm
Forum: Coding Questions
Topic: drag and drop issue windows7 [solved]
Replies: 15
Views: 2745

PB wrote:Windows is just getting worse and worse with each release. :(
Well, i don't agree :P . This is just one of many new 'features' from microsoft that forces us developers to write better software without need of admin privileges ( uac, anyone?:P ).
by cas
Thu Jan 22, 2009 9:25 pm
Forum: Coding Questions
Topic: Freememory() in thread with debugger enabled
Replies: 8
Views: 1170

Freememory() in thread with debugger enabled

I had a memory leak in my code when debugging and i managed to isolate it to this: Procedure MemoryOperation(*MemoryID) FreeMemory(*MemoryID) EndProcedure For i=0 To 50000 *MemoryID = AllocateMemory(50) CreateThread(@MemoryOperation(),*MemoryID) Next Program runs until it fills pagefile (total size ...
by cas
Thu Jan 22, 2009 9:04 pm
Forum: Coding Questions
Topic: drag and drop issue windows7 [solved]
Replies: 15
Views: 2745

same in windows vista, you can't drag and drop between processes with different privileges. this is security measure
by cas
Tue Jan 20, 2009 8:50 pm
Forum: Off Topic
Topic: New open AES lib needs testing (pb inc. available)
Replies: 16
Views: 4854

any plans for making x64 version?
thanks
by cas
Tue Jan 13, 2009 5:20 pm
Forum: Feature Requests and Wishlists
Topic: Better Client/Server Networking?
Replies: 16
Views: 3487

Re: Better Client/Server Networking?

Firstly, is it right you can only have 1 server per application? No. :P Open as many servers as you want/need, each server on different port. Ok, this I find really annoying... You have a server listening on port 1000, a client connects on port 1000, the listening port is now basically a client sen...
by cas
Tue Nov 11, 2008 11:27 pm
Forum: Off Topic
Topic: New open AES lib needs testing (pb inc. available)
Replies: 16
Views: 4854

thanks for fixing decryption bug. works great now