Click here to Skip to main content
16,018,460 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questiontool bar Pin
rose1962-Mar-08 20:56
rose1962-Mar-08 20:56 
GeneralRe: tool bar Pin
Giorgi Dalakishvili2-Mar-08 21:09
mentorGiorgi Dalakishvili2-Mar-08 21:09 
Questionhow to create a Project Location dialog box Pin
rose1962-Mar-08 18:48
rose1962-Mar-08 18:48 
GeneralRe: how to create a Project Location dialog box Pin
Mark Salsbery3-Mar-08 6:06
Mark Salsbery3-Mar-08 6:06 
QuestionCannot use null and how to declare return type of a function as array? [modified] Pin
Member 45422722-Mar-08 18:26
Member 45422722-Mar-08 18:26 
GeneralRe: Cannot use null and how to declare return type of a function as array? Pin
led mike3-Mar-08 4:58
led mike3-Mar-08 4:58 
GeneralRe: Cannot use null and how to declare return type of a function as array? Pin
Mark Salsbery3-Mar-08 6:04
Mark Salsbery3-Mar-08 6:04 
QuestionEXE vs LIB -- 30 times slower? Pin
s196675m29-Feb-08 15:14
s196675m29-Feb-08 15:14 
My GUI application called a function in a library (image processing library) but it takes 20 to 30 times more time to execute this function when comparing to the time required when calling standalone .exe file.

Both library and GUI compiled with managed c++ (pure:clr) and in the GUI there is a reference for the library as a additional dependencies in the linker input.

When I make .exe (using pure:MSIL) file instead of .lib and run from command line passing the required argument is just take one to one and half minute to execute it .

When I make the library file (bypassing the main function) from the same source code and calling the function from GUI takes arround 20 to 30 minutes. The source code for the library orginially written in C/C++ but I compiled it using manged c++ pure MSIL to match with the GUI.

Compilation and linking everything is fine and I can not find and explain the cause of 20 to 30 times slow running when library is used.

Is there anybody here in this forum help me or explain the possible cause of slow running.


Any idea, link, suggestion will be highly appreciated.
Thank you.
AnswerRe: EXE vs LIB -- 30 times slower? Pin
uusheikh4-Mar-08 21:18
uusheikh4-Mar-08 21:18 
GeneralRe: EXE vs LIB -- 30 times slower? Pin
s196675m5-Mar-08 8:00
s196675m5-Mar-08 8:00 
GeneralSerializable And Deserialize Pin
javad_200529-Feb-08 4:17
javad_200529-Feb-08 4:17 
GeneralRe: Serializable And Deserialize Pin
Mark Salsbery29-Feb-08 6:39
Mark Salsbery29-Feb-08 6:39 
GeneralRe: Serializable And Deserialize Pin
Paul Conrad29-Feb-08 8:03
professionalPaul Conrad29-Feb-08 8:03 
GeneralRe: Serializable And Deserialize Pin
javad_20051-Mar-08 3:41
javad_20051-Mar-08 3:41 
GeneralRe: Serializable And Deserialize Pin
javad_20051-Mar-08 20:05
javad_20051-Mar-08 20:05 
GeneralRe: Serializable And Deserialize Pin
Mark Salsbery4-Mar-08 12:13
Mark Salsbery4-Mar-08 12:13 
GeneralRe: Serializable And Deserialize Pin
javad_20054-Mar-08 20:23
javad_20054-Mar-08 20:23 
GeneralRe: Serializable And Deserialize Pin
Mark Salsbery4-Mar-08 20:31
Mark Salsbery4-Mar-08 20:31 
GeneralRe: Serializable And Deserialize Pin
javad_20054-Mar-08 23:01
javad_20054-Mar-08 23:01 
GeneralRe: Serializable And Deserialize Pin
Giorgi Dalakishvili4-Mar-08 21:04
mentorGiorgi Dalakishvili4-Mar-08 21:04 
GeneralRe: Serializable And Deserialize Pin
Mark Salsbery4-Mar-08 21:07
Mark Salsbery4-Mar-08 21:07 
GeneralRe: Serializable And Deserialize Pin
Giorgi Dalakishvili4-Mar-08 21:14
mentorGiorgi Dalakishvili4-Mar-08 21:14 
GeneralRe: Serializable And Deserialize Pin
javad_20055-Mar-08 2:19
javad_20055-Mar-08 2:19 
GeneralRe: Serializable And Deserialize Pin
Giorgi Dalakishvili5-Mar-08 7:08
mentorGiorgi Dalakishvili5-Mar-08 7:08 
GeneralRe: Serializable And Deserialize Pin
javad_20055-Mar-08 21:57
javad_20055-Mar-08 21:57 

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.