Re: [fpc-devel] PR: What sites to spam for 2.0.2 release?

2005-12-09 Thread Ales Katona

Don't forget to tell PGD.

Why is OSNews and /. out ?

Ales
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] PR: What sites to spam for 2.0.2 release?

2005-12-09 Thread Christian Iversen
On Wednesday 07 December 2005 23:33, Daniël Mantione wrote:
> Hi guys,
>
> Speaking of PR, we have a 2.0.2 to announce within a very short time and
> we better do it well. We won't be able to do a Slashdot or OSnews
> announcement, nevertheless we should take these opportunities to promote
> FPC.
>
> So, any ideas what sites we should spam? I'm looking for developer focused
> sites. Pascal/Delphi related sites are welcome, but remember we are
> already quite famous in that world. We need generic open source related
> sites.

We need to send more messages to the general Delphi community. I didn't know 
FPC well before I tried kylix, and heard about it as an alternative to that. 

-- 
Regards,
Christian Iversen
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] PR: What sites to spam for 2.0.2 release?

2005-12-09 Thread Dean Zobec

Daniël Mantione wrote:


Hi guys,

Speaking of PR, we have a 2.0.2 to announce within a very short time and 
we better do it well. We won't be able to do a Slashdot or OSnews 
announcement, nevertheless we should take these opportunities to promote 
FPC.


So, any ideas what sites we should spam? I'm looking for developer focused 
sites. Pascal/Delphi related sites are welcome, but remember we are 
already quite famous in that world. We need generic open source related 
sites.


Daniël


http://lwn.net/ ?
http://lwn.net/op/FAQ.lwn

Please tell us when the announcement is available in the svn or the 
wiki, to be able to translate it in other languages and post on specific 
local forums or websites.
I'm considering sending a news announcement on some Slovenian or Italian 
website related to open source and IT news.

Ciao, Dean

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] PR: What sites to spam for 2.0.2 release?

2005-12-09 Thread Johann Glaser
Hi!

> Speaking of PR, we have a 2.0.2 to announce within a very short time and 
> we better do it well. We won't be able to do a Slashdot or OSnews 
> announcement, nevertheless we should take these opportunities to promote 
> FPC.
> 
> So, any ideas what sites we should spam? I'm looking for developer focused 
> sites. Pascal/Delphi related sites are welcome, but remember we are 
> already quite famous in that world. We need generic open source related 
> sites.

I recommend the German http://www.pro-linux.de/ Linux/FOSS news site. If
you need help (translation, posting the announcement) I can help. Please
write the text in "news" style because they don't like advertisements.

Bye
  Hansi


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] Access Violation with nested DLL's compiled by FPC (and some more info on bug #4538)

2005-12-09 Thread Stefan van den Berg

Hi,

I've already asked about this on the community forums on the 
freepascal.org site and opened a bug on the bugtracker (bugID #4538). 
But none of those show any progress on a solution to the problem I'm having.


First a little backstory: I'm currently, as part of an internship, 
porting an application written in Delphi 6 to Free Pascal/Lazarus. The 
application consists of a main executable and a bunch of (23, to be 
exact) DLL's. The app uses some of these DLL's and some other are used 
by the DLL's themselves. To make this more clear, I've schematically 
illustrated the situation below.


Main-app
/  |  \
   dll2-   |   --dll1
   /   |   \
  dll3-   dll3  -dll2
   \
-dll3

Dll3 could, for example, be a library which is responsible for logging 
(debug)messages to a file on disk.


Right now I've come to the point where every individual part seems to do 
what it should do. But when testing the whole package, I came across a 
problem, which at first i thought to be a bug in our code. But after 
some debugging and after testing with a bunch of simple testcases I 
concluded that my problem might be caused by a bug in FPC itself.


The problem is this: When the app calls a function in dll1, which calls 
a function in dll2, which calls a function in dll3, an AccessViolation 
is thrown when calling the function in dll3.


This problem is blocking further porting efforts, So you can guess that 
I'd really like to see this resolved.


What I'd like to ask is, am I doing something wrong? If so, what is it 
I'm doing wrong? If not, can anybody confirm the bug (if there is one) 
and maybe give a possible ETA for a fix.


FPC versions I've confirmed the problem with are:
official win32 2.0.0 binaries: Access violation when calling a function 
in dll3 from dll2 from dll1 from app
home-brew 2.0.3 (built on 6 dec) in win32: AV when calling function in 
dll3 from dll2 from dll1 from app
2.1.1 bundled with Lazarus nightly build (6 dec ): AV when calling dll2 
from dll1 from app.


I'm the one who submitted bug #4538. At that time I thought the problem 
only occurred on win32 when using fpc 2.1.1, because I only tested with 
2 levels of dll's. When I ran into the access violation problem again 
(with a dll 'tree' of at least 3 levels deep) on Linux using fpc 2.1.1 
and 2.0.3, i concluded that probably all the 2.x versions suffer from 
somewhat the same problem.


Regards,
Stefan van den Berg
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] Re: StrPos giving a access violation

