15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Assertion fail in AFXWIN1.INL

Sanu M.P -- sanump@hcla.com
Sunday, January 21, 1996


Hi all,
	Compiler Ver : MSVC 1.52
	MFC Ver      : 2.52
	I have a strange behaviour of an application when
run with a _USRDLL.The application runs fine with the
DLL when it is compiled in Release mode (both the
DLL as well as the application). When both the DLL and
the application is in Debug mode and if I try to run,
the application exits even without executing WinMain.
Then I tried with BounceChecker and it gives a message
saying "Stack usage information not available because
BOUNDS-CHECKER for windows did not find WinMain".
	Then I tried to run thru Soft-Ice and it displays
"Assertion failed ! : File afxwin1.inl
line 25"
	Any ideas ?
Thanks a lot.







Sanjay -- SGUPTA@aegonusa.com
Wednesday, January 24, 1996



A User DLL should not cause such a problem because that code doesn't even   
get loaded until you call LoadLibrary. Are you using any Afx DLLs? If you   
are, probably one of your Afx DLLs has wrong loading info which col beb   
because of the use of incorrect versions of your own header files. Also,   
check your swap file size, scandisk, and try running the app without   
logged on to network. We have also run into this kind of problems and one   
of the major problem was that we could not compile the project on the   
network as the projext grew. Also, try moving your project to a local   
drive, compile and then test.

 ----------
From:  owner-mfc-l[SMTP:owner-mfc-l@netcom.com]
Sent:  Tuesday, January 23, 1996 08:30
To:  mfc-l
Subject:  Assertion fail in AFXWIN1.INL



Hi all,
        Compiler Ver : MSVC 1.52
        MFC Ver      : 2.52
        I have a strange behaviour of an application when
run with a _USRDLL.The application runs fine with the
DLL when it is compiled in Release mode (both the
DLL as well as the application). When both the DLL and
the application is in Debug mode and if I try to run,
the application exits even without executing WinMain.
Then I tried with BounceChecker and it gives a message
saying "Stack usage information not available because
BOUNDS-CHECKER for windows did not find WinMain".
        Then I tried to run thru Soft-Ice and it displays
"Assertion failed ! : File afxwin1.inl
line 25"
        Any ideas ?
Thanks a lot.








Sanu M.P -- sanump@hcla.com
Thursday, January 25, 1996

[Mini-digest: 2 responses]

> Hi all,
> 	Compiler Ver : MSVC 1.52
> 	MFC Ver      : 2.52
> 	I have a strange behaviour of an application when
> run with a _USRDLL.The application runs fine with the
> DLL when it is compiled in Release mode (both the
> DLL as well as the application). When both the DLL and
> the application is in Debug mode and if I try to run,
> the application exits even without executing WinMain.
> Then I tried with BounceChecker and it gives a message
> saying "Stack usage information not available because
> BOUNDS-CHECKER for windows did not find WinMain".
> 	Then I tried to run thru Soft-Ice and it displays
> "Assertion failed ! : File afxwin1.inl
> line 25"
> 	Any ideas ?
> Thanks a lot.
> 
	I made a sample application using AppWizard and made a simple
_USRDLL with only one exported function in it and compiled both
of them in DEBUG mode and the above problem repeated. Is it a BUG
or am I missing something ?
	Thanks.

-----From: Martijn Vels 


Seems as if this has to do with some  CWinApp behaviour.
How is your startup code (CWinApp) and do you have any initialisation code 
which is performed prior to any construction of the CWinApp class....????
M.




| Вернуться в корень Архива |