473,396 Members | 2,013 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.

trouble with C-written application and UDF on 64-bit Windows

We have some trouble with C-written application and UDF on 64-bit
Windows ...

Given the following production environment:

- Windows 2003 Server on AMD64
- Microsoft C/C++ Compiler of Visual Studio 9.0 Express Edition (looks
like 32-bit only)
- DB2 V8.2 and multiple instances of DB2 V9.1 installed and running

After successfully compiling and linking (against 32-bit libraries of
DB2 V9.1) the application tblinfo (which can be found in DB2 c-
samples), running the program tblinfo.exe ends with SQL-error -1390:
DB2INSTANCE variable is not set.

We are pretty sure, that DB2INSTANCE is set to a valid DB2 V9.1
instance. Even calling "sqleatin" to attach to a DB2-instance ends
with SQL-error -1390.

What about the default DB2 installation instance, since DB2 V8.2 is
also installed on the server, the default DB2-instance cannot be
switched to any V9.1 instance.

Can anybody help us to fix that problem?

By the way, when running a copy of that tblinfo.exe on another Windows
2003 Server on AMD64 without a DB2 V8.2 instance, it runs perfect. And
it (the same tblinfo.exe) also runs perfect on Windows 32-bit Intel
computer.

But our final target is to deploy a C-written UDF on the above
described environment. Guess what happens ...

- UDF works perfect on Windows 32-bit Intel computer
- DB2 instance crashes with memory error on AMD64 computer when using
that UDF

What could be the reason for the instance crash with the UDF ...

- problem with DB2INSTANCE or default instance caused by DB2 V8.2 on
the same server
- problem caused by running a 32-bit DLL on a 64-bit environemt (a 32-
bit EXE runs on 64-bit)

Thanks for any comments.
Jul 23 '08 #1
1 2399
On Jul 23, 3:22*am, c.splittger...@listec.de wrote:
We have some trouble with C-written application and UDF on 64-bit
Windows ...

Given the following production environment:

- Windows 2003 Server on AMD64
- Microsoft C/C++ Compiler of Visual Studio 9.0 Express Edition (looks
like 32-bit only)
- DB2 V8.2 and multiple instances of DB2 V9.1 installed and running

After successfully compiling and linking (against 32-bit libraries of
DB2 V9.1) the application tblinfo (which can be found in DB2 c-
samples), running the program tblinfo.exe ends with SQL-error -1390:
DB2INSTANCE variable is not set.

We are pretty sure, that DB2INSTANCE is set to a valid DB2 V9.1
instance. Even calling "sqleatin" to attach to a DB2-instance ends
with SQL-error -1390.

What about the default DB2 installation instance, since DB2 V8.2 is
also installed on the server, the default DB2-instance cannot be
switched to any V9.1 instance.

Can anybody help us to fix that problem?

By the way, when running a copy of that tblinfo.exe on another Windows
2003 Server on AMD64 without a DB2 V8.2 instance, it runs perfect. And
it (the same tblinfo.exe) also runs perfect on Windows 32-bit Intel
computer.

But our final target is to deploy a C-written UDF on the above
described environment. Guess what happens ...

- UDF works perfect on Windows 32-bit Intel computer
- DB2 instance crashes with memory error on AMD64 computer when using
that UDF

What could be the reason for the instance crash with the UDF ...

- problem with DB2INSTANCE or default instance caused by DB2 V8.2 on
the same server
- problem caused by running a 32-bit DLL on a 64-bit environemt (a 32-
bit EXE runs on 64-bit)

Thanks for any comments.
Jul 24 '08 #2

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

Similar topics

4
by: Jacek Dziedzic | last post by:
Hi! First of all, I hope my problem is not too loosely tied to the "standard C++" that is the topic of this group. I have some code that exhibits a strange behaviour: on one computer, where I...
0
by: Paul C | last post by:
Hello, everybody. I am having trouble running some of the VS.NET samples, specifically the CarSelector web app, which is very simple. The symptom is that the web controls (drop down listboxes and...
0
by: Alexandre Jaquet | last post by:
Hi does anybody know how to solve my trouble, when I try to create a MS Office project I always got trouble. I can't create office project when I try to create one vs.net restart ... :s
2
by: Jeff | last post by:
/* -------------------------------------------------------------------------- Hello, I was experimenting with class templates and specializing member functions and came across a simple problem...
1
by: ajackson | last post by:
i am having some trouble installing SQl server Reporting Services. well, in order to install the reporting services i have to install Service Pack 3a. so through my installation of package 3a i...
7
by: slashdotcommacolon | last post by:
Hello, I'm working on the exercises from k&r, exercise 5-13 is to implement a simple replacement for the unix tail command. The brief says it should be able to cope no matter how unreasonable the...
0
by: cwbp17 | last post by:
I'm having trouble updating individual datagrid cells. Have two tables car_master (columns include Car_ID, YEAR,VEHICLE) and car_detail (columns include Car_ID,PRICE,MILEAGE,and BODY);both tables...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
2
by: JLupear | last post by:
I am having trouble with my code again, I had prepared a question and the code to upload, however I am having trouble posting it, are there limits to the amount of lines you can post? I split it...
0
by: mrchatgroup | last post by:
news from http://www.mrchat.net/myblog/myblog/small-accidents-mean-big-trouble-for-supercollider.html Small Accidents Mean Big Trouble for Supercollider Image Scientists expect startup...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.