Re: [MSEide-MSEgui-talk] windows 64 bit

2013-02-12 Thread Graeme Geldenhuys
On 2013-02-12 15:42, Patrick Goupell wrote:
 
 How do you compile mseide projects for 64 bit windows?

As far as I know 64-bit (any platform) is not officially supported. I
have successfully run 64-bit Linux versions of MSEide, but it didn't
start off without troubles.

I assume it should take some work to get 64-bit Windows version going -
but can Martin justify the time to do it. ;-)

PS to Martin:
Soon I'll be looking at getting MSEide to compile under 64-bit FreeBSD -
my OS of choice these days. I haven't attempted it yet, but will let you
know how it goes when I do.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/


--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] windows 64 bit

2013-02-12 Thread Patrick Goupell


On 02/12/2013 11:01 AM, Graeme Geldenhuys wrote:
 On 2013-02-12 15:42, Patrick Goupell wrote:
 How do you compile mseide projects for 64 bit windows?
 As far as I know 64-bit (any platform) is not officially supported. I
 have successfully run 64-bit Linux versions of MSEide, but it didn't
 start off without troubles.


The program is compiled as a 32 bit windows program.

Will it run on 64 bit?

If not, how do I / we develop for 64 bit windows environments?

Patrick

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] windows 64 bit

2013-02-12 Thread Martin Schreiber
On Tuesday 12 February 2013 16:42:55 Patrick Goupell wrote:
 Hello

 How do you compile mseide projects for 64 bit windows?

 I have a project that runs on windows 32 bit ok but fails on someone
 else's 64 bit windows 7 computer.

There is no win64 target for MSEgui at the moment, the win32 target should 
work on Windows 64 bit.

 Do I have to set any different options for 64 bit windows?  Or could
 this be a problem with his setup?

 Screenshots attached.

Please check why you don't have the needed access rights to the file you open 
at main.pas:919.

Martin

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] windows 64 bit

2013-02-12 Thread Martin Schreiber
On Tuesday 12 February 2013 17:01:35 Graeme Geldenhuys wrote:

 As far as I know 64-bit (any platform) is not officially supported. I
 have successfully run 64-bit Linux versions of MSEide, but it didn't
 start off without troubles.

Linux 64 bit is supported but not used much.

 I assume it should take some work to get 64-bit Windows version going -
 but can Martin justify the time to do it. ;-)

 PS to Martin:
 Soon I'll be looking at getting MSEide to compile under 64-bit FreeBSD -
 my OS of choice these days. I haven't attempted it yet, but will let you
 know how it goes when I do.

I am curious. :-)

Martin

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] windows 64 bit

2013-02-12 Thread Patrick Goupell


On 02/12/2013 12:17 PM, Martin Schreiber wrote:
 On Tuesday 12 February 2013 17:01:35 Graeme Geldenhuys wrote:
 As far as I know 64-bit (any platform) is not officially supported. I
 have successfully run 64-bit Linux versions of MSEide, but it didn't
 start off without troubles.

 Linux 64 bit is supported but not used much.


I have been using mseide on 64 bit linux (wheezy) for about 8 months now.

Everything works great.  I cross compile for 32 bit windows, 32 and 64 
bit linux.

Patrick

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] windows 64 bit

2013-02-12 Thread Graeme Geldenhuys
On 2013-02-12 16:33, Patrick Goupell wrote:
 The program is compiled as a 32 bit windows program.
 Will it run on 64 bit?

It should run okay.


 If not, how do I / we develop for 64 bit windows environments?

You might be able to run Win32 apps under Win64, but you can't target
Win64 directly. No true MSEgui 64-bit Windows applications.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/


--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] windows 64 bit

2013-02-12 Thread Graeme Geldenhuys
On 2013-02-12 17:17, Martin Schreiber wrote:
 Soon I'll be looking at getting MSEide to compile under 64-bit FreeBSD -
 my OS of choice these days. I haven't attempted it yet, but will let you
 know how it goes when I do.

 I am curious. :-)


As expected, the msesysintf.pas unit gave errors. I haven't attempted to
fix anything yet, I'll look into this later.

-
msesysintf.pas(520,29) Error: Incompatible types: got TThreadID
expected QWord
msesysintf.pas(554,41) Error: Call by var for arg no. 3 has to match
exactly: Got QWord expected TThreadID
msesysintf.pas(580,32) Error: Incompatible type for arg no. 1: Got
QWord, expected TThreadID
msesysintf.pas(591,20) Error: Incompatible type for arg no. 1: Got
QWord, expected TThreadID
msesysintf.pas(990) Fatal: There were 4 errors compiling module, stopping
Fatal: Compilation aborted
-


I can add that the TThreadID, semaphores etc are quite broken in FPC
2.6.0, 2.6.2-rc and 2.7.1 for FreeBSD - see my recent posts in
fpc-devel. I've worked around it for my projects, and can probably do
the same for msegui.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/


--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] windows 64 bit

2013-02-12 Thread Sieghard
Hallo Martin,

Du schriebst am Tue, 12 Feb 2013 18:17:33 +0100:

 On Tuesday 12 February 2013 17:33:28 Patrick Goupell wrote:
  On 02/12/2013 11:01 AM, Graeme Geldenhuys wrote:
   On 2013-02-12 15:42, Patrick Goupell wrote:
   How do you compile mseide projects for 64 bit windows?
  
   As far as I know 64-bit (any platform) is not officially supported. I
   have successfully run 64-bit Linux versions of MSEide, but it didn't
   start off without troubles.
 
  The program is compiled as a 32 bit windows program.
 
  Will it run on 64 bit?
 
 It should.

It probabely won't - not on Windows. Linux has come to a state where they
support multi-architecture user programs, but AFAIK Windows doesn't, and
this is supported quite strongly by today's attempt to - naively - install
some software (a PLC development system from a large german manufacturer
who's dedicated to Windows) on a 64-bit machine that's running on my
notebook already.
It wouldn't install, saying it won't run on a 64-bit processor. Another
program, based on MS's NET-interpreter _did_ install and seemed to run
correctly though.
Go figure - trouble ahead?
(BTW, I hope you can prove me wrong in this;)

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


--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] windows 64 bit

2013-02-12 Thread Graeme Geldenhuys
On 2013-02-12 21:54, Martin Schreiber wrote:

 Where is tthreadid for freebsd defined? I could not find it in rtl.


[ rtl/bsd/sysosh.inc ]

type
  { fd are int in C also for 64bit targets (x86_64) }
  THandle = Longint;
  TThreadRec = record end;
  TThreadID  = ^TThreadRec;

  { pthread_mutex_t }
  PRTLCriticalSection = ^TRTLCriticalSection;
  TRTLCriticalSection = {$i pmutext.inc}

--[ end ]


Please see the messages I posted in fpc-devel for more details about all
the FPC issues with FreeBSD. TThreadID is a pointer to an a opaque type
(it can be anything - so no assumptions can be made). So I simply casted
GetCurrentThreadID to PtrUInt, so I can treat the pointer value as a
thread id. Many libraries like OpenSSL etc do the same under FreeBSD.
You can't actually get a numerical value of a running thread under
FreeBSD, but you can name each thread - but that requires a different
(FreeBSD specific) API call.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/


--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] windows 64 bit

2013-02-12 Thread Ivanko B
64bit support will anyway be needed for smooth running 2G+ (with swap,
sure) memory-usage apps.
Because of huge CPU  memory requirements of modern movie-like
PC-games, Windows7 64bit has been  the current win-32 mainstream :)

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk