activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: can amq-dotnet build by .net framework1.1 (vs2003)
Date Wed, 19 Jul 2006 07:39:22 GMT
Are there any C# or .Net experts around who can explain that error
message. I guess it wants us to use the SizeOf method instead for some
reason. Should be an easy patch to make

I've created this JIRA to track this...

http://issues.apache.org/activemq/browse/AMQ-830


On 7/19/06, Matthew Xie <ant_miracle@163.com> wrote:
>
>
> James.Strachan wrote:
> >
> > Could you post the error you get please? I'm sure we can fix it pretty
> > quickly.
> >
> > --
> >
> > James
> > -------
> > http://radio.weblogs.com/0112098/
> >
> >
>
> I use Nant to build the amq .net src code.
> the following are the error messages:
>
> create-common-assemblyinfo:
>
>    [attrib] Setting file attributes for 1 files to Normal.
>   [asminfo] Generated file
> 'F:\amq-net\src\main\csharp\CommonAssemblyInfo.cs'.
>    [attrib] Setting file attributes for 1 files to Normal.
>   [asminfo] Generated file
> 'F:\amq-net\src\test\csharp\CommonAssemblyInfo.cs'.
>
> build-main:
>
>      [echo] Build Directory is
> F:\amq-net/build/net-1.1.win32/activemq-dotnet-4.
> 0-debug
>       [csc] Compiling 176 files to
> 'F:\amq-net\build\net-1.1.win32\activemq-dotn
> et-4.0-debug\bin\activemq-dotnet.dll'.
>       [csc]
> f:\amq-net\src\main\csharp\ActiveMQ\Commands\ActiveMQTextMessage.cs(
> 61,61): error CS0233: sizeof 只能用于不安全的上下文中(考虑使用
> System.Runtime.InteropServices.Marshal.SizeOf)
>       [csc]
> f:\amq-net\src\main\csharp\ActiveMQ\Commands\ActiveMQTextMessage.cs(
> 64,54): error CS0233: sizeof 只能用于不安全的上下文中(考虑使用
> System.Runtime.InteropServices.Marshal.SizeOf)
>
> BUILD FAILED
>
> Note: I am using os of chinese version. so here I try to translate it as
> follows.
>
> [csc] f:\amq-net\src\main\csharp\ActiveMQ\Commands\ActiveMQTextMessage.cs(
> 64,54): error CS0233: sizeof is used under unsafe context(here we recommend
> to use System.Runtime.InteropServices.Marshal.SizeOf)
>
> Thanks James!
>
> Matt
> --
> View this message in context: http://www.nabble.com/can-amq-dotnet-build-by-.net-framework1.1-%28vs2003%29-tf1958469.html#a5389861
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/
Mime
View raw message