Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Unsafe pointer variables, parameters or consts only allowed in unsafe procedure (E2410)

7 posts in DelphidotNet Last posting was on 2005-07-27 21:26:27.0Z
Bill Ross Posted on 2005-07-24 07:39:18.0Z
Reply-To: "Bill Ross" <norisksoftware@hotmail.com>
From: "Bill Ross" <BillRoss@norisksoftware.com>
Newsgroups: Advantage.DelphidotNet
Subject: Unsafe pointer variables, parameters or consts only allowed in unsafe procedure (E2410)
Date: Sun, 24 Jul 2005 02:39:18 -0500
Lines: 16
Organization: No Risk Software Inc
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-Antivirus: avast! (VPS 0529-2, 07/21/2005), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 64.178.245.163
Message-ID: <42e3bc30@solutions.advantagedatabase.com>
X-Trace: 24 Jul 2005 10:05:04 -0700, 64.178.245.163
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!64.178.245.163
Xref: solutions.advantagedatabase.com Advantage.DelphidotNet:54
Article PK: 1108490

In Delphi 2005, I try to build my program and it stops in Ace.pas at

function AdsAtBOF( hTable: ADSHANDLE;
pbBof: pWord ):UNSIGNED32; {$IFDEF
WIN32}stdcall;{$ENDIF}{$IFDEF LINUX}cdecl;{$ENDIF}

And gives the message:

Unsafe pointer variables, parameters or consts only allowed in unsafe
procedure (E2410)

?

Bill Ross


J.D. Mullin Posted on 2005-07-25 22:02:03.0Z
From: "J.D. Mullin" <no@email.com>
Newsgroups: Advantage.DelphidotNet
References: <42e3bc30@solutions.advantagedatabase.com>
Subject: Re: Unsafe pointer variables, parameters or consts only allowed in unsafe procedure (E2410)
Date: Mon, 25 Jul 2005 16:02:03 -0600
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 198.102.102.35
Message-ID: <42e56303@solutions.advantagedatabase.com>
X-Trace: 25 Jul 2005 16:09:07 -0700, 198.102.102.35
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!198.102.102.35
Xref: solutions.advantagedatabase.com Advantage.DelphidotNet:55
Article PK: 1108489

Are you building a .net application or a win32 application? If it's a .net
app and your application directly reference ACE, then that's the correct
error message. It looks like it's getting the win32 version of ace.pas, not
the .net version.

If your application directly references ace you will need to add the
following two items to your project options in the Directories/Conditionals
"Namespace prefixes" section:

Advantage.Delphi;Advantage.Vcl

--
J.D. Mullin
Advantage R&D
--

"Bill Ross" <BillRoss@norisksoftware.com> wrote in message
news:42e3bc30@solutions.advantagedatabase.com...
> In Delphi 2005, I try to build my program and it stops in Ace.pas at
>
> function AdsAtBOF( hTable: ADSHANDLE;
> pbBof: pWord ):UNSIGNED32; {$IFDEF
> WIN32}stdcall;{$ENDIF}{$IFDEF LINUX}cdecl;{$ENDIF}
>
> And gives the message:
>
> Unsafe pointer variables, parameters or consts only allowed in unsafe
> procedure (E2410)
>
> ?
>
> Bill Ross
>


Bill Ross Posted on 2005-07-25 23:39:22.0Z
Reply-To: "Bill Ross" <norisksoftware@hotmail.com>
From: "Bill Ross" <BillRoss@norisksoftware.com>
Newsgroups: Advantage.DelphidotNet
References: <42e3bc30@solutions.advantagedatabase.com> <42e56303@solutions.advantagedatabase.com>
Subject: Re: Unsafe pointer variables, parameters or consts only allowed in unsafe procedure (E2410)
Date: Mon, 25 Jul 2005 18:39:22 -0500
Lines: 45
Organization: No Risk Software Inc
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-Antivirus: avast! (VPS 0530-0, 07/25/2005), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 64.178.245.163
Message-ID: <42e579d8@solutions.advantagedatabase.com>
X-Trace: 25 Jul 2005 17:46:32 -0700, 64.178.245.163
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!64.178.245.163
Xref: solutions.advantagedatabase.com Advantage.DelphidotNet:56
Article PK: 1108491

That was it. Thanks.

Bill Ross

