Re: [MSEide-MSEgui-talk] ShowMessage doesn't show if called from within a thread's OnExecute

2012-07-27 Thread Ivanko B
Ttimer's options are't settable via ObjInsp but the leak one.

2012/7/26, Ivanko B ivankob4m...@gmail.com:
 Self exiting the program or the thread?
 ==
 The program.


 2012/7/26, Martin Schreiber mse00...@gmail.com:
 Am 25.07.2012 05:24, schrieb Martin Schreiber:
 On Tuesday 24 July 2012 21:11:25 Ivanko B wrote:
   to move gui code in  main thread.
 =
 Any or particular type of GUI code ?

 On Windows any. Use application.lock/unlock in order to set common
 variables
 only, unless we can solve all Windows multithread API problems (no time
 at
 the moment).

 git master 1bcf30af9eae1cca061e315d5bc37d2cfadc8226 uses
 application.synchronize() for showmessage(). The windows deadlocks are
 too difficult to be solved.

 Martin


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 mseide-msegui-talk mailing list
 mseide-msegui-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] ShowMessage doesn't show if called from within a thread's OnExecute

2012-07-27 Thread Martin Schreiber
On Friday 27 July 2012 12:23:06 Ivanko B wrote:
 Ttimer's options are't settable via ObjInsp but the leak one.


 timeroptionty = (to_single,   //single shot
  to_absolute, //use absolute time (timestamp()) for to_single
   //disabled for ttimer
  to_autostart,//set enabled for to_single by setting 
interval,
   //disabled for ttimer
  to_leak);//do not catch up missed timeouts


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Cursor.

2012-07-27 Thread Christian Nobel
Hi Martin.

Project attached.


Den 26-07-2012 21:05, Martin Schreiber skrev:
 On Thursday 26 July 2012 20:41:48 Christian Nobel wrote:
 Den 26-07-2012 15:57, Martin Schreiber skrev:
 Works for me. Which operating system?

 Ubuntu 11.04
 MSE 2.8.2 (but also seen on earlier versions)

 Works for me. Please send a testprogram which shows the problem.
 
 But if I eg. do this:

 procedure tmainfo.opencsvfile(const sender: TObject);
 begin
   if tfiledialog1.execute(fdk_open) = mr_ok then
   begin
 AssignFile(CSVFile,tfiledialog1.controller.filename);
 Reset(CSVFile);
 y:=0;
 While SeekEof(CSVFile)=false do
 begin
   inc(y);
   Readln(CSVFile,CSVString);
   if y mod 5000 = 0 then
   begin
 tedit2.text:='Line'+IntToStr(y)+' read';
  mainfo.update;
 
 Better call application.processmessages() instead of update().
 
 Martin
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 

object mainfo: tmainfo
  optionswidget = [ow_arrowfocus, ow_subfocus, ow_destroywidgets, ow_hinton]
  bounds_x = 545
  bounds_y = 484
  bounds_cx = 403
  bounds_cy = 280
  container.optionswidget = [ow_mousefocus, ow_tabfocus, ow_arrowfocus, 
ow_subfocus, ow_mousetransparent, ow_destroywidgets]
  container.frame.zoomwidthstep = 1
  container.frame.zoomheightstep = 1
  container.bounds = (
0
0
403
280
  )
  optionswindow = [wo_groupleader]
  options = [fo_main, fo_terminateonclose, fo_autoreadstat, fo_autowritestat, 
fo_savepos, fo_savestate]
  moduleclassname = 'tmseform'
  object tbutton1: tbutton
bounds_x = 96
bounds_y = 16
bounds_cx = 50
bounds_cy = 21
state = [as_localcaption, as_localonexecute]
caption = 'Indl'#230's'
onexecute = opencsvfile
  end
  object tedit1: tedit
frame.dummy = 0
taborder = 1
bounds_x = 184
bounds_y = 48
bounds_cy = 21
reffontheight = 15
  end
  object tedit2: tedit
frame.dummy = 0
taborder = 2
bounds_x = 184
bounds_y = 104
bounds_cy = 21
reffontheight = 15
  end
  object tfiledialog1: tfiledialog
left = 32
top = 48
  end
end
unit main;
{$ifdef FPC}{$mode objfpc}{$h+}{$endif}
interface
uses
 mseglob,mseguiglob,mseapplication,msestat,msemenus,msegui,msegraphics,
 msegraphutils,mseevent,mseclasses,mseforms,msesimplewidgets,msewidgets,
 msebitmap,msedataedits,msedatanodes,mseedit,msefiledialog,msegrids,
 mselistbrowser,msestrings,msesys,msetypes, strutils, sysutils, msepointer;

type
 tmainfo = class(tmseform)
   tbutton1: tbutton;
   tfiledialog1: tfiledialog;
   tedit1: tedit;
   tedit2: tedit;
   procedure opencsvfile(const sender: TObject);
 end;
 
var
  mainfo: tmainfo;
  CSVFile:textfile;
  CSVString:string;
  y:integer;
 
 
implementation
uses
 main_mfm;
procedure tmainfo.opencsvfile(const sender: TObject);
begin
  if tfiledialog1.execute(fdk_open) = mr_ok then
  begin
	 	application.beginwait;
  	try
		  AssignFile(CSVFile,tfiledialog1.controller.filename);
		  Reset(CSVFile);
		  y:=0;
		  While SeekEof(CSVFile)=false do
	 		begin 
 	 	inc(y);
		Readln(CSVFile,CSVString);
		if y mod 5000 = 0 then
		begin
  		tedit2.text:='Post '+IntToStr(y)+' læst';
  		mainfo.update;
		end 
			end;
		finally
			application.endwait;
		end;
		tedit1.text:=IntToStr(y);
	  CloseFile(CSVFile); 
	end;
end;

end.
unit main_mfm;
{$ifdef FPC}{$mode objfpc}{$h+}{$endif}

interface

implementation
uses
 mseclasses,main;