2005-12-09 Thread Graeme Geldenhuys

Hi,

I put a breakpoint inside StrPos and stepped through the code.  It 
raised a "External SIGSERV" error on the second line:

  p:=strscan(str1,str2^);

I don't understand assembler so couldn't debug into StrScan.

Regards,
  - Graeme -



Graeme Geldenhuys wrote:


  lFrom   := '';
  lSearch := '';
  lResult := StrPos(Pointer(lFrom), Pointer(lSearch));
  AssertEquals('Failing on 3', '', string(lResult));




___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] StrPos giving a access violation

2005-12-09 Thread Graeme Geldenhuys

Hi,

The 3rd unit test fails due to StrPos giving a access violation.  I ran 
this same unit test under Delphi 7 and it passed as StrPos returned a 
nil value when passing two '' param values.


Has this been reported as a bug yet?


-  CUT  ---
var
  lFrom: string;
  lSearch: string;
  lResult: PChar;
begin
  lFrom   := 'abc';
  lSearch := 'b';
  lResult := StrPos(Pointer(lFrom), Pointer(lSearch));
  AssertEquals('Failing on 1', 'bc', string(lResult));

  lSearch := 'x';
  lResult := StrPos(Pointer(lFrom), Pointer(lSearch));
  AssertEquals('Failing on 2', '', string(lResult));

  lFrom   := '';
  lSearch := '';
  lResult := StrPos(Pointer(lFrom), Pointer(lSearch));
  AssertEquals('Failing on 3', '', string(lResult));

-  END  ---


Regards,
  - Graeme -






___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] Homepage SVN Conflict

2005-12-09 Thread Johann Glaser
Hi!

Hint: At the homepage the "latest news" section shows an SVN conflict
inline.

Bye
  Hansi


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] StrPos giving a access violation

2005-12-09 Thread Graeme Geldenhuys

Hi

Forgot to mention, I ran this using:
Free Pascal Compiler version 2.0.1 [2005/10/02] for i386 on Windows 2000

G.


 Original Message 
Subject: StrPos giving a access violation
Date: Thu, 08 Dec 2005 14:26:14 +0200
From: Graeme Geldenhuys <[EMAIL PROTECTED]>
Organization: Master Maths (Pty) Ltd
To: FPC developers' list 

Hi,

The 3rd unit test fails due to StrPos giving a access violation.  I ran
this same unit test under Delphi 7 and it passed as StrPos returned a
nil value when passing two '' param values.

Has this been reported as a bug yet?


-  CUT  ---
var
  lFrom: string;
  lSearch: string;
  lResult: PChar;