"J.D. Mullin" <no@email.com> wrote in message
news:42e56303@solutions.advantagedatabase.com...
> Are you building a .net application or a win32 application? If it's a .net
> app and your application directly reference ACE, then that's the correct
> error message. It looks like it's getting the win32 version of ace.pas,
> not the .net version.
>
> If your application directly references ace you will need to add the
> following two items to your project options in the
> Directories/Conditionals "Namespace prefixes" section:
>
> Advantage.Delphi;Advantage.Vcl
>
> --
> J.D. Mullin
> Advantage R&D
> --
> "Bill Ross" <BillRoss@norisksoftware.com> wrote in message
> news:42e3bc30@solutions.advantagedatabase.com...
>> In Delphi 2005, I try to build my program and it stops in Ace.pas at
>>
>> function AdsAtBOF( hTable: ADSHANDLE;
>> pbBof: pWord ):UNSIGNED32; {$IFDEF
>> WIN32}stdcall;{$ENDIF}{$IFDEF LINUX}cdecl;{$ENDIF}
>>
>> And gives the message:
>>
>> Unsafe pointer variables, parameters or consts only allowed in unsafe
>> procedure (E2410)
>>
>> ?
>>
>> Bill Ross
>>
>
>


Bill Ross Posted on 2005-07-26 01:38:02.0Z
Reply-To: "Bill Ross" <norisksoftware@hotmail.com>
From: "Bill Ross" <BillRoss@norisksoftware.com>
Newsgroups: Advantage.DelphidotNet
References: <42e3bc30@solutions.advantagedatabase.com> <42e56303@solutions.advantagedatabase.com>
Subject: Re: Unsafe pointer variables, parameters or consts only allowed in unsafe procedure (E2410)
Date: Mon, 25 Jul 2005 20:38:02 -0500
Lines: 45
Organization: No Risk Software Inc
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-Antivirus: avast! (VPS 0530-0, 07/25/2005), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 64.178.245.163
Message-ID: <42e5971c@solutions.advantagedatabase.com>
X-Trace: 25 Jul 2005 19:51:24 -0700, 64.178.245.163
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!64.178.245.163
Xref: solutions.advantagedatabase.com Advantage.DelphidotNet:57
Article PK: 1108492

Do I add the path to both the WIN32 and DOTNET in my project options for all
projects or should I make sure the right one is in there?

Bill Ross

"J.D. Mullin" <no@email.com> wrote in message
news:42e56303@solutions.advantagedatabase.com...
> Are you building a .net application or a win32 application? If it's a .net
> app and your application directly reference ACE, then that's the correct
> error message. It looks like it's getting the win32 version of ace.pas,
> not the .net version.
>
> If your application directly references ace you will need to add the
> following two items to your project options in the
> Directories/Conditionals "Namespace prefixes" section:
>
> Advantage.Delphi;Advantage.Vcl
>
> --
> J.D. Mullin
> Advantage R&D
> --
> "Bill Ross" <BillRoss@norisksoftware.com> wrote in message
> news:42e3bc30@solutions.advantagedatabase.com...
>> In Delphi 2005, I try to build my program and it stops in Ace.pas at
>>
>> function AdsAtBOF( hTable: ADSHANDLE;
>> pbBof: pWord ):UNSIGNED32; {$IFDEF
>> WIN32}stdcall;{$ENDIF}{$IFDEF LINUX}cdecl;{$ENDIF}
>>
>> And gives the message:
>>
>> Unsafe pointer variables, parameters or consts only allowed in unsafe
>> procedure (E2410)
>>
>> ?
>>
>> Bill Ross
>>
>
>


J.D. Mullin Posted on 2005-07-26 19:06:33.0Z
From: "J.D. Mullin" <no@email.com>
Newsgroups: Advantage.DelphidotNet
References: <42e3bc30@solutions.advantagedatabase.com> <42e56303@solutions.advantagedatabase.com> <42e5971c@solutions.advantagedatabase.com>
Subject: Re: Unsafe pointer variables, parameters or consts only allowed in unsafe procedure (E2410)
Date: Tue, 26 Jul 2005 13:06:33 -0600
Lines: 55
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 198.102.102.35
Message-ID: <42e68b83@solutions.advantagedatabase.com>
X-Trace: 26 Jul 2005 13:14:11 -0700, 198.102.102.35
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!198.102.102.35
Xref: solutions.advantagedatabase.com Advantage.DelphidotNet:59
Article PK: 1108493

I'm not sure I understand your question.

--
J.D. Mullin
Advantage R&D
--

"Bill Ross" <BillRoss@norisksoftware.com> wrote in message
news:42e5971c@solutions.advantagedatabase.com...
> Do I add the path to both the WIN32 and DOTNET in my project options for
> all projects or should I make sure the right one is in there?
>
> Bill Ross
>
>
>
> "J.D. Mullin" <no@email.com> wrote in message
> news:42e56303@solutions.advantagedatabase.com...
>> Are you building a .net application or a win32 application? If it's a
>> .net app and your application directly reference ACE, then that's the
>> correct error message. It looks like it's getting the win32 version of
>> ace.pas, not the .net version.
>>
>> If your application directly references ace you will need to add the
>> following two items to your project options in the
>> Directories/Conditionals "Namespace prefixes" section:
>>
>> Advantage.Delphi;Advantage.Vcl
>>
>> --
>> J.D. Mullin
>> Advantage R&D
>> --
>> "Bill Ross" <BillRoss@norisksoftware.com> wrote in message
>> news:42e3bc30@solutions.advantagedatabase.com...
>>> In Delphi 2005, I try to build my program and it stops in Ace.pas at
>>>
>>> function AdsAtBOF( hTable: ADSHANDLE;
>>> pbBof: pWord ):UNSIGNED32; {$IFDEF
>>> WIN32}stdcall;{$ENDIF}{$IFDEF LINUX}cdecl;{$ENDIF}
>>>
>>> And gives the message:
>>>
>>> Unsafe pointer variables, parameters or consts only allowed in unsafe
>>> procedure (E2410)
>>>
>>> ?
>>>
>>> Bill Ross
>>>
>>
>>
>
>


Bill Ross Posted on 2005-07-26 19:23:17.0Z
Reply-To: "Bill Ross" <norisksoftware@hotmail.com>
From: "Bill Ross" <BillRoss@norisksoftware.com>
Newsgroups: Advantage.DelphidotNet
References: <42e3bc30@solutions.advantagedatabase.com> <42e56303@solutions.advantagedatabase.com> <42e5971c@solutions.advantagedatabase.com> <42e68b83@solutions.advantagedatabase.com>
Subject: Re: Unsafe pointer variables, parameters or consts only allowed in unsafe procedure (E2410)
Date: Tue, 26 Jul 2005 14:23:17 -0500
Lines: 70
Organization: No Risk Software Inc
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Response
X-Antivirus: avast! (VPS 0530-1, 07/26/2005), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 64.178.245.163
Message-ID: <42e68f76@solutions.advantagedatabase.com>
X-Trace: 26 Jul 2005 13:31:02 -0700, 64.178.245.163
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!64.178.245.163
Xref: solutions.advantagedatabase.com Advantage.DelphidotNet:61
Article PK: 1108495

In Delphi 2005
In Project Options (for my default for all applications)
What should I add for Advantage?
I know I need, for example, Namespace Advantage.VCL;Advantate.ACE.
Do I need the source path, for example, to the ..\Advantage\DOTNET and
..\Advantage\WIN32 directories?

Bill Ross

"J.D. Mullin" <no@email.com> wrote in message
news:42e68b83@solutions.advantagedatabase.com...
> I'm not sure I understand your question.
>
> --
> J.D. Mullin
> Advantage R&D
> --
> "Bill Ross" <BillRoss@norisksoftware.com> wrote in message
> news:42e5971c@solutions.advantagedatabase.com...
>> Do I add the path to both the WIN32 and DOTNET in my project options for
>> all projects or should I make sure the right one is in there?
>>
>> Bill Ross
>>
>>
>>
>> "J.D. Mullin" <no@email.com> wrote in message
>> news:42e56303@solutions.advantagedatabase.com...
>>> Are you building a .net application or a win32 application? If it's a
>>> .net app and your application directly reference ACE, then that's the
>>> correct error message. It looks like it's getting the win32 version of
>>> ace.pas, not the .net version.
>>>
>>> If your application directly references ace you will need to add the
>>> following two items to your project options in the
>>> Directories/Conditionals "Namespace prefixes" section:
>>>
>>> Advantage.Delphi;Advantage.Vcl
>>>
>>> --
>>> J.D. Mullin
>>> Advantage R&D
>>> --
>>> "Bill Ross" <BillRoss@norisksoftware.com> wrote in message
>>> news:42e3bc30@solutions.advantagedatabase.com...
>>>> In Delphi 2005, I try to build my program and it stops in Ace.pas at
>>>>
>>>> function AdsAtBOF( hTable: ADSHANDLE;
>>>> pbBof: pWord ):UNSIGNED32; {$IFDEF
>>>> WIN32}stdcall;{$ENDIF}{$IFDEF LINUX}cdecl;{$ENDIF}
>>>>
>>>> And gives the message:
>>>>
>>>> Unsafe pointer variables, parameters or consts only allowed in unsafe
>>>> procedure (E2410)
>>>>
>>>> ?
>>>>
>>>> Bill Ross
>>>>
>>>
>>>
>>
>>
>
>


