|
hi all,
BEX runtime error occur in my application .
i dnt know why its comes and how can i resolve this?
please guide mr for this.
thanks.
|
|
|
|
|
As someone else told you the other day, you've been here long enough that you should know how to ask a sensible question. Until you do so, we can't help.
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Use your debugger, and your brain.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Hi,
This come because your code has error(s).
This will go away when you fix the problem.
I don't know what this BEX is you speak of - you've not put it in context!
It could be for BeX analyzer, it could be for BeX query designer, it could be for something to do with Excel. It could very well be for none of these! You already know, we can't possibly have any idea..
From the code snippet you (didn't) post, it's more difficult than impossible to tell. When you ask a specific question and provide sufficient background information, you'll (often) receive a specific answer.
As Peter said - you've been here nearly 5 years! Surely you can muster up the effort required to post a question that is able to be answered???
|
|
|
|
|
|
Le@rner wrote: please guide mr for this
sure, here[^] is your guide
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
Hello All,
I am trying to call the DisableProcessWindowsGhosting() method defined in user32.lib. But, it is giving linker error:
[exec] dobjedit.obj : error LNK2001: unresolved external symbol __imp__DisableProcessWindowsGhosting@0.
The library is included and linked in the project.
Can anyone please suggest the solution.
Thanks in advance.
|
|
|
|
|
What is the setting for your projects WINVER define? It should at least be 0x0501 (WinXP)
hth
Christof
|
|
|
|
|
I have a win32 application in that on EditMolecule Dialog there are three tab controls.First tab control opens atom dialog. On atom dialog, there is a custom combobox control, while user clicks on the dropdownlist of this control and waits for more than 5 seconds(in Windows7),the EditMolecule window becomes nonresponsive. The same application works well in windows xp. Can anyone please suggest the solution to this problem. Thanks in advance.
|
|
|
|
|
Your program has a platform specific bug somewhere and you have to debug it. The info you provided is far less than what needed to find the bug. This bug can be anywhere in your program maybe it isn't gui related at all.
|
|
|
|
|
may be a memory leak...
Try profiling your application for memory leaks
use windbg to point the hangs
You talk about Being HUMAN. I have it in my name
AnsHUMAN
|
|
|
|
|
It may be leaky, but that (if it's the case) doesn't sound like the problem.
Steve
|
|
|
|
|
we are not able to reproduce the issue using windebug. The debugger is not breaking.
Could you please suggest what can be the possible reason, because after attaching the process to debugger the issue is not reproducible.
|
|
|
|
|
Virendra_ec10 wrote: ...while user clicks on the dropdownlist of this control and waits for more than 5 seconds(in Windows7),the EditMolecule window becomes nonresponsive. So are you handling one of the CBN_xxx notifications?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
since it is a custom combobox control, I am not getting the notification message in the wndproc.
|
|
|
|
|
As always, you need to know what's going. To find out wait for the app to hang, break into it with a debugger and get you some stack traces. Do the UI thread first.
Steve
|
|
|
|
|
I have a window with 3 pane.
In the third pane i want to put tab control. Currently i wrote like this:
m_wndSplitterHor.CreateStatic(this, 2, 1)
m_wndSplitterHor.CreateView(0, 0, RUNTIME_CLASS(CSampleCollectList), CSize(280,300), pContext)
m_wndSplitterHor.SetColumnInfo(0, 200, 0);
m_wndSplitterVer.CreateStatic(&m_wndSplitterHor, 1, 2, WS_CHILD | WS_VISIBLE, m_wndSplitterHor.IdFromRowCol(1, 0))
m_wndSplitterVer.CreateView(0, 0, RUNTIME_CLASS(CSampleTree), CSize(250,0), pContext)
m_wndSplitterVer.CreateView(0, 1, RUNTIME_CLASS(), CSize(250,0), pContext)
So, im stuck with this tab control. I dont know how to add it in the third pane.
|
|
|
|
|
Why not in the same manner ?
They sought it with thimbles, they sought it with care;
They pursued it with forks and hope;
They threatened its life with a railway-share;
They charmed it with smiles and soap.
|
|
|
|
|
Might [this] article help?
|
|
|
|
|
Hi,
I have a C++ MFC program which I am doing communicating with C dos console program
while doing a return from various methods in a CDialog derived class I get a
CInvalidArg execption in crtexe.c at the following location
fdef WPRFLAG
mainret = wWinMain(
#else /* WPRFLAG */
mainret = WinMain(
#endif /* WPRFLAG */
(HINSTANCE)&__ImageBase,
NULL,
lpszCommandLine,
StartupInfo.dwFlags & STARTF_USESHOWWINDOW
? StartupInfo.wShowWindow
: SW_SHOWDEFAULT
);
#else /* _WINMAIN_ */
My program is a MFC program I have a derived CWinApp that does the initlization
the CDialog header has both a
DECLARE_DYNAMIC(CprogDebug)
and
DECLARE_MESSAGE_MAP()
the code has implement_dynamic and message map entries
IMPLEMENT_DYNAMIC(CprogDebug, CDialog)
BEGIN_MESSAGE_MAP(CprogDebug, CDialog)
ON_MESSAGE(WM_RECEIVE_SOCK_MESS,receive_tcpip)
ON_NOTIFY(EN_REQUESTRESIZE,IDC_RICHEDIT22,OnRequestResize)
END_MESSAGE_MAP()
this execption was also the subject of a previous post
when I got the exception at this location by Doing a SendMessage to the CDialog window
from a worker thread
any insights would be appreciated
|
|
|
|
|
From the above it's impossible to guess, but you need to look at all the parameters being passed to the WinMain() function to see if they are valid. Given the frequency of this occurring in your programs you may like to check that you are not breaking the framework rules somewhere in your program setup.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Why are you using SendMessage ?
You should PostMessage to the main window and let the GUI thread make all the needed changes to the GUI itself.
Veni, vidi, vici.
|
|
|
|
|
When I hsd this problem in my worker thread exception at crtexe I changed
the Send to a Post and still got the exeception at crtexe
I subsqently removed all messaging to got that part of my code to work
but now that problem comes up again I begining to think its the way I have my .h and .cpp set up
I checked all the MFC macro pairs e.g. DECLARE_DYNAMIC .h IMPLEMENT_DYNAMIC .cpp
DECLARE MESSAGE_MAP / BEGIN MESSAGE_MAP etc
|
|
|
|
|
Changing the function call is not enough. The Newcomer's rule "Don't touch the UI" holds here (see "Worker Threads"[^]). You have to notify (with, for instance, a custom message) to the main window that something changed (the UI needs an update), and let the main window (that is the GUI) thread make the actual update.
Veni, vidi, vici.
|
|
|
|
|
I did a PostMessage to the Main Window CMainFrame and same exception at WinMain
I got to beleieve it something along the lines of what Richard MacCutchan
Said that it must be something with my setup
|
|
|
|