Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » invalid memory access
invalid memory access [message #53737] |
Sun, 26 April 2020 07:50 |
|
Hi all-
I'm running my very small application (it only has 5 or 6 dialogs so far). If I run code from my menu, I can run it with sql until I am blue in the face. When I start to open up other dialogs and switch back I get a msg. that says something about invalid memory access. I run a gui with a main section for my main window. This is the menu system to launch other forms. I'm using Ubuntu xfce. Any ideas why it works and then crashes when I am switching dialogs? Thnx - roboloki
bar.Add("check master", [=] { showmaster();});
bar.Add("check detail", [=] { showdetail();});
bar.Add("Account Maint.", [=] { showaccounts();});
bar.Add("Subsidiary", [=] { showciti();});
bar.Add("Purch. Journal", [=] { showpj();});
bar.Add("Exit", [=] { Exit(); });
}
void MyMain::MainMenu(Bar& bar) {
bar.Sub("Menu", [=](Bar& bar) { SubMenu(bar); });
}
void MyMain::showaccounts() {
// show check master
App2 app2;
switch(app2.Run()) {
case IDOK:
break;
case IDCANCEL:
Exclamation("Canceled");
}
}
I use this code for each dialog with an okay and cancel button:
ok.Ok() <<= Acceptor(IDOK);
cancel.Cancel() <<= Rejector(IDCANCEL);
-
Attachment: pj
(Size: 2.45KB, Downloaded 159 times)
[Updated on: Sun, 26 April 2020 08:10] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon May 13 12:14:13 CEST 2024
Total time taken to generate the page: 0.01316 seconds
|