J.D. Mullin Posted on 2005-07-27 21:26:27.0Z
From: "J.D. Mullin" <no@email.com>
Newsgroups: Advantage.DelphidotNet
References: <42e3bc30@solutions.advantagedatabase.com> <42e56303@solutions.advantagedatabase.com> <42e5971c@solutions.advantagedatabase.com> <42e68b83@solutions.advantagedatabase.com> <42e68f76@solutions.advantagedatabase.com>
Subject: Re: Unsafe pointer variables, parameters or consts only allowed in unsafe procedure (E2410)
Date: Wed, 27 Jul 2005 15:26:27 -0600
Lines: 97
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 198.102.102.35
Message-ID: <42e7fdbc@solutions.advantagedatabase.com>
X-Trace: 27 Jul 2005 15:33:48 -0700, 198.102.102.35
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!198.102.102.35
Xref: solutions.advantagedatabase.com Advantage.DelphidotNet:64
Article PK: 1108499

Our installation adds everything you will need. The only thing it doesn't
add are the namespace prefixes, but I think I'll ask Lance to add that to
the install for 8.0.

The only time you'll need to add them specifically is when porting existing
projects or when building the Advantage files directly into your
application.

A side-note since we are kind of on the topic:

Building the Advantage files directly into an application is the default in
Win32 applications (as opposed to using the runtime bpl), but in .NET
applications if you look at the "references" section of the project manager
you will see that the default behavior is to reference the rumtime DLLs. If
instead you still want to build our files directly into your project you
just need to remove the Advantage dll from the "references" list. If you do
this, you will then have to add the namespace prefixes to the project
options.

--
J.D. Mullin
Advantage R&D
--

"Bill Ross" <BillRoss@norisksoftware.com> wrote in message
news:42e68f76@solutions.advantagedatabase.com...
> In Delphi 2005
> In Project Options (for my default for all applications)
> What should I add for Advantage?
> I know I need, for example, Namespace Advantage.VCL;Advantate.ACE.
> Do I need the source path, for example, to the ..\Advantage\DOTNET and
> ..\Advantage\WIN32 directories?
>
> Bill Ross
>
>
>
> "J.D. Mullin" <no@email.com> wrote in message
> news:42e68b83@solutions.advantagedatabase.com...
>> I'm not sure I understand your question.
>>
>> --
>> J.D. Mullin
>> Advantage R&D
>> --
>> "Bill Ross" <BillRoss@norisksoftware.com> wrote in message
>> news:42e5971c@solutions.advantagedatabase.com...
>>> Do I add the path to both the WIN32 and DOTNET in my project options for
>>> all projects or should I make sure the right one is in there?
>>>
>>> Bill Ross
>>>
>>>
>>>
>>> "J.D. Mullin" <no@email.com> wrote in message
>>> news:42e56303@solutions.advantagedatabase.com...
>>>> Are you building a .net application or a win32 application? If it's a
>>>> .net app and your application directly reference ACE, then that's the
>>>> correct error message. It looks like it's getting the win32 version of
>>>> ace.pas, not the .net version.
>>>>
>>>> If your application directly references ace you will need to add the
>>>> following two items to your project options in the
>>>> Directories/Conditionals "Namespace prefixes" section:
>>>>
>>>> Advantage.Delphi;Advantage.Vcl
>>>>
>>>> --
>>>> J.D. Mullin
>>>> Advantage R&D
>>>> --
>>>> "Bill Ross" <BillRoss@norisksoftware.com> wrote in message
>>>> news:42e3bc30@solutions.advantagedatabase.com...
>>>>> In Delphi 2005, I try to build my program and it stops in Ace.pas at
>>>>>
>>>>> function AdsAtBOF( hTable: ADSHANDLE;
>>>>> pbBof: pWord ):UNSIGNED32; {$IFDEF
>>>>> WIN32}stdcall;{$ENDIF}{$IFDEF LINUX}cdecl;{$ENDIF}
>>>>>
>>>>> And gives the message:
>>>>>
>>>>> Unsafe pointer variables, parameters or consts only allowed in unsafe
>>>>> procedure (E2410)
>>>>>
>>>>> ?
>>>>>
>>>>> Bill Ross
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>