473,396 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Strange problem

We are developing a 3-tierd app.
I am passing a an array of structures from the the first
tier to the second
it was working fine until suddenly I m getting compiler
error (BC30332)

Value of type '1-dimensional array of
stc_ADM_Product_InsertXXX' cannot be converted to '1-
dimensional array of stc_ADM_Product_InsertXXX' ' because
stc_ADM_Product_InsertXXX' ' is not derived
from 'stc_ADM_Product_InsertXXX'
The strange thing is I m not trying to convert one type to
other...I m calling a function whole parameter signatures
are of same type(Structures)

This is similar to saying an integer cannot be converted
to an integer...

Any comments???

Nov 22 '05 #1
4 2185
Feroz <fe***@daatatech.com> wrote:
We are developing a 3-tierd app.
I am passing a an array of structures from the the first
tier to the second
it was working fine until suddenly I m getting compiler
error (BC30332)

Value of type '1-dimensional array of
stc_ADM_Product_InsertXXX' cannot be converted to '1-
dimensional array of stc_ADM_Product_InsertXXX' ' because
stc_ADM_Product_InsertXXX' ' is not derived
from 'stc_ADM_Product_InsertXXX'

The strange thing is I m not trying to convert one type to
other...I m calling a function whole parameter signatures
are of same type(Structures)

This is similar to saying an integer cannot be converted
to an integer...

Any comments???


Is the type stc_ADM_Product_InsertXXX available from two different
assemblies, by any chance? I can't immediately think how that would
give a *compile* time error, but it may well be something to do with
it...

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #2
I have this common assembly(Dll) which defines only
structures..which I refer at the 1st tier and the 2nd
Tier.. so both share the same assembly.....
-----Original Message-----
Feroz <fe***@daatatech.com> wrote:
We are developing a 3-tierd app.
I am passing a an array of structures from the the first tier to the second
it was working fine until suddenly I m getting compiler error (BC30332)

Value of type '1-dimensional array of
stc_ADM_Product_InsertXXX' cannot be converted to '1-
dimensional array of stc_ADM_Product_InsertXXX' ' because stc_ADM_Product_InsertXXX' ' is not derived
from 'stc_ADM_Product_InsertXXX'

The strange thing is I m not trying to convert one type to other...I m calling a function whole parameter signatures are of same type(Structures)

This is similar to saying an integer cannot be converted to an integer...

Any comments???
Is the type stc_ADM_Product_InsertXXX available from two

differentassemblies, by any chance? I can't immediately think how that wouldgive a *compile* time error, but it may well be something to do withit...

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.

Nov 22 '05 #3
Feroz <an*******@discussions.microsoft.com> wrote:
I have this common assembly(Dll) which defines only
structures..which I refer at the 1st tier and the 2nd
Tier.. so both share the same assembly.....


Are you absolutely sure that you've only got one copy of that DLL? If
it's the same DLL but in two different places, that could also be a
problem.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #4
well .NET copies the Dlls it refers in the projects Bin
directory...so we do have multiple dlls of the same
assebly.. but the error it flags is confusing...
I juggled with the build order and got things working...
but still I m not very clear why the compliler flags such
an error..
any ways thanks fr your replies..



-----Original Message-----
Feroz <an*******@discussions.microsoft.com> wrote:
I have this common assembly(Dll) which defines only
structures..which I refer at the 1st tier and the 2nd
Tier.. so both share the same assembly.....
Are you absolutely sure that you've only got one copy of

that DLL? Ifit's the same DLL but in two different places, that could also be aproblem.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.

Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Rob Ristroph | last post by:
Hi, It's pretty unhelpful to post "I have a huge piece of code that crashes in strange places, what's the problem?" but that's basically my problem and I really am at my wit's end. The piece...
2
by: Paul Drummond | last post by:
Hi all, I am developing software for Linux Redhat9 and I have noticed some very strange behaviour when throwing exceptions within a shared library. All our exceptions are derived from...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
2
by: TB | last post by:
I am seeing a very strange problem as follows... I have a loop where a fair amount of processing is going on and near the top of the loop I access a class that has only static helper functions...
1
by: Sam Kong | last post by:
Hello! Recently I had a strange problem with Visual C# 2005 beta 1. When I ran(F5 key) a program, <#if DEBUG> statement was not working. It ran as RELEASE mode. So I had to manually define...
8
by: Spam Trap | last post by:
I am getting strange resizing problems when using an inherited form. Controls are moving themselves seemingly randomly, but reproducibly. "frmBase" is my base class (a windows form), and...
11
by: Martin Joergensen | last post by:
Hi, I've encountered a really, *really*, REALLY strange error :-) I have a for-loop and after 8 runs I get strange results...... I mean: A really strange result.... I'm calculating...
12
by: StephQ | last post by:
I have a class Bounds with two constructors: class Bounds { private: list<SegmentupperLinearSpline; // Upper bound. list<SegmentlowerLinearSpline; // Lower bound. ....
8
by: Dox33 | last post by:
I ran into a very strange behaviour of raw_input(). I hope somebody can tell me how to fix this. (Or is this a problem in the python source?) I will explain the problem by using 3 examples....
5
by: ioni | last post by:
Good day, fellows! I have a strange problem – at my site there is a flash strip, that loads data dynamically. It works fine (grabs data from the remote server and presents it), however in IE7...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.