const
 objdata: record size: integer; data: array[0..879] of byte end =
  (size: 880; data: (
  84,80,70,48,7,116,109,97,105,110,102,111,6,109,97,105,110,102,111,13,
  111,112,116,105,111,110,115,119,105,100,103,101,116,11,13,111,119,95,97,114,
  114,111,119,102,111,99,117,115,11,111,119,95,115,117,98,102,111,99,117,115,
  17,111,119,95,100,101,115,116,114,111,121,119,105,100,103,101,116,115,9,111,
  119,95,104,105,110,116,111,110,0,8,98,111,117,110,100,115,95,120,3,33,
  2,8,98,111,117,110,100,115,95,121,3,228,1,9,98,111,117,110,100,115,
  95,99,120,3,147,1,9,98,111,117,110,100,115,95,99,121,3,24,1,23,
  99,111,110,116,97,105,110,101,114,46,111,112,116,105,111,110,115,119,105,100,
  103,101,116,11,13,111,119,95,109,111,117,115,101,102,111,99,117,115,11,111,
  119,95,116,97,98,102,111,99,117,115,13,111,119,95,97,114,114,111,119,102,
  111,99,117,115,11,111,119,95,115,117,98,102,111,99,117,115,19,111,119,95,
  109,111,117,115,101,116,114,97,110,115,112,97,114,101,110,116,17,111,119,95,
  100,101,115,116,114,111,121,119,105,100,103,101,116,115,0,29,99,111,110,116,
  97,105,110,101,114,46,102,114,97,109,101,46,122,111,111,109,119,105,100,116,
  

Re: [MSEide-MSEgui-talk] ShowMessage doesn't show if called from within a thread's OnExecute

2012-07-27 Thread Ivanko B
o_autostart,//set enabled for to_single by setting
interval,
=
It can't be set enabled.

pS:
TTimer doesn't help lblStatus  progrssbar to redraw in THreadComp.OnTerminated.


2012/7/27, Martin Schreiber mse00...@gmail.com:
 On Friday 27 July 2012 12:23:06 Ivanko B wrote:
 Ttimer's options are't settable via ObjInsp but the leak one.

 
  timeroptionty = (to_single,   //single shot
   to_absolute, //use absolute time (timestamp()) for
 to_single
//disabled for ttimer
   to_autostart,//set enabled for to_single by setting
 interval,
//disabled for ttimer
   to_leak);//do not catch up missed timeouts
 

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 mseide-msegui-talk mailing list
 mseide-msegui-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] ShowMessage doesn't show if called from within a thread's OnExecute

2012-07-27 Thread Ivanko B
The only working code in TheradComp.OnTreminated:

//--

btnCancel.enabled:= false;
case RESULTCODETY(ExitCode) of
  SUCCESS: begin
lblFinStatus.caption:= 'Завершено успешно.';
lblFinStatus.color:= cl_ltgreen;
pbCurrentFile.value:= 1;
pbTotals.value:= 1;
  end;
  CANCELLED: begin
lblFinStatus.caption:= 'Отменено.';
lblFinStatus.color:= cl_ltblue;
  end
  else {FAILED}
lblFinStatus.caption:= 'Произошла ошибка.';
lblFinStatus.color:= cl_ltred;
end;
application.processmessages();
sleepus(300);
if ExitCode = integer(FAILED) then begin
  showmessage(lastopermsglocal,'ОШИБКА АВТООБНОВЛЕНИЯ');
end;
application.terminated:= true; {не вызывает app.OnterminateQuery}

//--

Don't the work of application.processmessages() should be done in
THreadcomp.OnTreminated automaticcaly ?


2012/7/27, Ivanko B ivankob4m...@gmail.com:
 o_autostart,//set enabled for to_single by setting
 interval,
 =
 It can't be set enabled.

 pS:
 TTimer doesn't help lblStatus  progrssbar to redraw in
 THreadComp.OnTerminated.


 2012/7/27, Martin Schreiber mse00...@gmail.com:
 On Friday 27 July 2012 12:23:06 Ivanko B wrote:
 Ttimer's options are't settable via ObjInsp but the leak one.

 
  timeroptionty = (to_single,   //single shot
   to_absolute, //use absolute time (timestamp()) for
 to_single
//disabled for ttimer
   to_autostart,//set enabled for to_single by setting
 interval,
//disabled for ttimer
   to_leak);//do not catch up missed timeouts
 

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 mseide-msegui-talk mailing list
 mseide-msegui-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] ShowMessage doesn't show if called from within a thread's OnExecute

2012-07-27 Thread Martin Schreiber
On Friday 27 July 2012 14:05:05 Ivanko B wrote:
 The only working code in TheradComp.OnTreminated:

 Don't the work of application.processmessages() should be done in
 THreadcomp.OnTreminated automaticcaly ?

The sleep() call is in main thread - main thread eventloop sleeps - no gui 
action. Therefore the suggestion to use a timer to close the application.

Or use tthreadcomp.onterminate instead of terminated, it runs in worker thread 
context:

 application.unlock; //application is locked in onterminate
 sleepus(300);
 application.lock;   //restore lock state
 if ExitCode = integer(FAILED) then begin
  showmessage(lastopermsglocal,'ОШИБКА АВТООБНОВЛЕНИЯ'); 
 //showmesssage is thread safe
 end;
 application.terminated:= true; {не вызывает app.OnterminateQuery}
end;

Martin

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] *** Second Call*** What third party components have you integrated into MSEide?

2012-07-27 Thread Martin Schreiber
Hi,

Because of a new FPC field order optimization it will not be possible in 
future to use cracker classes, please read the threads:
http://www.mail-archive.com/fpc-devel%40lists.freepascal.org/msg26432.html
and
http://www.mail-archive.com/fpc-devel%40lists.freepascal.org/msg26290.html
http://www.mail-archive.com/fpc-devel%40lists.freepascal.org/msg26355.html