begin
  lFrom   := 'abc';
  lSearch := 'b';
  lResult := StrPos(Pointer(lFrom), Pointer(lSearch));
  AssertEquals('Failing on 1', 'bc', string(lResult));

  lSearch := 'x';
  lResult := StrPos(Pointer(lFrom), Pointer(lSearch));
  AssertEquals('Failing on 2', '', string(lResult));

  lFrom   := '';
  lSearch := '';
  lResult := StrPos(Pointer(lFrom), Pointer(lSearch));
  AssertEquals('Failing on 3', '', string(lResult));

-  END  ---


Regards,
  - Graeme -







___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] File size limit of list

2005-12-09 Thread Karl-Michael Schindler

Hi all

In my next mail, I want to submit the darwin bootstrap compiler. It  
is 667 KB and may exceed the file limit. Therefore, this hint.


All the best  - Michael.

P.S. Congrats for 2.0.2 :)
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] zeos is broken on fpc 2.0.2

2005-12-09 Thread Bisma Jayadi

From Zeos Forum...

Posted: 08.12.2005, 21:00

When i try to install zeosdbo_rework from cvs 07-december-2005 on lazarus svn 
updated on the same day, i receive an error trying to open the package zdbc.lpk.


I have fpc 2.0.1 and latest lazarus from svn. It works. But, if I change fpc to 
2.0.2 (latest from svn) or to fpc 2.1.1+ (latest from svn), then I can't use 
zeosdbo anymore... so I stick with fpc 2.0.1.


Is there anyone can explain what causes the errors?

-Bee-

has Bee.ography at
http://beeography.blogsome.com
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] SysUtils.ExtractFileDrive inconsistent

2005-12-09 Thread Graeme Geldenhuys

Hi

I am busy porting a Delphi application to Free Pascal & Lazarus. 
Luckily I have a 1400 unit tests to help me along.  Running the 
following unit test under Lazarus & Delphi produces different results! 
It fails under Free Pascal.  I traced the difference to the 
ExtractFileDrive call.  Under Delphi it returns 'c:' and under FPC it 
returns ''.  This was all run under Windows 2000 and FPC 2.0.1



CheckEquals( '', tiUtils.tiRemoveDrive('c:'), 'Failed on 1' );


--  CUT  
function tiRemoveDrive( pStrPath : string ) : string ;
var
  sDrive : string ;
begin
  sDrive := extractFileDrive( pStrPath ) ;
  if sDrive <> '' then begin
result := copy( pStrPath, length( sDrive )+1, length( pStrPath ) -
length( sDrive )) ;
  end else begin
result := pStrPath ;
  end ;
end ;
--  CUT  


Regards,
  - Graeme -



___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] PR: What sites to spam for 2.0.2 release?

2005-12-09 Thread Tom Verhoeff
On Wed, Dec 07, 2005 at 11:33:03PM +0100, Daniël Mantione wrote:
> 
> Speaking of PR, we have a 2.0.2 to announce within a very short time and 
> we better do it well. We won't be able to do a Slashdot or OSnews 
> announcement, nevertheless we should take these opportunities to promote 
> FPC.
> 
> So, any ideas what sites we should spam? I'm looking for developer focused 
> sites. Pascal/Delphi related sites are welcome, but remember we are 
> already quite famous in that world. We need generic open source related 
> sites.

If the Mac OS X support is "directly available out of the box" (rather
than: depending on the kindness of some soul in the community after the
release is made public), then I suggest that it is also announced at



They also carry the announcements of every REALbasic release.  I volunteer
to send the message, if you prompt me in time.

And, I might get something to be published in .

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] PR: What sites to spam for 2.0.2 release?

2005-12-09 Thread Felipe Monteiro de Carvalho
On 12/8/05, Johann Glaser <[EMAIL PROTECTED]> wrote:
> I recommend the German http://www.pro-linux.de/ Linux/FOSS news site. If
> you need help (translation, posting the announcement) I can help. Please
> write the text in "news" style because they don't like advertisements.

I can translate and add some more info and send it to portuguese open
source websites, like:

http://www.vivaolinux.com.br/

--
Felipe Monteiro de Carvalho
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] GetPropList gives AV when called

