Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Extreme weird behaviour :D

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Extreme weird behaviour :D
#3214
Posted by: KaReL 2004-01-11 14:50:48
configuratie_file DetectFileType( const char* lijn, void *&var1, void *&var2 )
{
}

Now I put a breakpoint at the start from that function, and then press F5... Then my program does NOT crash. Let I run it just along, it crashes!?

Anyone knows why this behaves like that? :S

------------------------
Website: www.KaReLs0ft.be
Message2. Re: Extreme weird behaviour :D
#3216
Posted by: KaReL 2004-01-11 20:56:11
OK, problem solved :)

Guess I wasn't yet woken up already...

I returned out of a function an enum ... Which I checked like in "if ( !a() )"

And of course casting it to a boolean let it be false, which lead to some code being undone ... Which lead back to crashing my application...

This of course is also something you need to keep in mind when using wxSQLite people... If you don't have the table created yet & want to insert some things in it ... Better don't have a fast computer because it will crash ;) [normally it should return false & give an error]

------------------------
Website: www.KaReLs0ft.be
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥738.00 ·
 
 
¥1,480.00 ·
 
 
¥397.00 ·
 
 
¥950.00 ·
 
 
¥264.00 ·
 
 
¥1,005.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0