Not receiving event from an (api) OCX only in "Release" mode. Pleasehelp VS 2010 Fram. 4.0

P

pamela fluente

Hi,

i have some good experience with visual studio, but something strange
is happening to me
which i really dont know where to begin to solve it.

I have an application which makes reference to an api OCX (tws.ocx)
which raises events. For example,
a tickPrice event, sending a price to my application from another
application.

Now I have no metadirectives such as #if debug or similar.

My problem is that when I run the program in "Release" mode I don't
receive the events anymore, while in "Debug" more i receive them
normally and the program works completely fine.

What on the earth could cause this behaviour. I really have no clue
where to start looking.

Any help to solve this strange (?) problem would be really
appreciated.

Thanks in advance for any help.

P
 
A

Armin Zingler

Am 18.01.2011 20:26, schrieb pamela fluente:
Hi,

i have some good experience with visual studio, but something strange
is happening to me
which i really dont know where to begin to solve it.

I have an application which makes reference to an api OCX (tws.ocx)
which raises events. For example,
a tickPrice event, sending a price to my application from another
application.

Now I have no metadirectives such as #if debug or similar.

My problem is that when I run the program in "Release" mode I don't
receive the events anymore, while in "Debug" more i receive them
normally and the program works completely fine.

What on the earth could cause this behaviour. I really have no clue
where to start looking.

Any help to solve this strange (?) problem would be really
appreciated.

Thanks in advance for any help.

P

- Does it happen with and/or without the debugger attached?

- Only an attempt: Copy only the *.exe file from the Release directory
to the Debug directory and start it there (from explorer). Any difference?

- Compare all configuration depending settings in the projects's
properties window between Debug and Release, including
the "extended compile settings". (I do this by quickly switching
between Debug and Release in the combo at the top.)
 
P

pamela fluente

Am 18.01.2011 20:26, schrieb pamela fluente:


Hi Armin! Thank you for trying to help me with this one!

- Does it happen with and/or without the debugger attached?

- Only an attempt: Copy only the *.exe file from the Release directory
to the Debug directory and start it there (from explorer). Any difference?

I am within the debug environment when i see this problem,
If I run the executable in the \bin\release directory I have the same
problem.

As you suggested I have tried copying the ,exe in the \bin\debug and,
if I run it from there,
it works. Events do arrive!!

ahah Now I more puzzled then before! :)))


You must be seeing something i don't even suspect! What's
that ? :))
 
A

Armin Zingler

Am 18.01.2011 23:13, schrieb pamela fluente:
You must be seeing something i don't even suspect! What's
that ? :))

Maagiiiiic! ;-)

Only tried to find the difference. If you compare the two directories,
you'll probably find the reason. Then you can look for the cause of
the difference. (did you already?)
 
P

pamela fluente

Am 18.01.2011 23:13, schrieb pamela fluente:


Maagiiiiic! ;-)

Only tried to find the difference. If you compare the two directories,
you'll probably find the reason. Then you can look for the cause of
the difference. (did you already?)

eehh I am looking. At least now I know where to look !!

Thank you very much ! You're a genius!

P
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top