2005-12-09 Thread Graeme Geldenhuys

Hi,

Another issue in FPC 2.0.1 on Win2000 that doesn't occur in Delphi. As I 
mentioned before, I am busy porting our Delphi app. The Delphi app had 
1400 unit tests, which I am now busy working through to find out why 
they are failing under FPC.


In the code below, tiListToStream calls tiGetPropertyNames which 
internally calls GetPropList (the first one), which then throws an 
Access Violation and reports a error in GetTypeData. See error at end of 
email.


I traced into GetPropList to line 663 which assigns the 
@InsertPropnosort  event handler.


begin
  if sorted then
DoInsertProp:[EMAIL PROTECTED]
  else
DoInsertProp:[EMAIL PROTECTED];  <<== gives AV here
<...snip...>

Any ideas on this one?

--

procedure tiListToStream(AStream : TStream ;
 AList : TtiObjectList) ;
var
  lFields  : TStringList ;
begin
  Assert(AStream<>nil, 'AStream not assigned');
  Assert(AList.TestValid, cErrorTIPerObjAbsTestValid);
  Assert(AList.Count > 0, 'AList.Count = 0');
  lFields := TStringList.Create ;
  try
tiGetPropertyNames(AList.Items[0], lFields );
<...snip...>


-
procedure tiGetPropertyNames( pPersistent : TtiBaseObjectClass ;
  pSL : TStringList ;
  pPropFilter : TTypeKinds = ctkSimple ) ;
var
  lCount : integer ;
  lSize  : integer ;
  lList  : PPropList ;
  i : integer ;
  lPropFilter : TTypeKinds ;
begin
  Assert( pSL <> nil, 'pSL not assigned.' ) ;
  lPropFilter := pPropFilter ;

  pSL.Clear ;

  lCount  := GetPropList(pPersistent.ClassInfo, lPropFilter, nil, false);
  lSize   := lCount * SizeOf(Pointer);
  GetMem(lList, lSize);
  try
GetPropList(pPersistent.ClassInfo, lPropFilter, lList, false);
for i := 0 to lcount - 1 do
  pSL.Add( lList^[i]^.Name ) ;
  finally
FreeMem( lList, lSize ) ;
  end ;
end ;
-


  TTestTIUtils.tiListToStreamDefault: Access violation
  EAccessViolation
  Access violation
  ../objpas/typinfo.pp
  478
  GETTYPEDATA

---

Regards,
  - Graeme -



___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] VarAsType: Could not convert variant...

2005-12-09 Thread Graeme Geldenhuys

Hi,

Still busy porting my Delphi app to FPC.  The VarAsType call generated 
the error listed below.  This line worked under Delphi.

FPC ver 2.0.1 on Win2000.

Is this a bug?

--
var
  lVar : Variant ;
begin
  lVar := VarAsType('',varEmpty);

--


  TTestTIUtils.tiIsVariantOfType: Could not convert variant of 
type (String) into type (Empty)

  EVariantTypeCastError
  Could not convert variant of type (String) into 
type (Empty)

  ../inc/variants.pp
  2804
  VARCASTERROR

--


G.




___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] Re: PR: What sites to spam for 2.0.2 release?

2005-12-09 Thread Jeff Pohlmeyer
> We need generic open source related sites.

http://www.icewalkers.com/

 - Jeff
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] StrPos giving a access violation

2005-12-09 Thread Jonas Maebe


On 8 dec 2005, at 13:26, Graeme Geldenhuys wrote:

The 3rd unit test fails due to StrPos giving a access violation.  I  
ran this same unit test under Delphi 7 and it passed as StrPos  
returned a nil value when passing two '' param values.


Has this been reported as a bug yet?


No. I've fixed it and added a test. You can check whether something  
has been reported as a bug by going to

  http://www.freepascal.org/bugs.html

If possible, a copy of your unit tests would be nice addition to our  
test suite.



Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] PR: What sites to spam for 2.0.2 release?

