Search found 44 matches
- Aug 29, 2019 20:42
- Forum: Community Discussion
- Topic: is that right?!
- Replies: 15
- Views: 5921
Re: is that right?!
ok thank you work around https://drive.google.com/file/d/1W2MGUhPNkplqlN8Q0OArgKl4Z1rECWG3/view?usp=sharing #include once "registerclasses.bas" #include once "core.bas" #include once "classes.bas" #include once "component.bas" #include once "controls.bas&...
- Aug 29, 2019 5:21
- Forum: Community Discussion
- Topic: is that right?!
- Replies: 15
- Views: 5921
Re: is that right?!
I wrote a short article about "How to Manage Dynamic Memory (Allocation / Deallocation) in FB" . thanks fnx but i want to know with "new" what i shoud use to free for real the memory? And once again: type dummy extends object end type type x extends dummy z as byte end type dim ...
- Aug 28, 2019 20:24
- Forum: Community Discussion
- Topic: is that right?!
- Replies: 15
- Views: 5921
Re: is that right?!
You're the programmer. You are the one who knows whether a pointer is "clean" or not. If you can't always make that clear, assign a NULL to the pointer after you delete the memory. I don't see any problem or "mess" with with FB. Having the language set pointers to NULL isn't som...
- Aug 28, 2019 19:27
- Forum: Community Discussion
- Topic: is that right?!
- Replies: 15
- Views: 5921
- Aug 28, 2019 19:15
- Forum: Community Discussion
- Topic: is that right?!
- Replies: 15
- Views: 5921
Re: is that right?!
D.J.Peters wrote:Code: Select all
type dummy extends object
end type
type x extends dummy
z as byte
end type
dim as x ptr y=new x
print y
delete y : y=0
print y
y->z = 10
print y->z
sleep
THANK YOU, BUT SEEMS TO BE A WORK AROUND...IS THE POINTER CLEAN ANF FREE OR IS A FB MESS?
- Aug 28, 2019 19:13
- Forum: Community Discussion
- Topic: is that right?!
- Replies: 15
- Views: 5921
Re: is that right?!
fxm wrote:Yes, it's right that initial code has a double reason to crash!
THE INITIAL CODE DONT CRASH IN MY MACHINE...WIN7..SEEM NOT CLEAR THE PONTER
- Aug 28, 2019 19:11
- Forum: Community Discussion
- Topic: is that right?!
- Replies: 15
- Views: 5921
Re: is that right?!
type dummy extends object end type type x extends dummy z as byte end type dim as x ptr y=new x print y delete y : y=0 print y y->z = 10 print y->z sleep Const HEAP_NO_SERIALIZE = &H1 Const HEAP_ZERO_MEMORY = &H8 Declare Function HeapFree Lib "kernel32" Alias "HeapFree" ...
- Aug 28, 2019 18:49
- Forum: Community Discussion
- Topic: is that right?!
- Replies: 15
- Views: 5921
is that right?!
'''tll me if that right?!
type dummy extends object
end type
type x extends dummy
z as byte
end type
dim as x ptr y=new x
print y
sleep 5000
deallocate y
delete y
print y
y->z = 10
print y->z
sleep
type dummy extends object
end type
type x extends dummy
z as byte
end type
dim as x ptr y=new x
print y
sleep 5000
deallocate y
delete y
print y
y->z = 10
print y->z
sleep
- May 12, 2019 9:08
- Forum: Windows
- Topic: my old GUI toolkits work
- Replies: 0
- Views: 9087
my old GUI toolkits work
you will find here all of my sources
https://osdn.net/projects/sfnet_fbwingui/releases/
https://osdn.net/projects/sfnet_fbwingui/releases/
- May 12, 2019 9:07
- Forum: Projects
- Topic: VisualFBEditor - IDE for FreeBasic
- Replies: 130
- Views: 21923
Re: VisualFBEditor - IDE for FreeBasic
go to:
https://osdn.net/projects/sfnet_fbwingui/releases/
some one save my all work in source forge
you will find here all of my sources
https://osdn.net/projects/sfnet_fbwingui/releases/
some one save my all work in source forge
you will find here all of my sources
- May 10, 2019 16:35
- Forum: Projects
- Topic: VisualFBEditor - IDE for FreeBasic
- Replies: 130
- Views: 21923
Re: VisualFBEditor - IDE for FreeBasic
Xusinboy Bekchanov wrote:nastasa eodor wrote:second is mine
If possible, open the source for this too.
i said to you my old computer crush...cant save anythings from him...i lost everything...but in the next day i will write for you a new code, ok?
- May 07, 2019 23:41
- Forum: Hardware Interfaces / Communication
- Topic: Specialty serial program
- Replies: 24
- Views: 15530
Re: Specialty serial program
grindstone wrote:That won't work. The WRITE- statement also adds a LF/CR that can not be suppressed by a semicolon. In addition to it the string is automatically put in quotation marks.Now I am wondering if using write statement would be a better option?
use "put" not cr lf
- May 07, 2019 23:29
- Forum: Hardware Interfaces / Communication
- Topic: A "new" vintage Oscilloscope on my workbench :-)
- Replies: 2
- Views: 6676
Re: A "new" vintage Oscilloscope on my workbench :-)
nice and interesting.
- May 07, 2019 22:19
- Forum: Projects
- Topic: VisualFBEditor - IDE for FreeBasic
- Replies: 130
- Views: 21923
Re: VisualFBEditor - IDE for FreeBasic
the controls you say are packaged in a DLL library are Delphi controls ... so the source is written in pascal. They can be ported in FreeBasic but need times. I can send you a copy of Delphi 7 if you want, a licensed, functional one. if you know basic you will learn extremely fast and pascal. there...
- May 06, 2019 9:15
- Forum: Projects
- Topic: VisualFBEditor - IDE for FreeBasic
- Replies: 130
- Views: 21923
Re: VisualFBEditor - IDE for FreeBasic
tell me where you get that...because along of time i wrote a least 3 wrappers TPrintDialog http://visualfb.freewebspace.com TREBAR I do not know where I downloaded, but it is available in your GUITK. I do not know it from anyone, or yours, or aloberoger: TPrinter #Ifndef CRLF #Define CRLF Chr(10,13...