In MSEide+MSEgui we need cracker classes and mad workarounds in order to 
implement extensions and to bend the original behaviour. I think the time has 
come to leave FCL compatibility and to clean up the whole insanity.
Do you use any third party components integrated in MSEide which can be placed 
in forms or datamodules at design time? We need to find a solution for them 
because tmsecomponent will not descend from TComponent anymore.
Another problem is db.pas. There probably the cleanest solution is to 
duplicate db.pas in MSEgui with a compatible API, streamlined implementation 
and a new unit name.
What third party DB components which depend on db.pas do you use? Can we drop 
MSEide support for TMemDatset and friends?

Thanks, Martin

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] ShowMessage doesn't show if called from within a thread's OnExecute

2012-07-27 Thread Sieghard
Hallo Ivanko,

Du schriebst am Thu, 26 Jul 2012 16:52:39 +0500:

 Hmm.. me terminate the application in one of its threads.

Bad practice, I'd say.

 What is Your opinion on proper build such kind of programs (serving a
 long running thread  then self-exiting with a delay before exit) ?

Why don't you set a flag, send a message or use another means to signal the
main thread that your worker thread has terminated (perhaps simply polling
its terminated state), do the neccessary clean up and only then exit the
main program? No more worries about thread clean up or synchronization and
suxh...

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Cursor.

2012-07-27 Thread Martin Schreiber
On Friday 27 July 2012 13:27:39 Christian Nobel wrote:
 Hi Martin.

 Project attached.

Below code works for me.

procedure tmainfo.opencsvfile(const sender: TObject);
var
 y: integer;
begin
  if tfiledialog1.execute(fdk_open) = mr_ok then
  begin
   application.beginwait;
   try
y:= 0;
while y  10 do begin
 tedit2.text:='Post '+IntToStr(y)+' læst';
application.processmessages;
sleep(1000);
inc(y);
   end;
[...]
 finally
  application.endwait;
 end;


Martin

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] *** Second Call*** What third party components have you integrated into MSEide?

2012-07-27 Thread wahono sri
I don't use TMemDatset and friends.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] *** Second Call*** What third party components have you integrated into MSEide?

2012-07-27 Thread Patrick Goupell
The only stuff I use is what comes with mseide+msegui.

So no special requirements for me.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] *** Second Call*** What third party components have you integrated into MSEide?

2012-07-27 Thread Julio Jiménez


 What third party DB components which depend on db.pas do you use? Can we
 drop
 MSEide support for TMemDatset and friends?


None. It's ok for me.

Cheers.

-- 
Julio Jiménez Borreguero
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] *** Second Call*** What third party components have you integrated into MSEide?

2012-07-27 Thread Marcos Douglas
On Fri, Jul 27, 2012 at 2:58 PM, Martin Schreiber mse00...@gmail.com wrote:

 Hi,

 Because of a new FPC field order optimization it will not be possible in
 future to use cracker classes, please read the threads:
 http://www.mail-archive.com/fpc-devel%40lists.freepascal.org/msg26432.html
 and
 http://www.mail-archive.com/fpc-devel%40lists.freepascal.org/msg26290.html
 http://www.mail-archive.com/fpc-devel%40lists.freepascal.org/msg26355.html

 In MSEide+MSEgui we need cracker classes and mad workarounds in order to
 implement extensions and to bend the original behaviour. I think the time
 has
 come to leave FCL compatibility and to clean up the whole insanity.
 Do you use any third party components integrated in MSEide which can be
 placed
 in forms or datamodules at design time? We need to find a solution for
 them
 because tmsecomponent will not descend from TComponent anymore.
 Another problem is db.pas. There probably the cleanest solution is to
 duplicate db.pas in MSEgui with a compatible API, streamlined
 implementation
 and a new unit name.
 What third party DB components which depend on db.pas do you use? Can we
 drop
 MSEide support for TMemDatset and friends?

 Thanks, Martin

...tmsecomponent will not descend from TComponent anymore

