473,698 Members | 2,086 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem converting application from VS2003 to VS2005

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).

This is the exception that gets thrown:

File: dbgheap.c
Line: 1414

Expression: _CrtIsValidHeap Pointer(pUserDa ta)

I click on Retry and it triggers a breakpoint at

if ( (oldsize = _msize_crt(*pbe gin)) <= (size_t)((char *)(*pend) -
(char *)(*pbegin)) )
This is the call stack:
msvcr80d.dll!_m size_dbg(void * pUserData=0x1ba 3922e, int nBlockUse=2)
Line 1414 + 0x30 bytes C++
msvcr80d.dll!_d llonexit_nolock (int (void)* func=0x1005ef90 , void
(void)* * * pbegin=0x0012cb 88, void (void)* * * pend=0x0012cb80 ) Line
295 + 0xd bytes C

msvcr80d.dll!__ dllonexit(int (void)* func=0x1005ef90 , void (void)* * *
pbegin=0x0012cb 88, void (void)* * * pend=0x0012cb80 ) Line 273 + 0x11
bytes C
MultiSegmentFil ter.dll!_onexit (int (void)* func=0x1005ef90 ) Line 110
+ 0x11 bytes C
MultiSegmentFil ter.dll!atexit( void (void)* func=0x1005ef90 ) Line 127
+ 0x9 bytes C
MultiSegmentFil ter.dll!`dynami c 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!7c926 a44()
kernel32.dll!7c 83971e()
ntdll.dll!7c91b 686()

....
ntdll.dll!7c910 56d()
mscoree.dll!790 1fa44()
REN.exe!CSetup: :GetRunname(cha r* 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
1 1867
On May 8, 11:15 am, kphip...@live.c om wrote:
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.
[snip]

You'll want to ask on a MS forum. This one is for C++ language proper.
See:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M
Jun 27 '08 #2

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

Similar topics

0
1013
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 VS 2003 (.NET v1.1.4322) to VS 2005 Professional (.NET v2.0.50727). I use "middle tier" dlls and .NET web services. I want to stage the conversion. Is there a way to move the dlls from .NET 1.1 to 2.0 without moving the the ASP.NET Mobile project...
3
1414
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 output exe from this project into my VS2005 setup project. I used it as a custom action. I then built the whole thing and installed it.
2
1201
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 conversion wizard the application doe snot show any data instead all fields display the test 'System.Data.DataRowView'. Could someone give me a hint on what could be the problem and how to fix it?
0
1107
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 this error in one of the pages.. banner.ascx.cs The type or namespace name 'SampleLogin' could not be found (are you missing a using directive or an assembly reference?) both files banner.ascx.cs and SampleLogin.aspx.cs are under the same...
1
2053
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 MyProject.vbproj) I receive the following result in the command prompt: Build succeeded: .... .... (a lot of warnings)
1
1334
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 contains some other 3-4 projects (Class libraries, Windows Application) in it. What I tried is - 1. Conversion of VS2003 project to VS2005 project through VS2005 editor. 2. Compiled the VS2003 project under VS2005 editor with no errors. 3. I...
0
1257
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 rather than in .Designer.vb. To fix a project file I'd create a .designer.vb file and move code from .vb to it. I also had to change the .vbproj file
5
1644
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 properties for the component: Project Configuration Properties Debugging Debug Mode = Program Project Configuration Properties Debugging Start Application = <path to application built in VS2005>
0
1038
by: KJ | 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 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
0
8674
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8604
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9028
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8895
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7728
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2330
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.