Hi
First of all, thank you all.
I will try to answer by order, thanks.
Indiana Jones,
I tested your piece of code (copy(paste) and the results are unstable, given me the correct message but finishing with "Project rised exception SIGSEGV" staff.
By other hand if i fill EditBox with trash like "1.1." or something close, the program stops only with rised exception SIGSEGV.
procedure TForm1. Edit1EditingDone( Sender : TObject);
var
r : tregexprengine;
index,len : longint;
initok : boolean;
begin
initok:=GenerateRegExprEngine('^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}$',[],r);
if not(RegExprPos(r, PChar(Edit1.Text),index,len)) then <<--- 2nd case, stops here
Showmessage('Wrong IP Address.')
else
Showmessage('Correct IP.');
DestroyregExprEngine(r); <<--- 1st case, debugger stops here
end;
By the way, event OnEditingDone is triggered twice, why?
I experience this behavior with most of key/mouse events.
ivan17
By now, i only have the code on windows and when i have time i will google for what you suggest, no just before study how use it.
Bart,
Only after my last post, i remember to look the code maskedit.pp. Thanks.
Are you trying fill MaskEdit with no sense string, like "1.1." ?
As i said all versions greater than 9.26 when try Maskedit Lazarus inserts i don't know what in the project files that is no more possible compile even after delete the MaskEdit component from the form. Note that i have analyzed file.lpr and don't see nothing bad.
No matter if i restart the Lazarus or even windows, the result is all the same.
By other hand, trying the same in Lazarus 9.26, i can compile after delete MaskEdit from the form. So, Lazarus 0.9.26 is more stable i think.
I will try copy fpc 2.4 to Lazarus 0.9.26 instead of 2.2.2 to conclude where the issue is.
All this if i can do it, of course.
Eny,
I like KISS philosophy.
When the solutions tend to grow stupidly in terms of software/hardware, or when i walk in circles, generally is time to start thinking in another approach.
IndianaJones,
As i said before i only use Windows by now.
Final notes:
Remember what Eny said about pain, the simple code i publish, being far from perfect, has at least one virtue, is immune to typos and never falls to system errors.
This is the behavior i try all the time.
Thanks,
jolix