2005-12-09 Thread Dr. Karl-Michael Schindler

Dear Tom,

I agree in general. However, I suggest to wait with the announcements  
in the Mac channels until fpc 2.0.2 is available through fink. I am  
just getting it together and It should be done in short time, one  
maybe two weeks from now. The .dmg package should be mentioned as well.


Am 09.12.2005 um 14:26 schrieb Tom Verhoeff:


On Wed, Dec 07, 2005 at 11:33:03PM +0100, Daniël Mantione wrote:


Speaking of PR, we have a 2.0.2 to announce within a very short  
time and

we better do it well. We won't be able to do a Slashdot or OSnews
announcement, nevertheless we should take these opportunities to  
promote

FPC.

So, any ideas what sites we should spam? I'm looking for developer  
focused

sites. Pascal/Delphi related sites are welcome, but remember we are
already quite famous in that world. We need generic open source  
related

sites.


If the Mac OS X support is "directly available out of the box" (rather
than: depending on the kindness of some soul in the community after  
the

release is made public), then I suggest that it is also announced at



They also carry the announcements of every REALbasic release.  I  
volunteer

to send the message, if you prompt me in time.

And, I might get something to be published in www.tidbits.com/>.


Tom
--
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] PR: What sites to spam for 2.0.2 release?

2005-12-09 Thread Daniël Mantione


Op Fri, 9 Dec 2005, schreef Dr. Karl-Michael Schindler:

> Dear Tom,
> 
> I agree in general. However, I suggest to wait with the announcements in the
> Mac channels until fpc 2.0.2 is available through fink. I am just getting it
> together and It should be done in short time, one maybe two weeks from now.
> The .dmg package should be mentioned as well.

It is IMHO not so good to sent an announcement one or two weeks after a 
package has been released, it is old news then, sites may not cover it 
anymore. People can download MacOS releases directly from us, which 
should be enough for announcement, right? You can put in the announcement 
that it will be available from fink shortly.

By the way, no critics to you as you didn't know, but the source code has 
already been frozen for weeks, it may be possible to start the fink 
release process earlier.

Daniël___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] StrPos giving a access violation

2005-12-09 Thread Marc Weustink

Graeme Geldenhuys wrote:

Hi,

The 3rd unit test fails due to StrPos giving a access violation.  I ran 
this same unit test under Delphi 7 and it passed as StrPos returned a 
nil value when passing two '' param values.


Has this been reported as a bug yet?


-  CUT  ---
var
  lFrom: string;
  lSearch: string;
  lResult: PChar;
begin
  lFrom   := 'abc';
  lSearch := 'b';
  lResult := StrPos(Pointer(lFrom), Pointer(lSearch));


Eeeeuwww

StrPos is expecting 2 PChar params and not a Pointer.
Please use PChar(lFrom) and PChar(lSearch) to let the compiler make the 
proper string to PChar conversion.

You never ever can cast a string to a pchar using Pointer()

Marc




  AssertEquals('Failing on 1', 'bc', string(lResult));

  lSearch := 'x';
  lResult := StrPos(Pointer(lFrom), Pointer(lSearch));
  AssertEquals('Failing on 2', '', string(lResult));

  lFrom   := '';
  lSearch := '';
  lResult := StrPos(Pointer(lFrom), Pointer(lSearch));
  AssertEquals('Failing on 3', '', string(lResult));

-  END  ---


Regards,
  - Graeme -






___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel



___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Access Violation with nested DLL's compiled by FPC (and some more info on bug #4538)

2005-12-09 Thread Marc Weustink

Stefan van den Berg wrote:

Hi,

