Click here to Skip to main content
15,891,943 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: maths equation in c++ Pin
ubriela7-Sep-07 23:22
ubriela7-Sep-07 23:22 
Generalmaths ok Pin
urbdos9-Sep-07 21:35
urbdos9-Sep-07 21:35 
GeneralRe: maths ok Pin
ubriela10-Sep-07 4:42
ubriela10-Sep-07 4:42 
Generalmail Pin
urbdos10-Sep-07 21:31
urbdos10-Sep-07 21:31 
QuestionHELP ME PLEASE!!!!! Pin
PalmPalm3-Sep-07 4:31
PalmPalm3-Sep-07 4:31 
QuestionHELP ME PLEASE!!!!! Pin
PalmPalm3-Sep-07 4:30
PalmPalm3-Sep-07 4:30 
AnswerRe: HELP ME PLEASE!!!!! Pin
Christian Graus3-Sep-07 5:02
protectorChristian Graus3-Sep-07 5:02 
QuestionOdd memory access error thrown Pin
Xpnctoc2-Sep-07 18:36
Xpnctoc2-Sep-07 18:36 
I'm encountering some strange behavior in a C++/CLI app I'm writing. I'm wondering if anyone has seen anything like this before:

The app interface uses the .NET designer, but the key data structures are all in native C++. Specifically, I use unmanaged array of a data class. All of my data loading and saving is binary. It all works fine except for one odd behavior: If the saved binary file is created when running the app through the IDE, trying to use the file when running the app directly produces an AccessViolationException. If the saved binary file is created when running the app directly, trying to use the file when running the app through the IDE produces the same AccessViolationException. Note I get no such exceptions if I stick to one environment or the other.

When I say "use the file", I mean load it and try to do further processing. Through the debugger I've been able to determine the file loads fine. The exception occurs when I try to do anything with it. For example, in a button click event on the managed form, I call something like MyUnmanagedDataPointerArray[Index]->DoSomething(). The exception occurs when the DoSomething() method is invoked. Remember, this does NOT happen if I run strictly in IDE or strictly direct. Knowing this seems to rule out any instructions in DoSomething() as being the problem.

So to boil it all down, is anyone aware of anything that could cause BinaryReader and BinaryWriter to behave differently in the IDE versus running the application directly? Why would a binary file, created when running in the IDE and re-usable when running in the IDE, not be re-usable when running the EXE directly????

FYI, I'm using Win XP Pro SP2, VS 2005 SP 1.


AnswerRe: Odd memory access error thrown Pin
Xpnctoc3-Sep-07 3:53
Xpnctoc3-Sep-07 3:53 
QuestionCould you please help me to understand what ( str_time.substr(11,2) != "00" ) would do Pin
6530573371-Sep-07 10:07
6530573371-Sep-07 10:07 
AnswerRe: Could you please help me to understand what ( str_time.substr(11,2) != "00" ) would do Pin
Luc Pattyn1-Sep-07 12:15
sitebuilderLuc Pattyn1-Sep-07 12:15 
QuestionRe: Could you please help me to understand what ( str_time.substr(11,2) != "00" ) would do Pin
6530573372-Sep-07 3:32
6530573372-Sep-07 3:32 
AnswerRe: Could you please help me to understand what ( str_time.substr(11,2) != "00" ) would do Pin
Luc Pattyn2-Sep-07 3:54
sitebuilderLuc Pattyn2-Sep-07 3:54 
GeneralRe: Could you please help me to understand what ( str_time.substr(11,2) != "00" ) would do Pin
Mark Salsbery2-Sep-07 9:58
Mark Salsbery2-Sep-07 9:58 
NewsRe: Could you please help me to understand what ( str_time.substr(11,2) != "00" ) would do Pin
6530573373-Sep-07 1:03
6530573373-Sep-07 1:03 
GeneralRe: Could you please help me to understand what ( str_time.substr(11,2) != "00" ) would do Pin
Luc Pattyn3-Sep-07 5:23
sitebuilderLuc Pattyn3-Sep-07 5:23 
GeneralRe: Could you please help me to understand what ( str_time.substr(11,2) != "00" ) would do Pin
Mark Salsbery3-Sep-07 12:14
Mark Salsbery3-Sep-07 12:14 
GeneralRe: Could you please help me to understand what ( str_time.substr(11,2) != "00" ) would do Pin
6530573372-Sep-07 4:19
6530573372-Sep-07 4:19 
Questionload GIF file in the turbo c++ Pin
mahdiehIR1-Sep-07 3:51
mahdiehIR1-Sep-07 3:51 
AnswerRe: load GIF file in the turbo c++ Pin
Mark Salsbery1-Sep-07 7:59
Mark Salsbery1-Sep-07 7:59 
QuestionWhy two vfptr incase of virtual inhertance? Pin
Sameer_Thakur31-Aug-07 19:38
Sameer_Thakur31-Aug-07 19:38 
AnswerRe: Why two vfptr incase of virtual inhertance? Pin
prasad_som1-Sep-07 3:59
prasad_som1-Sep-07 3:59 
QuestionAccess between classes Pin
BuckBrown31-Aug-07 10:47
BuckBrown31-Aug-07 10:47 
AnswerRe: Access between classes Pin
Gammill31-Aug-07 10:57
Gammill31-Aug-07 10:57 
QuestionHowTo: Create MFC CDialog from Win Forms Pin
Gammill31-Aug-07 9:39
Gammill31-Aug-07 9:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.