Search found 7 matches

by gvc
Tue Mar 04, 2008 4:40 pm
Forum: Off Topic
Topic: regarding the PB editor and alternative IDE/interfaces
Replies: 6
Views: 1492

bembulak wrote:
the only solution to compile nativly for 64 bit would be c++ with
No, there's more. ;) www.lazarus.freepascal.org
Thanks for the tip. Lazarus has a nice editor and most of all, it's object oriented.

Geert
by gvc
Sun Jan 14, 2007 9:07 pm
Forum: Coding Questions
Topic: Memory leak because CloseWindow doesn't release memory
Replies: 6
Views: 1851

That's strange, in my case memory usage doen't go down when the window is closed. When I changed the delays to 200 like you did memory usage only increases with 4kB every 10 seconds.

It looks like I have a similar problem with 'Openlibrary' and 'CloseLibrary'. After calling 'CloseLibrary' only a ...
by gvc
Sun Jan 14, 2007 7:38 pm
Forum: Coding Questions
Topic: Memory leak because CloseWindow doesn't release memory
Replies: 6
Views: 1851

If this is the final answer than it makes things complicated. It means I will have to stress memory to check if memory is freed up as expected to make sure my code has no memory leaks. As a Terminal Server easily contains 10GB of memory the memory consumption of the application can grow enormously ...
by gvc
Sun Jan 14, 2007 6:48 pm
Forum: Coding Questions
Topic: Memory leak because CloseWindow doesn't release memory
Replies: 6
Views: 1851

Memory leak because CloseWindow doesn't release memory

Can someone explain why this code is leaking memory (according to 'Taskmanager')? (Running on Windows XP).


If OpenWindow(0, 100, 100, 100, 100, "")
Repeat
OpenWindow(1, 300, 200, 230, 150, "", #PB_Window_TitleBar, WindowID(0))
Delay(20)
CloseWindow(1)
Delay(20)
ForEver
EndIf

I would ...
by gvc
Sun Aug 13, 2006 7:12 pm
Forum: Coding Questions
Topic: Strange behavior of EditorGadget on CrCrLf-sequence
Replies: 1
Views: 868

Just found out that the Cr Cr Lf sequence is a 'soft linebreak', which is inserted when a line is broken because of wordwrapping. Looks like the workaround I was using, which is replacing the soft linebreaks with hard linebreaks, is the correct solution for my problem.

Geert
by gvc
Sat Aug 12, 2006 10:29 pm
Forum: Coding Questions
Topic: Strange behavior of EditorGadget on CrCrLf-sequence
Replies: 1
Views: 868

Strange behavior of EditorGadget on CrCrLf-sequence

I noticed the sequence of two carriage return characters followed by a linefeed character is shown as a space character instead of line breaks in an EditorGadget. In a TextGadget the same sequence results in 3 line breaks.

Sample code:
If OpenWindow(0, 0, 0, 150, 100, "", #PB_Window_SystemMenu ...
by gvc
Wed Nov 02, 2005 1:35 pm
Forum: Feature Requests and Wishlists
Topic: Easy object oriented programming (just look at my example)
Replies: 84
Views: 23364

You have my vote for a Class/EndClass-structure!

First of all, no-one's obliged to use it, so you can keep programming in PB as before.

A class is a structure with embeded procedures, so if you understand how structures work it's a small step to classes. By the way, is the concept of classes more ...