I've already asked about this on the community forums on the 
freepascal.org site and opened a bug on the bugtracker (bugID #4538). 
But none of those show any progress on a solution to the problem I'm 
having.


First a little backstory: I'm currently, as part of an internship, 
porting an application written in Delphi 6 to Free Pascal/Lazarus. The 
application consists of a main executable and a bunch of (23, to be 
exact) DLL's. The app uses some of these DLL's and some other are used 
by the DLL's themselves. To make this more clear, I've schematically 
illustrated the situation below.


Main-app
/  |  \
   dll2-   |   --dll1
   /   |   \
  dll3-   dll3  -dll2
   \
-dll3

Dll3 could, for example, be a library which is responsible for logging 
(debug)messages to a file on disk.


Right now I've come to the point where every individual part seems to do 
what it should do. But when testing the whole package, I came across a 
problem, which at first i thought to be a bug in our code. But after 
some debugging and after testing with a bunch of simple testcases I 
concluded that my problem might be caused by a bug in FPC itself.


The problem is this: When the app calls a function in dll1, which calls 
a function in dll2, which calls a function in dll3, an AccessViolation 
is thrown when calling the function in dll3.


This problem is blocking further porting efforts, So you can guess that 
I'd really like to see this resolved.


What I'd like to ask is, am I doing something wrong? If so, what is it 
I'm doing wrong? If not, can anybody confirm the bug (if there is one) 
and maybe give a possible ETA for a fix.


Before we can say something, what functions do you call, what params, 
what calling convention etc.
Does it happen in one specific sequence of calls, to specific 
functions/methods etc.


Please provide some more info.

Marc

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] SysUtils.ExtractFileDrive inconsistent

2005-12-09 Thread Peter Vreman
> Hi
>
> I am busy porting a Delphi application to Free Pascal & Lazarus.
> Luckily I have a 1400 unit tests to help me along.  Running the
> following unit test under Lazarus & Delphi produces different results!
> It fails under Free Pascal.  I traced the difference to the
> ExtractFileDrive call.  Under Delphi it returns 'c:' and under FPC it
> returns ''.  This was all run under Windows 2000 and FPC 2.0.1

Please report bugs and incompatibilities in the bug repository with
complete source codes to reproduce. Reports mailed to the mailinglist tend
to be forgotten.



___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Access Violation with nested DLL's compiled by FPC (and some more info on bug #4538)

2005-12-09 Thread Jonas Maebe


On 9 dec 2005, at 16:03, Marc Weustink wrote:

Before we can say something, what functions do you call, what  
params, what calling convention etc.
Does it happen in one specific sequence of calls, to specific  
functions/methods etc.


Please provide some more info.


http://www.freepascal.org/bugs/showsource.php3?ID=4538


Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Access Violation with nested DLL's compiled by FPC (and some more info on bug #4538)

2005-12-09 Thread Marc Weustink

Jonas Maebe wrote:


On 9 dec 2005, at 16:03, Marc Weustink wrote:

Before we can say something, what functions do you call, what  params, 
what calling convention etc.
Does it happen in one specific sequence of calls, to specific  
functions/methods etc.


Please provide some more info.



http://www.freepascal.org/bugs/showsource.php3?ID=4538


Whoops, I didn't saw that there was a bugrep.

I'm not shure if FPC behaves the same as Delphi, but I think it does.

In Delphi you cannot exchange ansistrings between dlls, unless you have 
a shared memory manager. Normally each exe (or dll) has its own memory 
manager. So when you pass a string to a dll and it it goes out of scope 
there (since it is changed) it is released there. So a allocated memory 
block from one manager is freed in another. This gives all kinds of 
unexpected errors at strange places.


IIRC the way constant strings are allocates it changed, so that may be 
the reason that you didn't see the error on dlls generated by an older fpc.


Marc

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] PR: What sites to spam for 2.0.2 release?

2005-12-09 Thread Graeme Geldenhuys

Daniël Mantione wrote:
So, any ideas what sites we should spam? I'm looking for developer focused 
sites. Pascal/Delphi related sites are welcome, but remember we are 


You can also try: look under the "PR material" heading for contact details.

http://www.tectonic.co.za/default.php?action=contact



http://www.tectonic.co.za/index.php
Tectonic -- Linux and open source news


G.



___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel