473,412 Members | 2,306 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,412 software developers and data experts.

Problem converting application from VS2003 to VS2005

KJ
Hi!

I recently converted an application from VS2003 to VS2005.
The application consists of a main 'unmanaged C++ executable' which
calls a managed C++ .dll. The .dll basically launches a separate
form.
The application use to work fine in VS2003. Now that I have converted
to VS2005 the main executable is working but an exception gets
thrown when it trys to call the .dll (basically the new separate
form
never launches). The .dll was compiled with (/clr:oldSyntax).
I put a breakpoint in the constructor code of the .dll but it never
reaches it.
This is the exception that gets thrown:
File: dbgheap.c
Line: 1414
Expression: _CrtIsValidHeapPointer(pUserData)
I click on Retry and it triggers a breakpoint at
if ( (oldsize = _msize_crt(*pbegin)) <= (size_t)((char *)(*pend) -
(char *)(*pbegin)) )
This is the call stack:
msvcr80d.dll!_msize_dbg(void * pUserData=0x1ba3922e, int nBlockUse=2)
Line 1414 + 0x30 bytes C++
msvcr80d.dll!_dllonexit_nolock(int (void)* func=0x1005ef90, void
(void)* * * pbegin=0x0012cb88, void (void)* * * pend=0x0012cb80)
Line
295 + 0xd bytes C
msvcr80d.dll!__dllonexit(int (void)* func=0x1005ef90, void (void)* *
*
pbegin=0x0012cb88, void (void)* * * pend=0x0012cb80) Line 273 + 0x11
bytes C
MultiSegmentFilter.dll!_onexit(int (void)* func=0x1005ef90) Line 110
+ 0x11 bytes C
MultiSegmentFilter.dll!atexit(void (void)* func=0x1005ef90) Line 127
+ 0x9 bytes C
MultiSegmentFilter.dll!`dynamic initializer for 'g_Allocator''()
Line
23 + 0x17 bytes C++
[External Code]
[Frames below may be incorrect and/or missing, no symbols loaded for
mscorwks.dll]
ntdll.dll!7c926a44()
kernel32.dll!7c83971e()
ntdll.dll!7c91b686()
....
ntdll.dll!7c91056d()
mscoree.dll!7901fa44()
REN.exe!CSetup::GetRunname(char* setup_name = 0x0012E58C) Line 572 +
0xa4 bytes C++
I already checked and made sure that both the .exe and the .dll we
compiled with /MDd.
any help would be much appreciated!!!
thanks
Karen
Jun 27 '08 #1
0 1029

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

Similar topics

0
by: Rich | last post by:
converting part of an enterprise application from VS2003 (1.1) to VS2005 (2.0) (1) Is there a better place to pose the question below? (2) I am starting to convert my enterprise solution from...
2
by: V&G | last post by:
Hello all, I have following configuration for remoting application: Server side; was wrote in VS2003 Shared library; was wrote in VS2003. Contains shared objects Client side; was wrote in...
3
by: Marcus | last post by:
Hi, I converted my .Net1.1 application (written in VS2003) to a .Net2.0 application. I let VS2005 do the job as it suggested when trying to load my VS2003 project in VS2005. I then included the...
2
by: John | last post by:
Hi I have a vs2003 database app that use non-bound infragistics controls and all the plumbing is done in code. This works fine in vs2005. After importing to vs2005 via the built-in...
0
by: Adi | last post by:
hi everyone.. i am working on a web application in VS 2005.. i recently converted my application from VS2003 to VS2005.. after the conversion.. when i compiled the application i was starting to get...
1
by: =?Utf-8?B?Sm9uYXRoYW4=?= | last post by:
I have WinXP Pro SP2 and VS2005 SP1. I'm converting my projects from VS2003 to VS2005 and I receive a lot of warnings in several projects. For example, to one of my projects (for example...
1
by: sureshhalade | last post by:
I want to migrate VS2003 Windows/Class library/console project to VS2005 Windows/Class library/console project. And the DLL out of VS2005 project should work as previously. Note: My main project...
0
by: Academia | last post by:
I have a vs2003 solution that I want to convert to VS2005 format. These projects have been converted and now compile in VS2005. But they had the older format - they is the UI code was in .vb...
5
by: =?Utf-8?B?SGFpcmxpcERvZzU4?= | last post by:
I have a component that was developed in VS2003 that I need to debug in a VS2005 application. Basic steps are: Build the component for Debug in VS2003. Set the following VS2003 project...
1
by: kphip123 | last post by:
Hi! I recently converted an application from VS2003 to VS2005. The application consists of a main 'unmanaged C++ executable' which calls a managed C++ .dll. The .dll basically launches a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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
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
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.