What do you going to do, rewrite all code??

Marcos Douglas

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] ZenGL, OpenGL library

2012-07-27 Thread wahono sri
Did you try FTGL?

http://sourceforge.net/projects/ftgl/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Cursor.

2012-07-27 Thread Christian Nobel
Aha.

The application.processmessages did the trick.

Ether by replacing the mainfo.update with application.processmessages

or by putting application.processmessages right after the
application.beginwait




Den 27-07-2012 20:16, Martin Schreiber skrev:
 On Friday 27 July 2012 13:27:39 Christian Nobel wrote:
 Hi Martin.

 Project attached.

 Below code works for me.
 
 procedure tmainfo.opencsvfile(const sender: TObject);
 var
  y: integer;
 begin
   if tfiledialog1.execute(fdk_open) = mr_ok then
   begin
application.beginwait;
try
 y:= 0;
 while y  10 do begin
  tedit2.text:='Post '+IntToStr(y)+' læst';
 application.processmessages;
 sleep(1000);
 inc(y);
end;
 [...]
  finally
   application.endwait;
  end;
 
 
 Martin
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 mseide-msegui-talk mailing list
 mseide-msegui-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
 



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] ShowMessage doesn't show if called from within a thread's OnExecute

2012-07-27 Thread Ivanko B
to use a timer to close the application.
===
In OnTimer ?


2012/7/28, Ivanko B ivankob4m...@gmail.com:
 Therefore the suggestion to use a timer to close the application.
 ===
 Please spell the exact sequence of calls (incl tuning  starting the
 timer, redrawing widgets etc) - in the thread world even well known
 components appear stranger - me spent a couple of hour just to make
 use of TTimer but failed :)

 2012/7/28, Ivanko B ivankob4m...@gmail.com:
 Possibly for such cases there's should be a special  form/application
 event handler.


 2012/7/28, Ivanko B ivankob4m...@gmail.com:
 Bad practice, I'd say.
 ===
 Well, really there's a single worker thread in the application but me
 wanted to achieve an universal solution.

 Why don't you set a flag, send a message or use another means to signal
 the
  main thread that your worker thread has terminated (perhaps simply
 polling
  its terminated state), do the neccessary clean up and only then exit
 the
  main program? No more worries about thread clean up or synchronization
 and
  suxh...
 ===
 Surely me tried it first but with this approach me couldn't get proper
 drawing informational widgets then showing them for a while the auto
 exiting the application. And none of OnDestory, OnTerminateQuery,
 OnTerminate can't be used to hook on for that since OnDestory 
 OnTerminate are too late as long as OnTerminateQuery contradicts to
 auto exiting - someone had to tell the application It's time to exit
 :)


 2012/7/26, Sieghard s_c_...@arcor.de:
 Hallo Ivanko,

 Du schriebst am Thu, 26 Jul 2012 16:52:39 +0500:

 Hmm.. me terminate the application in one of its threads.

 Bad practice, I'd say.

 What is Your opinion on proper build such kind of programs (serving a
 long running thread  then self-exiting with a delay before exit) ?

 Why don't you set a flag, send a message or use another means to signal
 the
 main thread that your worker thread has terminated (perhaps simply
 polling
 its terminated state), do the neccessary clean up and only then exit
 the
 main program? No more worries about thread clean up or synchronization
 and
 suxh...

 --
 (Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
 nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
 ---
 Mit freundlichen Grüßen, S. Schicktanz
 ---


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond.
 Discussions
 will include endpoint security, mobile security and the latest in
 malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 mseide-msegui-talk mailing list
 mseide-msegui-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk





--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] ZenGL, OpenGL library

2012-07-27 Thread Martin Schreiber
On Friday 27 July 2012 22:19:47 wahono sri wrote:
 Did you try FTGL?

 http://sourceforge.net/projects/ftgl/

Yes, I used it at the beginning of the development of the MSEgui OpenGL 
backend. Later I decided to implement an own font engine based on Freetype.

Martin

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk