[Lazarus] GDB is not good, any tricks to improve it?

2016-05-25 Thread Dennis

I am using Lazarus 1.7 (2016-04-20) with FPC 3.1.1

Great Work guys!

However, the gdb that comes with it is not as good.  I know debugger is 
hard to write so I am not blaming it.
I just hope someone can share some tips or settings tricks that I can, 
perhaps, make it work better?


e.g. it is very slow and its speed is not stable.
Sometimes, it is extremely slow or even stall the execution of the main 
program.  But when I delete all breakpoints and restart it and add back 
the breakpoints, it runs faster.


I am hoping people can share this kind of tips.

Anyone?

Dennis

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Write to UNC or mapped drive

2016-05-25 Thread Marc Weustink


On May 25, 2016 8:58:11 PM GMT+02:00, "Santiago A."  wrote:
>El 24/05/2016 a las 21:46, Leonardo M. Ramé escribió:
>> Hi, My app is a CGI running on Windows2012 (IIS 7.0), it needs to
>save
>> a file to a remote UNC or Mapped drive, but when I check using
>> DirectoryExists in both cases I get False, but of course the UNC and
>> mapped drive exists.
>>
>> Any hint?.
>>
>> Regards,
>Not sure 100%, but I think that mapped drives only work  when a user
>opens a desktop session. Services don't know about mapped drives. Think
>of it, in the same server, different users may map the same network
>resource with a different letter.

Correct. Drivemappings are user specific. You get the same if you want to run 
something as administrator from a mapping.


>Instead of mapped drives I think you should use \\server\resource, and
>the user who runs the service that calls the CGI must have permission
>on
>that resource. If the service is run as "Local system", I don't know
>how
>to grant permission in a remote machine.

Depends on windows version, iirc on modern versions local system (or was it 
local service) it has no network access

Marc


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] 1.6.0-fpc-3.0.0-win64.exe

2016-05-25 Thread wkitty42

On 05/25/2016 01:47 PM, Larry Dalton wrote:

I have been using 1.2.4 win32 because of a printer issue when trying to use
the  64 bit compiler. Are there any printer issues with the new version?


you need to be more specific... what, exactly, do you mean by ""printer 
issue""??

--
 NOTE: No off-list assistance is given without prior approval.
   *Please keep mailing list traffic on the list* unless
   private contact is specifically requested and granted.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] 1.6.0-fpc-3.0.0-win64.exe

2016-05-25 Thread Larry Dalton
I have been using 1.2.4 win32 because of a printer issue when trying to use the 
 64 bit compiler. Are there any printer issues with the new version?

Sent from my iPhone
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Write to UNC or mapped drive

2016-05-25 Thread Santiago A.
El 24/05/2016 a las 21:46, Leonardo M. Ramé escribió:
> Hi, My app is a CGI running on Windows2012 (IIS 7.0), it needs to save
> a file to a remote UNC or Mapped drive, but when I check using
> DirectoryExists in both cases I get False, but of course the UNC and
> mapped drive exists.
>
> Any hint?.
>
> Regards,
Not sure 100%, but I think that mapped drives only work  when a user
opens a desktop session. Services don't know about mapped drives. Think
of it, in the same server, different users may map the same network
resource with a different letter.

Instead of mapped drives I think you should use \\server\resource, and
the user who runs the service that calls the CGI must have permission on
that resource. If the service is run as "Local system", I don't know how
to grant permission in a remote machine.

-- 
Saludos

Santiago A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Write to UNC or mapped drive

2016-05-25 Thread Denis Kozlov
On 24 May 2016 at 20:46, Leonardo M. Ramé  wrote:

> Hi, My app is a CGI running on Windows2012 (IIS 7.0), it needs to save a
> file to a remote UNC or Mapped drive, but when I check using
> DirectoryExists in both cases I get False, but of course the UNC and mapped
> drive exists.
>

Does it fail only for the root UNC path but works for a path that contains
a folder component?

DirectoryExists internally uses GetFileAttributes WinAPI, which states:

> If you call GetFileAttributes for a network share, the function fails, and
> GetLastError returns ERROR_BAD_NETPATH. You must specify a path to a
> subfolder on that share.

https://msdn.microsoft.com/en-us/library/windows/desktop/aa364944%28v=vs.85%29.aspx

Denis
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus